密钥管理接口
This commit is contained in:
+4
-4
@@ -34,9 +34,9 @@ public class KeyTemplateController {
|
||||
* @return 分页列表
|
||||
*/
|
||||
@GetMapping("/pageList")
|
||||
public R<Page<KeyTemplateDTO.View>> servicePageList(KeyTemplateDTO.Query query) {
|
||||
public R<Page<KeyTemplateDTO.KTView>> servicePageList(KeyTemplateDTO.Query query) {
|
||||
|
||||
Page<KeyTemplateDTO.View> page = keyTemplateService.selectPageList(query);
|
||||
Page<KeyTemplateDTO.KTView> page = keyTemplateService.selectPageList(query);
|
||||
|
||||
return R.data(page);
|
||||
}
|
||||
@@ -48,7 +48,7 @@ public class KeyTemplateController {
|
||||
* @return id
|
||||
*/
|
||||
@PostMapping
|
||||
public R<String> save(@Valid @RequestBody KeyTemplateDTO.Save save) {
|
||||
public R<String> save(@Valid @RequestBody KeyTemplateDTO.KTSave save) {
|
||||
Long id = keyTemplateService.save(save);
|
||||
return R.data(String.valueOf(id));
|
||||
}
|
||||
@@ -60,7 +60,7 @@ public class KeyTemplateController {
|
||||
* @return void
|
||||
*/
|
||||
@PutMapping
|
||||
public R<Void> update(@Valid @RequestBody KeyTemplateDTO.Save update) {
|
||||
public R<Void> update(@Valid @RequestBody KeyTemplateDTO.KTSave update) {
|
||||
keyTemplateService.update(update);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user