瀏覽代碼

修改api

zhouhao 7 年之前
父節點
當前提交
8d1e0e21cc

+ 2 - 2
hsweb-system/hsweb-system-organizational/hsweb-system-organizational-controller/src/main/java/org/hswebframework/web/controller/organizational/RelationDefineController.java

@@ -16,8 +16,8 @@ import org.springframework.web.bind.annotation.RestController;
  * @author hsweb-generator-online
  */
 @RestController
-@RequestMapping("${hsweb.web.mappings.relationDefine:relationDefine}")
-@Authorize(permission = "relationDefine")
+@RequestMapping("${hsweb.web.mappings.relationDefine:relation/define}")
+@Authorize(permission = "relation-define")
 @AccessLogger("关系定义")
 public class RelationDefineController implements SimpleGenericEntityController<RelationDefineEntity, String, QueryParamEntity> {
 

+ 2 - 2
hsweb-system/hsweb-system-organizational/hsweb-system-organizational-controller/src/main/java/org/hswebframework/web/controller/organizational/RelationInfoController.java

@@ -16,8 +16,8 @@ import org.springframework.web.bind.annotation.RestController;
  * @author hsweb-generator-online
  */
 @RestController
-@RequestMapping("${hsweb.web.mappings.relationInfo:relationInfo}")
-@Authorize(permission = "relationInfo")
+@RequestMapping("${hsweb.web.mappings.relationInfo:relation/info}")
+@Authorize(permission = "relation/info")
 @AccessLogger("关系信息")
 public class RelationInfoController implements SimpleGenericEntityController<RelationInfoEntity, String, QueryParamEntity> {