陶杰
2024-08-22 ee9032d9baf5f33e376d2d2699136e0a7b26bec7
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
package com.mzl.flower.dto.response.system;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mzl.flower.base.AbstractTransDTO;
import com.mzl.flower.base.annotation.DictTrans;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.time.LocalDate;
import java.time.LocalDateTime;
 
@Data
public class UserListDTO extends AbstractTransDTO {
 
    private String id;
 
    @ApiModelProperty(value = "用户名")
    private String loginName;
 
    @ApiModelProperty(value = "手机号")
    private String tel;
 
    @ApiModelProperty(value = "昵称")
    private String nickName;
 
    @ApiModelProperty(value = "头像")
    private String picture;
 
    @ApiModelProperty(value = "状态")
    @DictTrans(target = "statusStr", codeType = "USER_STATUS")
    private String status;
    private String statusStr;
 
    @ApiModelProperty(value = "角色")
    private String roleDesc;
 
    @ApiModelProperty(value = "角色id,多个逗号分隔")
    private String roleIds;
 
    private String isSys;//是否系统用户
 
    @ApiModelProperty(value = "创建日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime createdDate;
 
    @ApiModelProperty(value = "创建者")
    private String createdName;
 
 
    @ApiModelProperty("出生日期")
    private LocalDate birthday;
 
    @ApiModelProperty("性别(gender)")
    @DictTrans(target = "genderStr", codeType = "gender")
    private String gender;
 
    @ApiModelProperty("性别(gender)")
    private String genderStr;
 
    @ApiModelProperty("身份证号码")
    private String idCard;
 
    @ApiModelProperty("职位名称")
    private String postName;
 
    @ApiModelProperty("工作内容")
    private String workContent;
 
    @ApiModelProperty("入职日期")
    private LocalDate inDate;
 
    @ApiModelProperty("薪水")
    private Long salary;
}