“mitao”
2026-02-03 6b56672a7e02a0bf340021f00a4898bee9b13834
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
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 com.ruoyi.system.model.TCompany;
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;
 
/**
 * <p>
 * 小程序用户
 * </p>
 *
 * @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;
 
    @ApiModelProperty("上级经销商信息")
    private TCompany referrerCompany;
 
}