longz
2026-05-28 aa67b3cb0fe26fab576f7710c978ff3594426cca
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
package com.sinata.appointment.entity;
 
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mp_user")
@Schema(description = "小程序用户(与平台 sys_user 分离)")
public class MpUser extends BaseEntity {
 
    @Schema(description = "微信 openId")
    private String openId;
 
    @Schema(description = "公众号 openId")
    private String officialOpenId;
 
    @Schema(description = "微信 unionId")
    private String unionId;
 
    @Schema(description = "VISITOR / EMPLOYEE")
    private String userType;
 
    @Schema(description = "员工所属部门 id,访客为空")
    private Long deptId;
 
    @Schema(description = "是否部门负责人(员工有效)")
    private Boolean deptLeaderFlag;
 
    @Schema(description = "昵称")
    private String nickName;
 
    @Schema(description = "头像")
    private String avatarUrl;
 
    @Schema(description = "手机号")
    private String mobile;
 
    @Schema(description = "性别:男/女")
    private String gender;
 
    @Schema(description = "所属公司")
    private String companyName;
 
    @Schema(description = "员工编号")
    private String staffNo;
 
    /** 1 启用 0 禁用(员工/预建档有效) */
    @Schema(description = "1启用 0禁用")
    private Integer status;
}