package org.dromara.payment.merchant.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 商户配置对象 bus_merchant_config
 *
 * @author LionLi
 * @date 2024-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("bus_merchant_config")
public class BusMerchantConfig extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    public BusMerchantConfig(){}

    public BusMerchantConfig(Integer autoApprove, Integer valiWorker, Long minMoney, Long maxMoney, Long maxMoneyYear) {
        this.autoApprove = autoApprove;
        this.valiWorker = valiWorker;
        this.minMoney = minMoney;
        this.maxMoney = maxMoney;
        this.maxMoneyYear = maxMoneyYear;
    }

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 商户id
     */
    private Long merId;

    /**
     * 是否自动审批（0：否 1：是）
     */
    private Integer autoApprove;

    /**
     * 是否验证用工签约（0：否 1：是）
     */
    private Integer valiWorker;

    private Long minMoney;

    private Long maxMoney;

    private Long maxMoneyYear;

    //不实名，不认证，不签约，0否， 1 是
    private Integer isNothing;
}
