更新myapi部分
parent
f9db439998
commit
ede9feb7f1
|
@ -85,4 +85,8 @@ public class MyApi {
|
|||
*请求方式
|
||||
*/
|
||||
private String requestMethod;
|
||||
/**
|
||||
* 重要路径
|
||||
*/
|
||||
private String apiRouter;
|
||||
}
|
||||
|
|
|
@ -72,6 +72,10 @@ public class Product extends BaseEntity {
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "产品上架日期",defaultValue = "2024-8-9 10:47:57",type = "Date")
|
||||
private Date productShelvesdate;
|
||||
/**
|
||||
* 重要路径
|
||||
*/
|
||||
private String apiRouter;
|
||||
/**
|
||||
*接口地址
|
||||
*/
|
||||
|
@ -99,6 +103,7 @@ public class Product extends BaseEntity {
|
|||
.apiAddress(productAddReq.getApiAddress())
|
||||
.returnFormat(productAddReq.getReturnFormat())
|
||||
.requestMethod(productAddReq.getRequestMethod())
|
||||
.apiRouter(productAddReq.getApiRouter())
|
||||
.build();
|
||||
}
|
||||
|
||||
|
@ -117,6 +122,7 @@ public class Product extends BaseEntity {
|
|||
.apiAddress(productUpdReq.getApiAddress())
|
||||
.returnFormat(productUpdReq.getReturnFormat())
|
||||
.requestMethod(productUpdReq.getRequestMethod())
|
||||
.apiRouter(productUpdReq.getApiRouter())
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
|
@ -76,4 +76,8 @@ public class ProductAddReq {
|
|||
*请求方式
|
||||
*/
|
||||
private String requestMethod;
|
||||
/**
|
||||
* 重要路径
|
||||
*/
|
||||
private String apiRouter;
|
||||
}
|
||||
|
|
|
@ -45,6 +45,10 @@ public class ProductListReq {
|
|||
*/
|
||||
@Schema(description = "产品状态 同数据字典-系统是否",defaultValue = "1",type = "Integer")
|
||||
private String productState;
|
||||
/**
|
||||
* 重要路径
|
||||
*/
|
||||
private String apiRouter;
|
||||
/**
|
||||
*接口地址
|
||||
*/
|
||||
|
|
|
@ -75,4 +75,8 @@ public class ProductUpdReq {
|
|||
*请求方式
|
||||
*/
|
||||
private String requestMethod;
|
||||
/**
|
||||
* 重要路径
|
||||
*/
|
||||
private String apiRouter;
|
||||
}
|
||||
|
|
|
@ -61,6 +61,10 @@ public class ProductListResp {
|
|||
*请求方式
|
||||
*/
|
||||
private String requestMethod;
|
||||
/**
|
||||
* 重要路径
|
||||
*/
|
||||
private String apiRouter;
|
||||
|
||||
@Schema(description = "创建人",defaultValue = "muyu",type = "String")
|
||||
private String createBy;
|
||||
|
@ -89,6 +93,7 @@ public class ProductListResp {
|
|||
.apiAddress(product.getApiAddress())
|
||||
.returnFormat(product.getReturnFormat())
|
||||
.requestMethod(product.getRequestMethod())
|
||||
.apiRouter(product.getApiRouter())
|
||||
.createBy(product.getCreateBy())
|
||||
.createTime(product.getCreateTime())
|
||||
.build();
|
||||
|
|
|
@ -15,7 +15,11 @@
|
|||
<result property="productSales" column="product_sales"></result>
|
||||
<result property="productType" column="product_type"></result>
|
||||
<result property="productShelvesdate" column="product_shelvesdate"></result>
|
||||
<result property="productAddress" column="product_address"></result>
|
||||
<result property="apiAddress" column="api_address"></result>
|
||||
<result property="returnFormat" column="return_format"></result>
|
||||
<result property="returnFormat" column="return_format"></result>
|
||||
<result property="requestMethod" column="request_method"></result>
|
||||
<result property="apiRouter" column="api_router"></result>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectmyapi">
|
||||
|
@ -32,7 +36,8 @@
|
|||
product_shelvesdate,
|
||||
api_address,
|
||||
return_format,
|
||||
request_method
|
||||
request_method,
|
||||
api_router
|
||||
FROM
|
||||
myapi
|
||||
LEFT JOIN product ON myapi.product_id = product.product_id
|
||||
|
|
Loading…
Reference in New Issue