package com.yc.ship.module.marketing.controller.admin.column.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;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 小程序-栏目管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ColumnRespVO {

    @Schema(description = "ID", example = "30576")
    private String id;

    @Schema(description = "栏目标题", example = "王五")
    @ExcelProperty("栏目标题")
    private String name;

    @Schema(description = "栏目副标题", example = "芋艿")
    @ExcelProperty("栏目副标题")
    private String subName;

    @Schema(description = "栏目类型", example = "1")
    @ExcelProperty(value = "栏目类型", converter = DictConvert.class)
    @DictFormat("applet_column_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer type;

    @Schema(description = "是否栏目推荐")
    @ExcelProperty(value = "是否栏目推荐", converter = DictConvert.class)
    @DictFormat("yes_no") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer recommend;

    @Schema(description = "Icon图标")
    @ExcelProperty("Icon图标")
    private String icon;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "背景图")
    private String bgPic;

    @Schema(description = "背景视频")
    private String bgVideo;

    @Schema(description = "外部链接")
    private String link;

    @Schema(description = "产品分组ID")
    private Long productCategoryId;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("更新时间")
    private LocalDateTime updateTime;

}