权限管理
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user