注销defined接口
parent
dd84f5b334
commit
d5d328a74a
|
@ -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();
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue