|
@@ -2,6 +2,7 @@ package com.gxzc.zen.web.sys.controller
|
|
|
|
|
|
import com.baomidou.kisso.annotation.Action
|
|
|
import com.baomidou.kisso.annotation.Login
|
|
|
+import com.baomidou.kisso.annotation.Permission
|
|
|
import com.baomidou.mybatisplus.mapper.EntityWrapper
|
|
|
import com.gxzc.zen.api.sys.mapper.SysDicMapper
|
|
|
import com.gxzc.zen.api.sys.model.SysDic
|
|
@@ -123,4 +124,22 @@ class TestController : BaseController() {
|
|
|
|
|
|
throw RuntimeException()
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/testpermission")
|
|
|
+ @Permission("backup:crud")
|
|
|
+ fun testpermission() {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/testpermission1")
|
|
|
+ @Permission("backup:c")
|
|
|
+ fun testpermission1() {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/testpermission2")
|
|
|
+ @Permission("backup2:c")
|
|
|
+ fun testpermission2() {
|
|
|
+
|
|
|
+ }
|
|
|
}
|