package com.ruoyi.system.vo; import cn.afterturn.easypoi.excel.annotation.Excel; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.system.model.TAppUser; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; /** *

* 小程序用户 *

* * @author xiaochen * @since 2025-12-08 */ @Data @EqualsAndHashCode(callSuper = false) @TableName("t_app_user") @ApiModel(value="TAppUser对象", description="小程序用户") public class TAppUserVo implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "主键") @TableId(value = "id", type = IdType.AUTO) private Integer id; @ApiModelProperty(value = "经销商id") @TableField("company_id") private Integer companyId; @ApiModelProperty(value = "姓名") @TableField("name") @Excel(name = "用户名", width = 20,orderNum = "1") private String name; @ApiModelProperty(value = "头像") @TableField("profile_photo") @Excel(name = "头像", width = 20, imageType = 1,type = 2,orderNum = "0") private String profilePhoto; @ApiModelProperty(value = "推广号") @TableField("code") @Excel(name = "推广号", width = 20,orderNum = "2") private String code; @ApiModelProperty(value = "推广二维码地址") @TableField("promotion_qr_code") private String promotionQrCode; @ApiModelProperty(value = "手机号") @TableField("phone") @Excel(name = "联系电话", width = 20,orderNum = "3") private String phone; @ApiModelProperty(value = "性别(1=男,2=女)") @TableField("gender") @Excel(name = "性别", width = 20,orderNum = "4",replace = {"男_1","女_2"}) private Integer gender; @ApiModelProperty(value = "生日") @TableField("birthday") @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "出生日期", width = 20,orderNum = "5",format = "yyyy-MM-dd") private LocalDate birthday; @ApiModelProperty(value = "微信openid") @TableField("openid") private String openid; // 1:游客;2:营销员;3:合伙人; @ApiModelProperty(value = "角色(1=游客,2=营销员,3=合伙人)") @TableField("user_type") @Excel(name = "角色", width = 20,orderNum = "7",replace = {"游客_1","营销员_2","合伙人_3"}) private Integer userType; @ApiModelProperty(value = "注册时间") @TableField("create_time") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "注册时间", width = 20,orderNum = "6",format = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @ApiModelProperty(value = "历史累计积分") @TableField("total_accumulative_integral") private Integer totalAccumulativeIntegral; @ApiModelProperty(value = "累计积分") @TableField("accumulative_integral") private Integer accumulativeIntegral; @ApiModelProperty(value = "推荐人id") @TableField("referrer_user_id") private Integer referrerUserId; @ApiModelProperty(value = "推荐状态(1=临时,2=正式)") @TableField("referrer_status") private Integer referrerStatus; @ApiModelProperty(value = "推荐时间") @TableField("referrer_time") private LocalDateTime referrerTime; @ApiModelProperty(value = "推广状态(0=关闭,1=打开)") @TableField("promotion_status") private Integer promotionStatus; @ApiModelProperty(value = "金币余额") @TableField("gold_balance") private BigDecimal goldBalance; @ApiModelProperty(value = "状态(1=正常,2=冻结,3=删除)") @TableField("status") @Excel(name = "状态", width = 20,orderNum = "8",replace = {"正常_1","冻结_2","删除_3"}) private Integer status; @ApiModelProperty(value = "股东ID") @TableField("referrer_sys_user_id") private Integer referrerSysUserId; @ApiModelProperty(value = "当月预估积分") @TableField(exist = false) private BigDecimal estimatedMonthlyIntegral; @ApiModelProperty("上级推荐人信息") private TAppUser referrerUser; }