package com.ruoyi.cai.dto.admin.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.cai.domain.AccountCash;
import com.ruoyi.cai.enums.IsAnchorEnum;
import com.ruoyi.common.annotation.ExcelEnumFormat;
import com.ruoyi.common.annotation.Sensitive;
import com.ruoyi.common.convert.ExcelEnumConvert;
import com.ruoyi.common.enums.SensitiveStrategy;
import lombok.Data;

@Data
@ExcelIgnoreUnannotated
public class AccountCashAdminVo extends AccountCash {

    @ExcelProperty(value = "蜜瓜号")
    private String usercode;
    /**
     * 昵称
     */
    @ExcelProperty(value = "昵称")
    private String nickname;

    /**
     * 手机号
     */
    @Sensitive(strategy = SensitiveStrategy.PHONE)
    @ExcelProperty(value = "手机号")
    private String mobile;

    /**
     * 头像
     */
    private String avatar;
    /**
     * 性别
     */
    private Integer gender;
    private Integer age;
    @ExcelProperty(value = "主播",converter = ExcelEnumConvert.class)
    @ExcelEnumFormat(enumClass = IsAnchorEnum.class,codeField = "code",textField = "message")
    private Integer isAnchor;
}
