Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望支持在继承的ServiceBase 的类上获取 [ApiExplorerSettings(GroupName = "Institution")] 自动设置minimalapi 的分组,不用再构造函数里面设置,太繁琐 #735

Open
ByZhouhang opened this issue Oct 15, 2024 · 0 comments

Comments

@ByZhouhang
Copy link

ByZhouhang commented Oct 15, 2024

Description

之前再控制上,一般设置 [ApiExplorerSettings(GroupName = "Institution")] 对接口进行分组,但是minimal api 需要再构造函数里面写,太麻烦了,希望支持在继承的ServiceBase 的类上获取 [ApiExplorerSettings(GroupName = "Institution")] 自动设置minimalapi 的分组,毕竟现在构造函数注入 不用显示写构造函数。

例如下面这样:
public class VacationService(IRepository _vacationRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IVacationService

如果为了设置分组,构造函数恢复成之前的写法,太臃肿了

0087a55060d8a4797af961c80efe401
image

.NET version

No response

MASA Framework version

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant