package org.dromara.work.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.work.domain.TpChangePrice;

/**
 * 改价配置业务对象 tp_change_price
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpChangePrice.class, reverseConvertGenerate = false)
public class TpChangePriceBo extends BaseEntity {

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

    /**
     * 包含人员
     */
    @NotBlank(message = "包含人员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sid;

    /**
     * 改价金额
     */
    @NotNull(message = "改价金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long price;

    /**
     * 状态（1=开启，2=关闭）
     */
    @NotNull(message = "状态（1=开启，2=关闭）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long state;

    /**
     * 最后一次修改时间
     */
    @NotNull(message = "最后一次修改时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long addTime;


}
