init
This commit is contained in:
@@ -1,25 +1,32 @@
|
||||
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 {
|
||||
/**
|
||||
* 用户号/ID号
|
||||
*/
|
||||
|
||||
@ExcelProperty(value = "蜜瓜号")
|
||||
private String usercode;
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
@ExcelProperty(value = "昵称")
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@Sensitive(strategy = SensitiveStrategy.PHONE)
|
||||
@ExcelProperty(value = "手机号")
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
@@ -31,5 +38,7 @@ public class AccountCashAdminVo extends AccountCash {
|
||||
*/
|
||||
private Integer gender;
|
||||
private Integer age;
|
||||
@ExcelProperty(value = "主播",converter = ExcelEnumConvert.class)
|
||||
@ExcelEnumFormat(enumClass = IsAnchorEnum.class,codeField = "code",textField = "message")
|
||||
private Integer isAnchor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user