| | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.ProjectPlanRecordAddRequestForm; |
| | | import com.ycl.domain.form.ProjectPlanRecordForm; |
| | | import com.ycl.domain.query.ProjectPlanRecordQuery; |
| | | import com.ycl.domain.vo.ProjectPlanRecordAddRequest; |
| | | import com.ycl.service.ProjectPlanRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | // @PreAuthorize("hasAuthority('projectPlanRecord:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProjectPlanRecordAddRequest form) { |
| | | public Result add(@RequestBody @Validated(Add.class) ProjectPlanRecordAddRequestForm form) { |
| | | return projectPlanRecordService.add(form); |
| | | } |
| | | |
| | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | // @PreAuthorize("hasAuthority('projectPlanRecord:del')") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | public Result removeById(@PathVariable("id") Long id) { |
| | | return projectPlanRecordService.removeById(id); |
| | | } |
| | | |