package com.cf.imes.module.system.controller.admin.funds.products.vo.product;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.cf.imes.module.system.validation.products.ProductStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

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

    @Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10725")
    @ExcelProperty("产品ID")
    private Long id;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("产品名称")
    private String productName;

    @Schema(description = "产品状态", example = "0待上架 1已上架 2已下架")
    @ExcelProperty("产品状态")
    @ProductStatus
    private Integer status;

    @Schema(description = "软件id", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("软件id")
    private Long softwareId;

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

}
