package org.dromara.payment.merchant.domain.bo;

import org.dromara.payment.merchant.domain.BusMerchantConfig;
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.*;

/**
 * 商户配置业务对象 bus_merchant_config
 *
 * @author LionLi
 * @date 2024-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusMerchantConfig.class, reverseConvertGenerate = false)
public class BusMerchantConfigBo extends BaseEntity {

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

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

    /**
     * 是否自动审批（0：否 1：是）
     */
    @NotNull(message = "是否自动审批（0：否 1：是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer autoApprove;

    /**
     * 是否验证用工签约（0：否 1：是）
     */
    @NotNull(message = "是否验证用工签约（0：否 1：是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer valiWorker;


}
