package org.dromara.zhishu.domain.bo;

import org.dromara.zhishu.domain.PriceTemplate;
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;

/**
 * 价格模板业务对象 t_price_template
 *
 * @author yxy
 * @date 2025-03-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PriceTemplate.class, reverseConvertGenerate = false)
public class PriceTemplateBo extends BaseEntity {

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

    /**
     * 价格模板名称
     */
    private String templateName;

    /**
     * 价格类型 0 书价  1 总价（书价+运费）
     */
    private String priceType;

    /**
     * 增加比例
     */
    private BigDecimal proportion;

    /**
     * 增加金额
     */
    private BigDecimal addAmount;

    /**
     * 价格模板状态（0正常 1停用）
     */
    private String status;

    /**
     * 价格区间最大值
     */
    private Integer highPrice;
    /**
     * 价格区间最小值
     */
    private Integer lowPrice;

    /**
     * 价格参数
     */
    private String rangePrice;
}
