package com.nova.sankuai.domain.dto; 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 = "客服对象Dto") public class StaffDto { 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; public SysUser parseUser(StaffDto staffVo) { SysUser sysUser = new SysUser(); BeanUtils.copyProperties(staffVo, sysUser); return sysUser; } }