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; }