zbb378@sohu.com
2024-11-04 b2bad51be3c8d3e78d7f81a19415faeac2d0297c
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
package com.nova.sankuai.domain.vo.sysuser;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.nova.sankuai.domain.entity.SysUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;
 
import java.util.Date;
 
/**
 * @author weikangdi
 * @create 2021/11/22
 */
@Data
@ApiModel(value = "客服对象Vo")
public class StaffVo {
 
    @ApiModelProperty(value = "主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
 
    @ApiModelProperty(value = "用户名")
    private String userName;
 
    @ApiModelProperty(value = "手机号")
    private String userPhone;
 
    @ApiModelProperty(value = "分配状态 0-未启用 1-启用")
    private Integer status;
 
    @ApiModelProperty(value = "最后登录时间")
    private Date lastLoginTime;
 
    @ApiModelProperty(value = "角色ID列表")
    private String roleIds;
 
 
    public StaffVo parse(SysUser sysUser) {
        StaffVo staffVo = new StaffVo();
        BeanUtils.copyProperties(sysUser, staffVo);
        return staffVo;
    }
}