fix
This commit is contained in:
parent
84aaa824c5
commit
493e30b318
@ -32,6 +32,7 @@ public abstract class CertDTO {
|
|||||||
private Long id;
|
private Long id;
|
||||||
private Long applicationId;
|
private Long applicationId;
|
||||||
private String appName;
|
private String appName;
|
||||||
|
private Boolean single;
|
||||||
/**
|
/**
|
||||||
* 密钥算法
|
* 密钥算法
|
||||||
*/
|
*/
|
||||||
|
@ -52,8 +52,9 @@ public class AppCertController {
|
|||||||
* @param importCert 证书
|
* @param importCert 证书
|
||||||
*/
|
*/
|
||||||
@PostMapping("/import")
|
@PostMapping("/import")
|
||||||
public void importCert(@Valid @RequestBody CertDTO.ImportCert importCert) {
|
public R<Void> importCert(@Valid @RequestBody CertDTO.ImportCert importCert) {
|
||||||
appCertService.importCert(importCert);
|
appCertService.importCert(importCert);
|
||||||
|
return R.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,6 +25,11 @@ public class TmkController {
|
|||||||
@Resource
|
@Resource
|
||||||
private DeviceService deviceService;
|
private DeviceService deviceService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询主密钥生成状态
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@GetMapping("/status")
|
@GetMapping("/status")
|
||||||
public R<TmkStatus> getTMKStatus() {
|
public R<TmkStatus> getTMKStatus() {
|
||||||
TmkStatus status = deviceService.getTMKStatus();
|
TmkStatus status = deviceService.getTMKStatus();
|
||||||
|
Loading…
Reference in New Issue
Block a user