feat(): 测试修改Api接口文档
parent
f454280017
commit
2411b74870
|
@ -0,0 +1,70 @@
|
|||
package com.muyu.cloud.pay.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @Author:liuxinyue
|
||||
* @Package:com.muyu.cloud.pay.domain
|
||||
* @Project:cloud-pay
|
||||
* @name:OrderPayInfo
|
||||
* @Date:2024/8/4 11:04
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName(value = "order_pay_info",autoResultMap = true)
|
||||
public class OrderPayInfo extends BaseEntity{
|
||||
|
||||
/**
|
||||
* 客户名称
|
||||
*/
|
||||
private String appName;
|
||||
|
||||
/**
|
||||
* 客户编号
|
||||
*/
|
||||
private String appCode;
|
||||
|
||||
/**
|
||||
* 客户单号
|
||||
*/
|
||||
private String cusOrderNumber;
|
||||
|
||||
/**
|
||||
* 支付单号
|
||||
*/
|
||||
private String payOrderNumber;
|
||||
|
||||
/**
|
||||
*支付金额
|
||||
*/
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 渠道商类型
|
||||
*/
|
||||
private String channelType;
|
||||
|
||||
/**
|
||||
* 渠道商单号
|
||||
*/
|
||||
private String channelOrderNumber;
|
||||
|
||||
/**
|
||||
* 支付单状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -26,17 +26,17 @@ public class CustomerListReq {
|
|||
/**
|
||||
* 服务/客户名称
|
||||
*/
|
||||
@Schema(name = "服务/客户名称",type = "String",description = "客户名称,为微服务中文名称")
|
||||
@Schema(type = "String",description = "客户名称,为微服务中文名称")
|
||||
private String appName;
|
||||
/**
|
||||
* 服务/客户编码
|
||||
*/
|
||||
@Schema(name = "服务/客户编码",type = "String",description = "客户名称,为微服务名称")
|
||||
@Schema(type = "String",description = "客户名称,为微服务名称")
|
||||
private String appCode;
|
||||
/**
|
||||
* 是否开启
|
||||
*/
|
||||
@Schema(name = "是否开启",type = "String",description = "客户状态,Y是开启,N是关闭")
|
||||
@Schema(type = "String",description = "客户状态,Y是开启,N是关闭")
|
||||
@IsSystemYesNo
|
||||
private String status;
|
||||
|
||||
|
|
|
@ -0,0 +1,76 @@
|
|||
package com.muyu.cloud.pay.domain.resp;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author:liuxinyue
|
||||
* @Package:com.muyu.cloud.pay.domain.resp
|
||||
* @Project:cloud-pay
|
||||
* @name:CustomerResp
|
||||
* @Date:2024/8/4 11:03
|
||||
*/
|
||||
@Tag(name ="客户信息相应对象",description ="负责客户信息查询的响应结果")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class CustomerListResp {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@Schema(description ="客户ID",defaultValue ="1",type = "Long")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 服务/客户名称
|
||||
*/
|
||||
@Schema(description ="客户名称",defaultValue ="商品服务",type ="String")
|
||||
private String appName;
|
||||
|
||||
/**
|
||||
* 服务/客户编码
|
||||
*/
|
||||
@Schema(description = "客户编码",defaultValue ="cloud_order",type = "String")
|
||||
private String appCode;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description ="客户状态,同数据字典-系统是否",defaultValue ="Y",type = "String")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 客户最近5条支付单
|
||||
*/
|
||||
private List<CustomerOrderPaySimpleResp> orderPaySimpleRespList;
|
||||
|
||||
|
||||
@Schema(description="创建人",defaultValue ="muyu", type ="String")
|
||||
private String createBy;
|
||||
|
||||
@JsonFormat(
|
||||
pattern = "yyyy-MM-dd HH:mm:ss"
|
||||
)
|
||||
@Schema(description ="创建时间", defaultValue ="2024-7-31 14:30:29", type ="Date")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
public static CustomerListResp customerBuild(OrderPayCustomer orderPayCustomer) {
|
||||
return CustomerListResp.builder()
|
||||
.id(orderPayCustomer.getId())
|
||||
.appName(orderPayCustomer.getAppName())
|
||||
.appCode(orderPayCustomer.getAppCode())
|
||||
.createBy(orderPayCustomer.getCreateBy())
|
||||
.createTime(orderPayCustomer.getCreateTime())
|
||||
.build();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
package com.muyu.cloud.pay.domain.resp;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @Author:liuxinyue
|
||||
* @Package:com.muyu.cloud.pay.domain.resp
|
||||
* @Project:cloud-pay
|
||||
* @name:CustomerOrderPaySimpleResp
|
||||
* @Date:2024/8/4 11:29
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CustomerOrderPaySimpleResp {
|
||||
|
||||
/**
|
||||
* 客户单号
|
||||
*/
|
||||
private String cusOrderNumber;
|
||||
|
||||
/**
|
||||
* 支付单号
|
||||
*/
|
||||
private String payOrderNumber;
|
||||
|
||||
/**
|
||||
*支付金额
|
||||
*/
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 渠道商类型
|
||||
*/
|
||||
private String channelType;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package com.muyu.cloud.pay.domain.resp;
|
||||
|
||||
/**
|
||||
* @Author:liuxinyue
|
||||
* @Package:com.muyu.cloud.pay.domain.resp
|
||||
* @Project:cloud-pay
|
||||
* @name:OrderPayResp
|
||||
* @Date:2024/8/4 11:28
|
||||
*/
|
||||
public class OrderPayResp {
|
||||
}
|
Loading…
Reference in New Issue