package com.yc.ship.module.miniapplet.controller.admin.adsense.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yc.ship.framework.excel.core.annotations.DictFormat;
import com.yc.ship.framework.excel.core.convert.DictConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "管理后台 - 广告位管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AdsenseSimpleRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19883")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "广告位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("广告位名称")
    private String adsenseName;

    @Schema(description = "媒体类型：0单图片、1单视频、2图片轮播", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "媒体类型：0单图片、1单视频、2图片轮播", converter = DictConvert.class)
    @DictFormat("adsense_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer adsenseType;

}
