Browse Source

//vodeo

private_deployment
xhxu 2 years ago
parent
commit
90efadcf46
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      suimangCApi/src/main/java/com/iformall/controller/UserMouldVideoController.java

+ 19
- 0
suimangCApi/src/main/java/com/iformall/controller/UserMouldVideoController.java View File

@@ -67,6 +67,9 @@ public class UserMouldVideoController extends BaseController {
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true)
public ResultData findById(Long id) {
logger.debug("[" + getIpAddr() + "] MouldPatchController::findById");
if(id == null){
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"参数为空");
}
UserMouldVideo mouldVideo = userMouldVideoService.getById(id);
if(mouldVideo == null || !mouldVideo.getUserId().equals(getMemberId())){
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"未找到用户数据");
@@ -83,6 +86,22 @@ public class UserMouldVideoController extends BaseController {
return new ResultData(mouldVideo);
}

@ApiOperation("根据id查询接口")
@GetMapping("/del")
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true)
public ResultData del(Long id) {
logger.debug("[" + getIpAddr() + "] MouldPatchController::del");
if(id == null){
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"参数为空");
}
UserMouldVideo mouldVideo = userMouldVideoService.getById(id);
if(mouldVideo == null || !mouldVideo.getUserId().equals(getMemberId())){
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"未找到用户数据");
}
userMouldVideoService.deleteById(id);
return new ResultData();
}

@ApiOperation("新增接口")
@PostMapping("saveOrUpdate")
public ResultData saveOrUpdate(@RequestBody UserMouldVideo record) {


Loading…
Cancel
Save