陶杰
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
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 com.mzl.flower.entity.system.Employee;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.time.LocalDateTime;
import java.util.List;
 
@Data
public class UserDetailsDTO 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 List<String> roleIds;
 
    private String roleDesc;
 
    @ApiModelProperty(value = "员工信息")
    private EmployeeDTO employeeDTO;
 
    @ApiModelProperty(value = "创建日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime createdDate;
 
}