Changes
This commit is contained in:
+19
-26
@@ -3,48 +3,41 @@ package com.wanji.software.tocc.infra.maint.api;
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||
import com.wanji.software.tocc.infra.maint.model.BridgeListModel;
|
||||
import com.wanji.software.tocc.infra.maint.model.BridgeModel;
|
||||
import com.wanji.software.tocc.infra.maint.model.BridgeSearchModel;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.BridgePageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.BridgeResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.BridgeSaveReq;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 桥梁信息表
|
||||
*/
|
||||
@FeignClient(name = ApiConstants.NAME, contextId = "BridgeApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||
@Tag(name = "RPC 服务 - 桥梁信息表")
|
||||
@Tag(name = "RPC 服务 - 桥梁")
|
||||
public interface BridgeApi {
|
||||
|
||||
String PREFIX = ApiConstants.PREFIX + "/bridge";
|
||||
|
||||
@PostMapping(PREFIX + "/create")
|
||||
@Operation(summary = "新增桥梁信息表")
|
||||
Result<BridgeResp> create(@RequestBody BridgeSaveReq req);
|
||||
|
||||
@GetMapping(PREFIX + "/get-by-id")
|
||||
@Operation(summary = "按主键查询桥梁信息表")
|
||||
Result<BridgeResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||
|
||||
@PutMapping(PREFIX + "/update")
|
||||
@Operation(summary = "修改桥梁信息表")
|
||||
Result<Boolean> update(@RequestBody BridgeSaveReq req);
|
||||
|
||||
@DeleteMapping(PREFIX + "/delete")
|
||||
@Operation(summary = "删除桥梁信息表")
|
||||
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||
|
||||
@PostMapping(PREFIX + "/page")
|
||||
@Operation(summary = "分页查询桥梁")
|
||||
Result<PageResult<BridgeListModel>> page(@RequestBody BridgeSearchModel searchModel);
|
||||
|
||||
@PostMapping(PREFIX + "/create")
|
||||
@Operation(summary = "新增桥梁")
|
||||
Result<Boolean> create(@RequestBody BridgeModel model);
|
||||
|
||||
@PostMapping(PREFIX + "/update")
|
||||
@Operation(summary = "修改桥梁")
|
||||
Result<Boolean> update(@RequestBody BridgeModel model);
|
||||
|
||||
@PostMapping(PREFIX + "/delete")
|
||||
@Operation(summary = "删除桥梁")
|
||||
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("ids") String ids);
|
||||
|
||||
@GetMapping(PREFIX + "/get-by-id")
|
||||
@Operation(summary = "按主键查询桥梁")
|
||||
Result<BridgeModel> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import java.math.BigDecimal;
|
||||
@Schema(description = "桥梁列表")
|
||||
public class BridgeListModel {
|
||||
|
||||
@Schema(description = "ID")
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "管养单位-名称")
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
package com.wanji.software.tocc.infra.maint.model;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
@Schema(description = "桥梁")
|
||||
public class BridgeModel {
|
||||
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "管养单位-ID")
|
||||
private String deptId;
|
||||
|
||||
@Schema(description = "道路-ID")
|
||||
private String roadId;
|
||||
|
||||
@Schema(description = "路段-ID")
|
||||
private String roadSectionId;
|
||||
|
||||
@Schema(description = "桥梁编码")
|
||||
private String bridgeCode;
|
||||
|
||||
@Schema(description = "桥梁名称")
|
||||
private String bridgeName;
|
||||
|
||||
@Schema(description = "起点桩号")
|
||||
private String chainageStart;
|
||||
|
||||
@Schema(description = "终点桩号")
|
||||
private String chainageEnd;
|
||||
|
||||
@Schema(description = "桥梁类型")
|
||||
private Integer bridgeType;
|
||||
|
||||
@Schema(description = "桥梁全长(m)")
|
||||
private BigDecimal bridgeLen;
|
||||
|
||||
@Schema(description = "跨径总长(m)")
|
||||
private BigDecimal totalSpanLen;
|
||||
|
||||
@Schema(description = "桥面净宽(m)")
|
||||
private BigDecimal deckClearWidth;
|
||||
|
||||
@Schema(description = "建设单位")
|
||||
private String owner;
|
||||
|
||||
@Schema(description = "设计单位")
|
||||
private String designer;
|
||||
|
||||
@Schema(description = "施工单位")
|
||||
private String contractor;
|
||||
|
||||
@Schema(description = "监理单位")
|
||||
private String supervisor;
|
||||
|
||||
@Schema(description = "行政区划-ID")
|
||||
private String regionId;
|
||||
|
||||
@Schema(description = "经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
@Schema(description = "纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
@Schema(description = "状态")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "技术状态")
|
||||
private Integer techStatus;
|
||||
|
||||
@Schema(description = "附件")
|
||||
private String attacmentIds;
|
||||
}
|
||||
+1
-1
@@ -9,7 +9,7 @@ import java.math.BigDecimal;
|
||||
@Schema(description = "道路列表")
|
||||
public class RoadListModel {
|
||||
|
||||
@Schema(description = "ID")
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "管养单位-名称")
|
||||
|
||||
Reference in New Issue
Block a user