注销defined接口

cy
sy200 2024-08-23 09:32:07 +08:00
parent dd84f5b334
commit d5d328a74a
1 changed files with 25 additions and 25 deletions

View File

@ -54,31 +54,31 @@ public class DefinedController {
// );
// }
/**
*
*/
@PostMapping
@Operation(summary = "添加", description = "根据接口实体类添加,添加成功之后才可以使用支付类产品")
public Result<String> save(@Validated @RequestBody Defined defined) {
definedService.save(defined);
return Result.success();
}
/**
*
*/
@PutMapping("/{definedId}")
@Operation(summary = "修改", description = "通过ID修改信息")
public Result<String> updateById(
@Validated @RequestBody Defined defined,
@Schema(title = "ID", defaultValue = "1", type = "Long", description = "修改信息所需的唯一条件")
@PathVariable("definedId") Long definedId) {
definedService.updateById(defined);
return Result.success();
}
//
// /**
// * 接口添加
// */
// @PostMapping
// @Operation(summary = "添加", description = "根据接口实体类添加,添加成功之后才可以使用支付类产品")
// public Result<String> save(@Validated @RequestBody Defined defined) {
// definedService.save(defined);
// return Result.success();
// }
//
//
// /**
// * 接口修改
// */
// @PutMapping("/{definedId}")
// @Operation(summary = "修改", description = "通过ID修改信息")
// public Result<String> updateById(
// @Validated @RequestBody Defined defined,
// @Schema(title = "ID", defaultValue = "1", type = "Long", description = "修改信息所需的唯一条件")
// @PathVariable("definedId") Long definedId) {
//
// definedService.updateById(defined);
// return Result.success();
// }
}