MASA.Framework icon indicating copy to clipboard operation
MASA.Framework copied to clipboard

希望MinimalAPI的ServiceBase可以获取service的Attribute

Open raokun opened this issue 2 years ago • 2 comments

希望MinimalAPI的ServiceBase可以获取Service的Attribute

目前在用MinimalAPI做接口,权限验证只能在方法上加 [Authorize] ,在Service类上加的 AuthorizeAttribute不会被识别。希望能够新增该内容以实现一些通用的配置可以在通过在Service上可以设置Attribute,完成Service中所有接口。

希望service base支持一些基于class的通用操作。

raokun avatar May 06 '23 06:05 raokun

@zhenlei520 PTAL

doddgu avatar May 06 '23 07:05 doddgu

This is a new feature, rc is mainly to fix bugs,It will be supported in 2.0

zhenlei520 avatar May 08 '23 11:05 zhenlei520

高级功能请使用api 控制器

duiapro avatar Apr 03 '24 02:04 duiapro