Commit d0928246 authored by Code-KingTT's avatar Code-KingTT

阶段任务-后端-王通通

parent c6cf897a
...@@ -58,7 +58,7 @@ public class AmosToolTemplateController { ...@@ -58,7 +58,7 @@ public class AmosToolTemplateController {
* 根据ID删除 * 根据ID删除
*/ */
@TycloudOperation(ApiLevel = UserType.SUPER_ADMIN, needAuth = false) @TycloudOperation(ApiLevel = UserType.SUPER_ADMIN, needAuth = false)
@PostMapping("/delete") @DeleteMapping("/delete")
@ApiOperation(value = "删除") @ApiOperation(value = "删除")
public ResponseModel<Boolean> deleteById(@RequestParam(value = "templateId") Long templateId) { public ResponseModel<Boolean> deleteById(@RequestParam(value = "templateId") Long templateId) {
return ResponseHelper.buildResponse(amosToolTemplateService.deleteBySeq(templateId)); return ResponseHelper.buildResponse(amosToolTemplateService.deleteBySeq(templateId));
...@@ -68,7 +68,7 @@ public class AmosToolTemplateController { ...@@ -68,7 +68,7 @@ public class AmosToolTemplateController {
* 根据ID更新 * 根据ID更新
*/ */
@TycloudOperation(ApiLevel = UserType.SUPER_ADMIN, needAuth = false) @TycloudOperation(ApiLevel = UserType.SUPER_ADMIN, needAuth = false)
@PostMapping("/update") @PutMapping("/update")
@ApiOperation(value = "更新") @ApiOperation(value = "更新")
public ResponseModel<Boolean> updateById(@RequestParam(value = "templateId") Long templateId) { public ResponseModel<Boolean> updateById(@RequestParam(value = "templateId") Long templateId) {
return ResponseHelper.buildResponse(amosToolTemplateService.updateTimes(templateId)); return ResponseHelper.buildResponse(amosToolTemplateService.updateTimes(templateId));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment