|
@@ -3,11 +3,13 @@ package com.gxzc.zen.web.sys.controller
|
|
import com.baomidou.kisso.annotation.Action
|
|
import com.baomidou.kisso.annotation.Action
|
|
import com.baomidou.kisso.annotation.Login
|
|
import com.baomidou.kisso.annotation.Login
|
|
import com.gxzc.zen.api.sys.model.SysDic
|
|
import com.gxzc.zen.api.sys.model.SysDic
|
|
|
|
+import com.gxzc.zen.api.sys.model.SysRole
|
|
import com.gxzc.zen.api.sys.model.SysUser
|
|
import com.gxzc.zen.api.sys.model.SysUser
|
|
import com.gxzc.zen.api.sys.service.ISysDicService
|
|
import com.gxzc.zen.api.sys.service.ISysDicService
|
|
import com.gxzc.zen.api.sys.service.ISysParamService
|
|
import com.gxzc.zen.api.sys.service.ISysParamService
|
|
import com.gxzc.zen.common.base.BaseController
|
|
import com.gxzc.zen.common.base.BaseController
|
|
import com.gxzc.zen.common.config.request.annotation.KVType
|
|
import com.gxzc.zen.common.config.request.annotation.KVType
|
|
|
|
+import com.gxzc.zen.common.config.request.annotation.KVTypeEnum
|
|
import com.gxzc.zen.common.config.request.annotation.ZenRequestTypes
|
|
import com.gxzc.zen.common.config.request.annotation.ZenRequestTypes
|
|
import com.gxzc.zen.common.dto.RequestDto
|
|
import com.gxzc.zen.common.dto.RequestDto
|
|
import org.springframework.beans.factory.annotation.Autowired
|
|
import org.springframework.beans.factory.annotation.Autowired
|
|
@@ -64,6 +66,9 @@ class TestController : BaseController() {
|
|
KVType("dataA", SysDic::class),
|
|
KVType("dataA", SysDic::class),
|
|
KVType("dataB", SysUser::class))
|
|
KVType("dataB", SysUser::class))
|
|
fun testInput(@RequestBody data: RequestDto) {
|
|
fun testInput(@RequestBody data: RequestDto) {
|
|
|
|
+ var a = 0
|
|
|
|
+ a = 2
|
|
|
|
+ return
|
|
}
|
|
}
|
|
|
|
|
|
@PostMapping("")
|
|
@PostMapping("")
|
|
@@ -93,4 +98,12 @@ class TestController : BaseController() {
|
|
.contentType(MediaType.parseMediaType("application/octet-stream"))
|
|
.contentType(MediaType.parseMediaType("application/octet-stream"))
|
|
.body(resource)
|
|
.body(resource)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @PostMapping("request")
|
|
|
|
+ @Login(action = Action.Skip)
|
|
|
|
+ @ZenRequestTypes(KVType("data", SysRole::class, KVTypeEnum.LIST))
|
|
|
|
+ fun request(@RequestBody data: RequestDto): ResponseEntity<*> {
|
|
|
|
+ val b = data["data"] as List<SysRole>
|
|
|
|
+ return ResponseEntity.ok(null)
|
|
|
|
+ }
|
|
}
|
|
}
|