- 优化:解决 idea 提示,泛型需要指定类型

This commit is contained in:
cherishsince 2020-05-12 14:28:47 +08:00
parent e04798d48a
commit 6956489862
1 changed files with 3 additions and 3 deletions

View File

@ -36,21 +36,21 @@ public class AdminsSmsSignController {
@PostMapping("add")
@ApiOperation("签名-添加")
public CommonResult addSign(@RequestBody AddSignRequest addSignRequest) {
public CommonResult<?> addSign(@RequestBody AddSignRequest addSignRequest) {
smsService.addSign(AdminsSmsConvert.INSTANCE.convert(addSignRequest));
return CommonResult.success(null);
}
@PutMapping("update")
@ApiOperation("签名-更新")
public CommonResult updateSign(@RequestBody UpdateSignRequest updateSignRequest) {
public CommonResult<?> updateSign(@RequestBody UpdateSignRequest updateSignRequest) {
smsService.updateSign(AdminsSmsConvert.INSTANCE.convert(updateSignRequest));
return CommonResult.success(null);
}
@DeleteMapping("deleted")
@ApiOperation("签名-删除")
public CommonResult deletedSign(@RequestParam("id") Integer id) {
public CommonResult<?> deletedSign(@RequestParam("id") Integer id) {
smsService.deleteSign(id);
return CommonResult.success(null);
}