package org.dromara.work.domain.bo;

import org.dromara.work.domain.TpDesignQuotes;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 报价业务对象 tp_design_quotes
 *
 * @author Maosw
 * @date 2025-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpDesignQuotes.class, reverseConvertGenerate = false)
public class TpDesignQuotesBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 客服ID
     */
    @NotNull(message = "客服ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sid;

    /**
     * 客服名称
     */
    private String sName;

    /**
     * 项目名称
     */
    @NotBlank(message = "项目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectName;

    /**
     * 客户名称
     */
    @NotBlank(message = "客户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String clientName;

    /**
     * 订单JSON详细
     */
    @NotBlank(message = "订单JSON详细不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderInfo;

    /**
     * 总计图数
     */
    @NotNull(message = "总计图数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer totalImages;

    /**
     * 总计金额
     */
    @NotNull(message = "总计金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal totalAmount;

    /**
     * 定金
     */
    private BigDecimal deposit;

    /**
     * 备注
     */
    private String remark;

    /**
     * 租户  1-设计甄选  2-制图工厂  3-室内联盟
     */
    private Integer tenant;


}
