feat():添加导出接口

master
zhang chengzhi 2024-08-09 22:28:09 +08:00
parent 8b39b78159
commit ea46221f09
1 changed files with 21 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package com.muyu.cloud.pay.domain.resp;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.cloud.pay.domain.OrderPayCustomer; import com.muyu.cloud.pay.domain.OrderPayCustomer;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
@ -30,18 +31,29 @@ public class CustomerResp {
/** /**
* *
*/ */
@Excel(
name = "用户序号",
cellType = Excel.ColumnType.NUMERIC,
prompt = "用户编号"
)
@Schema(description = "客户ID", defaultValue = "1", type = "Long") @Schema(description = "客户ID", defaultValue = "1", type = "Long")
private Long id; private Long id;
/** /**
* / * /
*/ */
@Excel(
name = "登录名称"
)
@Schema(description = "客户名称", defaultValue = "商品服务", type = "String") @Schema(description = "客户名称", defaultValue = "商品服务", type = "String")
private String appName; private String appName;
/** /**
* / * /
*/ */
@Excel(
name = "登录名称"
)
@Schema(description = "客户ID", defaultValue = "cloud_order", type = "String") @Schema(description = "客户ID", defaultValue = "cloud_order", type = "String")
private String appCode; private String appCode;
@ -49,11 +61,19 @@ public class CustomerResp {
/** /**
* *
*/ */
@Excel(
name = "登录名称"
)
@Schema(description = "客户状态,同数据字典-系统是否", defaultValue = "Y", type = "String") @Schema(description = "客户状态,同数据字典-系统是否", defaultValue = "Y", type = "String")
private String status; private String status;
@Excel(
name = "登录名称"
)
@Schema(description = "创建人", defaultValue = "muyu", type = "String") @Schema(description = "创建人", defaultValue = "muyu", type = "String")
private String createBy; private String createBy;
@Excel(
name = "登录名称"
)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "创建时间", defaultValue = "2024-8-1 0:22:36", type = "Date") @Schema(description = "创建时间", defaultValue = "2024-8-1 0:22:36", type = "Date")
private Date createTime; private Date createTime;