feat:增加tags参数

This commit is contained in:
qiaoqinzheng 2023-05-12 10:30:44 +08:00
parent 5d29eea31e
commit 3aa95589b9
4 changed files with 24 additions and 24 deletions

View File

@ -12,42 +12,42 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@RequestMapping("gardsDetectors") @RequestMapping("gardsDetectors")
@Api("监测器管理") @Api(value = "监测器管理", tags = "监测器管理")
public class GardsDetectorsController { public class GardsDetectorsController {
@Autowired @Autowired
private IGardsDetectorsService gardsDetectorsService; private IGardsDetectorsService gardsDetectorsService;
@GetMapping("findPage") @GetMapping("findPage")
@ApiOperation(value = "分页查询监测器") @ApiOperation(value = "分页查询监测器", tags = "分页查询监测器")
public Result<IPage<GardsDetectors>> findPage(QueryRequest queryRequest, GardsDetectors gardsDetectors){ public Result<IPage<GardsDetectors>> findPage(QueryRequest queryRequest, GardsDetectors gardsDetectors){
Result<IPage<GardsDetectors>> result = gardsDetectorsService.findPage(queryRequest, gardsDetectors); Result<IPage<GardsDetectors>> result = gardsDetectorsService.findPage(queryRequest, gardsDetectors);
return result; return result;
} }
@GetMapping("findInfo") @GetMapping("findInfo")
@ApiOperation(value = "查询监测器详情信息") @ApiOperation(value = "查询监测器详情信息", tags = "查询监测器详情信息")
public GardsDetectors findInfo(Integer id){ public GardsDetectors findInfo(Integer id){
GardsDetectors result = gardsDetectorsService.findInfo(id); GardsDetectors result = gardsDetectorsService.findInfo(id);
return result; return result;
} }
@PostMapping("create") @PostMapping("create")
@ApiOperation(value = "新增监测器信息") @ApiOperation(value = "新增监测器信息", tags = "新增监测器信息")
public Result create(@RequestBody GardsDetectors gardsDetectors){ public Result create(@RequestBody GardsDetectors gardsDetectors){
Result result = gardsDetectorsService.create(gardsDetectors); Result result = gardsDetectorsService.create(gardsDetectors);
return result; return result;
} }
@PutMapping("update") @PutMapping("update")
@ApiOperation(value = "修改监测器信息") @ApiOperation(value = "修改监测器信息", tags = "修改监测器信息")
public Result update(@RequestBody GardsDetectors gardsDetectors){ public Result update(@RequestBody GardsDetectors gardsDetectors){
Result result = gardsDetectorsService.update(gardsDetectors); Result result = gardsDetectorsService.update(gardsDetectors);
return result; return result;
} }
@DeleteMapping("deleteById") @DeleteMapping("deleteById")
@ApiOperation(value = "删除监测器信息") @ApiOperation(value = "删除监测器信息", tags = "删除监测器信息")
public Result deleteById(Integer id){ public Result deleteById(Integer id){
Result result = gardsDetectorsService.deleteById(id); Result result = gardsDetectorsService.deleteById(id);
return result; return result;

View File

@ -12,42 +12,42 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@RequestMapping("gardsNuclearfacility") @RequestMapping("gardsNuclearfacility")
@Api("核设施管理") @Api(value = "核设施管理", tags = "核设施管理")
public class GardsNuclearfacilityController { public class GardsNuclearfacilityController {
@Autowired @Autowired
private IGardsNuclearfacilityService gardsNuclearfacilityService; private IGardsNuclearfacilityService gardsNuclearfacilityService;
@GetMapping("findPage") @GetMapping("findPage")
@ApiOperation(value = "分页查询核设施信息") @ApiOperation(value = "分页查询核设施信息", tags = "分页查询核设施信息")
public Result<IPage<GardsNuclearfacility>> findPage(QueryRequest queryRequest, GardsNuclearfacility gardsNuclearfacility){ public Result<IPage<GardsNuclearfacility>> findPage(QueryRequest queryRequest, GardsNuclearfacility gardsNuclearfacility){
Result<IPage<GardsNuclearfacility>> result = gardsNuclearfacilityService.findPage(queryRequest, gardsNuclearfacility); Result<IPage<GardsNuclearfacility>> result = gardsNuclearfacilityService.findPage(queryRequest, gardsNuclearfacility);
return result; return result;
} }
@GetMapping("findInfo") @GetMapping("findInfo")
@ApiOperation(value = "查询核设施详情信息") @ApiOperation(value = "查询核设施详情信息", tags = "查询核设施详情信息")
public GardsNuclearfacility findInfo(Integer id){ public GardsNuclearfacility findInfo(Integer id){
GardsNuclearfacility result = gardsNuclearfacilityService.findInfo(id); GardsNuclearfacility result = gardsNuclearfacilityService.findInfo(id);
return result; return result;
} }
@PostMapping("create") @PostMapping("create")
@ApiOperation(value = "新增核设施信息") @ApiOperation(value = "新增核设施信息", tags = "新增核设施信息")
public Result create(@RequestBody GardsNuclearfacility gardsNuclearfacility){ public Result create(@RequestBody GardsNuclearfacility gardsNuclearfacility){
Result result = gardsNuclearfacilityService.create(gardsNuclearfacility); Result result = gardsNuclearfacilityService.create(gardsNuclearfacility);
return result; return result;
} }
@PutMapping("update") @PutMapping("update")
@ApiOperation(value = "修改核设施信息") @ApiOperation(value = "修改核设施信息", tags = "修改核设施信息")
public Result update(@RequestBody GardsNuclearfacility gardsNuclearfacility){ public Result update(@RequestBody GardsNuclearfacility gardsNuclearfacility){
Result result = gardsNuclearfacilityService.update(gardsNuclearfacility); Result result = gardsNuclearfacilityService.update(gardsNuclearfacility);
return result; return result;
} }
@DeleteMapping("deleteById") @DeleteMapping("deleteById")
@ApiOperation(value = "删除核设施信息") @ApiOperation(value = "删除核设施信息", tags = "删除核设施信息")
public Result deleteById(Integer id){ public Result deleteById(Integer id){
Result result = gardsNuclearfacilityService.deleteById(id); Result result = gardsNuclearfacilityService.deleteById(id);
return result; return result;

View File

@ -12,42 +12,42 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@RequestMapping("gardsSelfbuilt") @RequestMapping("gardsSelfbuilt")
@Api("自建台站管理") @Api(value = "自建台站管理", tags = "自建台站管理")
public class GardsSelfbuiltController { public class GardsSelfbuiltController {
@Autowired @Autowired
private IGardsSelfbuiltService gardsSelfbuiltService; private IGardsSelfbuiltService gardsSelfbuiltService;
@GetMapping("findPage") @GetMapping("findPage")
@ApiOperation("分页查询自建台站信息") @ApiOperation(value = "分页查询自建台站信息", tags = "分页查询自建台站信息")
public Result<IPage<GardsSelfbuiltStations>> findPage(QueryRequest queryRequest, GardsSelfbuiltStations gardsSelfbuiltStations){ public Result<IPage<GardsSelfbuiltStations>> findPage(QueryRequest queryRequest, GardsSelfbuiltStations gardsSelfbuiltStations){
Result<IPage<GardsSelfbuiltStations>> result = gardsSelfbuiltService.findPage(queryRequest, gardsSelfbuiltStations); Result<IPage<GardsSelfbuiltStations>> result = gardsSelfbuiltService.findPage(queryRequest, gardsSelfbuiltStations);
return result; return result;
} }
@GetMapping("findInfo") @GetMapping("findInfo")
@ApiOperation("查询自建台站详情信息") @ApiOperation(value = "查询自建台站详情信息", tags = "查询自建台站详情信息")
public GardsSelfbuiltStations findInfo(Integer id){ public GardsSelfbuiltStations findInfo(Integer id){
GardsSelfbuiltStations info = gardsSelfbuiltService.findInfo(id); GardsSelfbuiltStations info = gardsSelfbuiltService.findInfo(id);
return info; return info;
} }
@PostMapping("create") @PostMapping("create")
@ApiOperation("新增自建台站信息") @ApiOperation(value = "新增自建台站信息", tags = "新增自建台站信息")
public Result create(@RequestBody GardsSelfbuiltStations gardsSelfbuiltStations){ public Result create(@RequestBody GardsSelfbuiltStations gardsSelfbuiltStations){
Result result = gardsSelfbuiltService.create(gardsSelfbuiltStations); Result result = gardsSelfbuiltService.create(gardsSelfbuiltStations);
return result; return result;
} }
@PutMapping("update") @PutMapping("update")
@ApiOperation("修改自建台站信息") @ApiOperation(value = "修改自建台站信息", tags = "修改自建台站信息")
public Result update(@RequestBody GardsSelfbuiltStations gardsSelfbuiltStations){ public Result update(@RequestBody GardsSelfbuiltStations gardsSelfbuiltStations){
Result result = gardsSelfbuiltService.update(gardsSelfbuiltStations); Result result = gardsSelfbuiltService.update(gardsSelfbuiltStations);
return result; return result;
} }
@DeleteMapping("deleteById") @DeleteMapping("deleteById")
@ApiOperation("删除自建台站信息") @ApiOperation(value = "删除自建台站信息", tags = "删除自建台站信息")
public Result deleteById(Integer id){ public Result deleteById(Integer id){
Result result = gardsSelfbuiltService.deleteById(id); Result result = gardsSelfbuiltService.deleteById(id);
return result; return result;

View File

@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@RequestMapping("gardsStations") @RequestMapping("gardsStations")
@Api("台站管理") @Api(value = "台站管理", tags = "台站管理")
public class GardsStationsController { public class GardsStationsController {
@Autowired @Autowired
@ -25,7 +25,7 @@ public class GardsStationsController {
* @return * @return
*/ */
@GetMapping("findPage") @GetMapping("findPage")
@ApiOperation("分页查询台站管理信息") @ApiOperation(value = "分页查询台站管理信息", tags = "分页查询台站管理信息")
public Result<IPage<GardsStations>> findPage(QueryRequest queryRequest, GardsStations gardsStations){ public Result<IPage<GardsStations>> findPage(QueryRequest queryRequest, GardsStations gardsStations){
Result<IPage<GardsStations>> result = gardsStationsService.findPage(queryRequest, gardsStations); Result<IPage<GardsStations>> result = gardsStationsService.findPage(queryRequest, gardsStations);
return result; return result;
@ -37,7 +37,7 @@ public class GardsStationsController {
* @return * @return
*/ */
@GetMapping("findInfo") @GetMapping("findInfo")
@ApiOperation("查询台站管理详情信息") @ApiOperation(value = "查询台站管理详情信息", tags = "查询台站管理详情信息")
public GardsStations findInfo(Integer stationId){ public GardsStations findInfo(Integer stationId){
GardsStations result = gardsStationsService.findInfo(stationId); GardsStations result = gardsStationsService.findInfo(stationId);
return result; return result;
@ -47,7 +47,7 @@ public class GardsStationsController {
* 新增台站信息接口 * 新增台站信息接口
*/ */
@PostMapping("create") @PostMapping("create")
@ApiOperation("新增台站管理信息") @ApiOperation(value = "新增台站管理信息", tags = "新增台站管理信息")
public Result create(@RequestBody GardsStations gardsStations){ public Result create(@RequestBody GardsStations gardsStations){
Result result = gardsStationsService.create(gardsStations); Result result = gardsStationsService.create(gardsStations);
return result; return result;
@ -57,7 +57,7 @@ public class GardsStationsController {
* 修改台站信息接口 * 修改台站信息接口
*/ */
@PutMapping("update") @PutMapping("update")
@ApiOperation("修改台站管理信息") @ApiOperation(value = "修改台站管理信息", tags = "修改台站管理信息")
public Result update(@RequestBody GardsStations gardsStations){ public Result update(@RequestBody GardsStations gardsStations){
Result result = gardsStationsService.update(gardsStations); Result result = gardsStationsService.update(gardsStations);
return result; return result;
@ -68,7 +68,7 @@ public class GardsStationsController {
* @param stationId * @param stationId
*/ */
@DeleteMapping("deleteById") @DeleteMapping("deleteById")
@ApiOperation("删除台站管理信息") @ApiOperation(value = "删除台站管理信息", tags = "删除台站管理信息")
public Result deleteById(Integer stationId){ public Result deleteById(Integer stationId){
Result result = gardsStationsService.deleteById(stationId); Result result = gardsStationsService.deleteById(stationId);
return result; return result;