Browse Source

feat: 调整api文档

master_tdsql
hxh 1 year ago
parent
commit
69dc8111a1
  1. 12
      shuili-system/src/main/java/com/kms/yxgh/df/controller/DfPlanController.java
  2. 6
      shuili-system/src/main/java/com/kms/yxgh/sz/controller/SzCheckingController.java

12
shuili-system/src/main/java/com/kms/yxgh/df/controller/DfPlanController.java

@ -1,8 +1,8 @@
package com.kms.yxgh.df.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kms.common.utils.BaseEntityUtils;
import com.kms.yxgh.base.Response;
import com.kms.yxgh.df.domain.dto.DfPlanDetailDto;
import com.kms.yxgh.df.domain.entity.DfPlan;
import com.kms.yxgh.df.service.DfPlanService;
import com.shuili.common.annotation.Log;
@ -50,7 +50,7 @@ public class DfPlanController {
*/
@ApiOperation(" 堤防巡视检查计划详情")
@GetMapping(value = "/{id}")
public Response<?> getInfo(@PathVariable("id") Long id) {
public Response<DfPlanDetailDto> getInfo(@PathVariable("id") Long id) {
return Response.ok();
}
@ -60,8 +60,8 @@ public class DfPlanController {
@Log(title = "堤防巡视检查计划新增", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("堤防巡视检查计划新增")
public Response<?> add(@RequestBody DfPlan dfPlan) {
BaseEntityUtils.preInsert(dfPlan);
public Response<DfPlanDetailDto> add(@RequestBody DfPlanDetailDto dfPlan) {
// BaseEntityUtils.preInsert(dfPlan);
return Response.ok();
}
@ -71,7 +71,7 @@ public class DfPlanController {
@ApiOperation("堤防巡视检查计划修改")
@Log(title = "堤防巡视检查计划修改", businessType = BusinessType.UPDATE)
@PutMapping
public Response<?> edit(@RequestBody DfPlan dfPlan) {
public Response<DfPlanDetailDto> edit(@RequestBody DfPlanDetailDto dfPlan) {
return Response.ok();
}
@ -81,7 +81,7 @@ public class DfPlanController {
@ApiOperation("堤防巡视检查计划删除")
@Log(title = "堤防巡视检查计划删除", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Response<?> remove(@PathVariable Long[] ids) {
public Response<Boolean> remove(@PathVariable Long[] ids) {
return Response.ok();
}
}

6
shuili-system/src/main/java/com/kms/yxgh/sz/controller/SzCheckingController.java

@ -25,7 +25,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@AllArgsConstructor
@RequestMapping("/run/sz/checking")
@Api(tags = "堤防巡视检查")
@Api(tags = "水闸巡视检查")
public class SzCheckingController {
@ -35,7 +35,7 @@ public class SzCheckingController {
* 查询堤防巡视检查列表
*/
@PostMapping("/list")
@ApiOperation("堤防巡视检查列表")
@ApiOperation("水闸巡视检查列表")
public IPage<DfChecking> list(@RequestBody SearchParam<DfChecking> sp) {
return dfCheckingService.selectPage(sp);
}
@ -44,7 +44,7 @@ public class SzCheckingController {
/**
* 获取堤防巡视检查详细信息
*/
@ApiOperation(" 堤防巡视检查详情")
@ApiOperation("水闸巡视检查详情")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(dfCheckingService.getById(id));

Loading…
Cancel
Save