package org.dromara.system.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.system.domain.SysCustomer;

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

/**
 * 客户视图对象 sys_customer
 *
 * @author Lion Li
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysCustomer.class)
public class SysCustomerVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 客户ID
     */
    @ExcelProperty(value = "客户ID")
    private Long id;

    /**
     * 用户名
     */
    @ExcelProperty(value = "用户名")
    private String userName;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String phone;

    /**
     * 微信OpenID
     */
    private String wechatOpenid;

    /**
     * 微信UnionID
     */
    private String wechatUnionid;

    /**
     * 授权客户类型
     */
    @ExcelProperty(value = "授权客户类型")
    private String authClientClass;

    /**
     * 授权加入时间
     */
    @ExcelProperty(value = "授权加入时间")
    private Date authClientEnterDate;

    /**
     * 授权客户ERP RowID
     */
    private String authClientFRowID;

    /**
     * 授权客户名称
     */
    @ExcelProperty(value = "授权客户名称")
    private String authClientName;

    /**
     * 头像OSS ID
     */
    @ExcelProperty(value = "头像OSS ID")
    private Long avatar;

    /**
     * 头像URL（通过OSS ID翻译）
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "avatar")
    private String avatarUrl;

    /**
     * 注册时间
     */
    @ExcelProperty(value = "注册时间")
    private Date createTime;

}
