package com.xunhong.erp.turbo.api.biz.dto.vo;

import com.alibaba.cola.dto.DTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "产品表")
@EqualsAndHashCode(callSuper = true)
public class ProductVO extends DTO {

    /**
     * 产品ID
     */
    @Schema(title = "产品ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long productId;

    /**
     * 产品名称
     */
    @Schema(title = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    /**
     * 备注
     */
    @Schema(title = "备注")
    private String remark;

    /**
     * 排序号
     */
    @Schema(title = "排序号", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal sort;

    /**
     * 状态：1_启用；0_禁用
     */
    @Schema(title = "状态：1_启用；0_禁用", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean status;

	/**
	 * 成本ID集合
	 */
	@Schema(title = "成本ID集合")
	private List<Long> costIds;

	/**
	 * 成本费用
	 */
	@Schema(title = "成本费用")
	private List<CostVO> costVOList;

	/**
	 * 成本模板
	 */
	@Schema(title = "成本模板")
	private String costTemplate;

    /**
     * 创建时间
     */
    @Schema(title = "创建时间")
    private LocalDateTime createdAt;

}

