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