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