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

import org.dromara.payment.merchant.domain.BusMerchantAgreement;
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_agreement
 *
 * @author LionLi
 * @date 2024-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusMerchantAgreement.class, reverseConvertGenerate = false)
public class BusMerchantAgreementBo extends BaseEntity {

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

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

    /**
     * 结算中心编号
     */
    @NotBlank(message = "结算中心编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sydNo;

    /**
     * 运营商编号
     */
    @NotBlank(message = "运营商编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String opNo;

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

    /**
     * 协议类型（1：线上 2：线下）
     */
    @NotNull(message = "协议类型（1：线上 2：线下）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer signStyle;

    /**
     * 协议标题
     */
    @NotBlank(message = "协议标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

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

    /**
     * 签约状态（1：签约成功 2：签约失败）
     */
    @NotNull(message = "签约状态（1：签约成功 2：签约失败）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 协议链接
     */
    @NotBlank(message = "协议链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileUrl;

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

    /**
     * 代理商编号
     */
    @NotBlank(message = "代理商编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String channelNo;

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

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


}
