|
@@ -39,7 +39,6 @@ class SysDicController : BaseController() {
|
|
|
}
|
|
|
|
|
|
@GetMapping("{id}")
|
|
|
- @Login(action = Action.Skip)
|
|
|
@ZenResponseFilter(type = SysDic::class, filter = ["createBy", "updateBy", "createTime", "updateTime"])
|
|
|
fun getById(@PathVariable id: Long): ResponseEntity<*> {
|
|
|
return ResponseEntity.ok(ResponseDto().apply {
|
|
@@ -48,7 +47,6 @@ class SysDicController : BaseController() {
|
|
|
}
|
|
|
|
|
|
@GetMapping("keys/{key}")
|
|
|
- @Login(action = Action.Skip)
|
|
|
@ZenResponseFilter(type = SysDic::class, filter = ["createBy", "updateBy", "createTime", "updateTime"])
|
|
|
fun getByKey(@PathVariable key: String): ResponseEntity<*> {
|
|
|
return ResponseEntity.ok(ResponseDto().apply {
|
|
@@ -57,7 +55,6 @@ class SysDicController : BaseController() {
|
|
|
}
|
|
|
|
|
|
@PutMapping
|
|
|
- @Login(action = Action.Skip)
|
|
|
@ZenResponseFilter(type = SysDic::class, filter = ["createBy", "updateBy", "createTime", "updateTime"])
|
|
|
fun putDic(@RequestBody data: SysDic): ResponseEntity<*> {
|
|
|
return if (data.id == null) {
|
|
@@ -71,4 +68,11 @@ class SysDicController : BaseController() {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @DeleteMapping("{id}")
|
|
|
+ fun deleteDic(@PathVariable id: Long): ResponseEntity<*> {
|
|
|
+ // 物理删除数据
|
|
|
+ sysDicService.physicalDeleteCacheable(id)
|
|
|
+ return ResponseEntity.ok(ResponseDto())
|
|
|
+ }
|
|
|
}
|