mirror of https://gitee.com/stylefeng/roses
【7.2.5】【scanner】更新扫描资源增加一个业务类型
parent
4a44be413b
commit
f92d458ff6
|
@ -120,6 +120,12 @@ public class ResourceDefinition implements Serializable {
|
|||
@ChineseDescription("http请求方法")
|
||||
private String httpMethod;
|
||||
|
||||
/**
|
||||
* 资源的业务类型:1-系统类型,2-业务类型
|
||||
*/
|
||||
@ChineseDescription("资源的业务类型:1-系统类型,2-业务类型")
|
||||
private Integer resourceBizType;
|
||||
|
||||
/**
|
||||
* 是否需要登录
|
||||
*/
|
||||
|
|
|
@ -245,10 +245,12 @@ public class ApiResourceScanner implements BeanPostProcessor {
|
|||
Boolean requiredLogin = invokeAnnotationMethod(apiResource, "requiredLogin", Boolean.class);
|
||||
Boolean requiredPermission = invokeAnnotationMethod(apiResource, "requiredPermission", Boolean.class);
|
||||
Boolean viewFlag = invokeAnnotationMethod(apiResource, "viewFlag", Boolean.class);
|
||||
Integer resBizType = invokeAnnotationMethod(apiResource, "resBizType", Integer.class);
|
||||
|
||||
resourceDefinition.setRequiredLoginFlag(requiredLogin);
|
||||
resourceDefinition.setRequiredPermissionFlag(requiredPermission);
|
||||
resourceDefinition.setResourceName(name);
|
||||
resourceDefinition.setResourceBizType(resBizType);
|
||||
|
||||
// 根据控制器和控制器方法的path组装最后的url
|
||||
String controllerMethodPath = createControllerPath(controllerClass, methodPath[0]);
|
||||
|
|
Loading…
Reference in New Issue