service api code
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.sunyard.chsm.controller;
|
||||
|
||||
import com.sunyard.chsm.auth.AuthCode;
|
||||
import com.sunyard.chsm.constant.AuthCodeConst;
|
||||
import com.sunyard.chsm.model.R;
|
||||
import com.sunyard.chsm.model.dto.KeyInfoDTO;
|
||||
import com.sunyard.chsm.service.KeyInfoService;
|
||||
@@ -32,7 +33,7 @@ public class KeyManageController {
|
||||
* @return id
|
||||
*/
|
||||
@PostMapping("/enable")
|
||||
@AuthCode("12312312")
|
||||
@AuthCode(AuthCodeConst.key_enable)
|
||||
public R<Void> enableKey(@Validated @RequestBody KeyInfoDTO.IDs param) {
|
||||
keyInfoService.enableKey(param.getIds());
|
||||
return R.ok();
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.sunyard.chsm.service;
|
||||
|
||||
/**
|
||||
* @author liulu
|
||||
* @since 2024/12/16
|
||||
*/
|
||||
public interface KeyManageService {
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.sunyard.chsm.service.impl;
|
||||
|
||||
import com.sunyard.chsm.service.KeyManageService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
/**
|
||||
* @author liulu
|
||||
* @since 2024/12/16
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@Transactional
|
||||
public class KeyManageServiceImpl implements KeyManageService {
|
||||
}
|
||||
Reference in New Issue
Block a user