package cn.iocoder.yudao.module.visit.controller.admin.product.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 产品 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProductRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "品种名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "阿莫西林胶囊")
    @ExcelProperty("品种名称")
    private String productName;

    @Schema(description = "包装信息", requiredMode = Schema.RequiredMode.REQUIRED, example = "盒装")
    @ExcelProperty("包装信息")
    private String packageName;

    @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED, example = "10x20mg")
    @ExcelProperty("规格")
    private String specification;

    @Schema(description = "状态（1：正常，0：禁用）", example = "1")
    @ExcelProperty(value = "状态（1：正常，0：禁用）", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

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

}