package com.tashow.cloud.system.controller.admin.dict.vo.type;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.tashow.cloud.excel.excel.core.annotations.DictFormat;
import com.tashow.cloud.excel.excel.core.convert.DictConvert;
import com.tashow.cloud.systemapi.enums.DictTypeConstants;
import java.time.LocalDateTime;
import lombok.Data;

/** 管理后台 - 字典类型信息 Response VO */
@Data
@ExcelIgnoreUnannotated
public class DictTypeRespVO {

  /** 字典类型编号" */
  @ExcelProperty("字典主键")
  private Long id;

  /** 字典名称", example = "性别 */
  @ExcelProperty("字典名称")
  private String name;

  /** 字典类型" */
  @ExcelProperty("字典类型")
  private String type;

  /** 状态，参见 CommonStatusEnum 枚举类" */
  @ExcelProperty(value = "状态", converter = DictConvert.class)
  @DictFormat(DictTypeConstants.COMMON_STATUS)
  private Integer status;

  /** 备注 */
  private String remark;

  /** 创建时间", example = "时间戳格式 */
  private LocalDateTime createTime;
}
