Commit 47e8544b by lijinqi

api新增试用地址字段

parent 40d1ac94
......@@ -6,5 +6,6 @@ import lombok.Data;
public class ApiDTO {
private Long apiId;
private String apiName;
private String trialUrl;
}
......@@ -64,6 +64,9 @@ public class ApiRespVO {
@ExcelProperty("供应商联系方式")
private String vendorContact;
@Schema(description = "试用地址")
@ExcelProperty("试用地址")
private String trialUrl;
@Schema(description = "备注", example = "随便")
@ExcelProperty("备注")
......
......@@ -48,6 +48,9 @@ public class ApiSaveReqVO {
@Schema(description = "供应商联系方式", example = "13333333333")
private String vendorContact;
@Schema(description = "试用地址", example = "http://...")
private String trialUrl;
@Schema(description = "备注", example = "随便")
private String remark;
......
......@@ -32,6 +32,11 @@ public class ApiDO extends BaseDO {
*/
private String name;
/**
* API 试用地址
*/
private String trialUrl;
/**
* API 最低价格描述
......
......@@ -33,7 +33,7 @@ public interface ApiMapper extends BaseMapperX<ApiDO> {
.orderByDesc(ApiDO::getId));
}
@Select("SELECT DISTINCT a.id AS apiId, a.name AS apiName " +
@Select("SELECT DISTINCT a.id AS apiId, a.name AS apiName, a.trial_url AS trialUrl " +
"FROM apihub_api a " +
"INNER JOIN apihub_api_endpoint_rel r ON r.api_id = a.id AND r.deleted = 0 " +
"INNER JOIN apihub_api_endpoint_application_rel ar ON ar.api_endpoint_id = r.api_endpoint_id AND ar.deleted = 0 " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment