package org.dromara.main.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.mybatis.core.domain.BaseEntity;
import org.dromara.main.domain.MainBackClause;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MainBackClause.class, reverseConvertGenerate = false)
public class MainBackClauseBo extends BaseEntity {

    private Long id;

    @NotNull(message = "所属分类不能为空")
    private Long categoryId;

    @NotBlank(message = "条款名称不能为空")
    private String name;

    private String type;

    private String description;

    private BigDecimal price;

    private String status;

    private String remark;
}
