package com.shkj.wms.bo;

import com.shkj.common.core.validate.AddGroup;
import com.shkj.common.core.validate.EditGroup;
import com.shkj.wms.domain.BasRuleDetail;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * 编码规则业务对象 bas_rule
 *
 * @author lch
 * @date 2022-12-08
 */

@Data
public class BasRuleAddBo {

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

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

    /**
     * 规则编号
     */
    @NotBlank(message = "规则编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String ruleNum;

    /**
     * 规则描述
     */
    private String description;

    /**
     * 规则状态（1正常 0停用）
     */
    private String status;



    /**
     * 规则详情list
     */
    private List<BasRuleDetail> list;


}
