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

import com.xunhong.erp.turbo.base.dto.Command;
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 ProductCreateCmd extends Command {

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

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

    /**
     * 关联成本费用id
     */
    @Schema(title = "关联成本费用id")
    private List<Long> costIds;

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

    /**
     * 备注
     */
    @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;

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

}

