权限管理

This commit is contained in:
liulu
2024-12-06 16:39:30 +08:00
parent 04cfab2f82
commit 48fb1db044
11 changed files with 157 additions and 9 deletions
@@ -1,5 +1,6 @@
package com.sunyard.chsm.controller;
import com.sunyard.chsm.auth.AuthCode;
import com.sunyard.chsm.model.R;
import com.sunyard.chsm.model.dto.KeyInfoDTO;
import com.sunyard.chsm.service.KeyInfoService;
@@ -31,6 +32,7 @@ public class KeyManageController {
* @return id
*/
@PostMapping("/enable")
@AuthCode("12312312")
public R<Void> enableKey(@Validated @RequestBody KeyInfoDTO.IDs param) {
keyInfoService.enableKey(param.getIds());
return R.ok();