package org.dromara.client.domain.vo;

import org.dromara.client.domain.TUser;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 客户用户基础信息视图对象 t_user
 *
 * @author ZhouWenTao
 * @date 2026-03-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TUser.class)
public class TUserVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 全局唯一用户ID（自增）
     */
    @ExcelProperty(value = "全局唯一用户ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "自=增")
    private Long id;

    /**
     * 用户名（可选，后台管理用）
     */
    @ExcelProperty(value = "用户名", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "可=选，后台管理用")
    private String username;

    /**
     * 用户昵称（各平台统一）
     */
    @ExcelProperty(value = "用户昵称", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "各=平台统一")
    private String nickname;

    /**
     * 用户头像URL
     */
    @ExcelProperty(value = "用户头像URL")
    private String avatarUrl;

    /**
     * 手机号（脱敏存储，如138****1234）
     */
    @ExcelProperty(value = "手机号", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "脱=敏存储，如138****1234")
    private String phone;

    /**
     * 性别：0-未知，1-男，2-女
     */
    @ExcelProperty(value = "性别：0-未知，1-男，2-女")
    private Long gender;

    /**
     * 状态：0-禁用，1-正常
     */
    @ExcelProperty(value = "状态：0-禁用，1-正常")
    private Long status;

    /**
     * 密码
     */
    @ExcelProperty(value = "密码")
    private String password;

    /**
     * $column.columnComment
     */
    @ExcelProperty(value = "${comment}", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "$column.readConverterExp()")
    private String salt;


}
