添加日志
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
package com.sunyard.chsm.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.sunyard.chsm.constant.AuditLogConst;
|
||||
import com.sunyard.chsm.dto.KeyTemplateDTO;
|
||||
import com.sunyard.chsm.model.R;
|
||||
import com.sunyard.chsm.service.KeyTemplateService;
|
||||
import com.sunyard.ssp.common.annotation.AuditControllerLog;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@@ -17,6 +19,7 @@ import javax.validation.Valid;
|
||||
|
||||
/**
|
||||
* 密钥模版管理接口
|
||||
*
|
||||
* @author liulu
|
||||
* @since 2024/10/22
|
||||
*/
|
||||
@@ -48,6 +51,7 @@ public class KeyTemplateController {
|
||||
* @return id
|
||||
*/
|
||||
@PostMapping
|
||||
@AuditControllerLog(description = "添加密钥模版", operateType = AuditLogConst.ADD)
|
||||
public R<String> save(@Valid @RequestBody KeyTemplateDTO.KTSave save) {
|
||||
Long id = keyTemplateService.save(save);
|
||||
return R.data(String.valueOf(id));
|
||||
@@ -60,6 +64,7 @@ public class KeyTemplateController {
|
||||
* @return void
|
||||
*/
|
||||
@PutMapping
|
||||
@AuditControllerLog(description = "修改密钥模版", operateType = AuditLogConst.UPDATE)
|
||||
public R<Void> update(@Valid @RequestBody KeyTemplateDTO.KTSave update) {
|
||||
keyTemplateService.update(update);
|
||||
return R.ok();
|
||||
@@ -72,6 +77,7 @@ public class KeyTemplateController {
|
||||
* @return void
|
||||
*/
|
||||
@DeleteMapping
|
||||
@AuditControllerLog(description = "删除密钥模版", operateType = AuditLogConst.DELETE)
|
||||
public R<Void> delete(Long id) {
|
||||
keyTemplateService.delete(id);
|
||||
return R.ok();
|
||||
|
||||
Reference in New Issue
Block a user