package com.propertyManagement.pay.domain.bo;

import com.propertyManagement.common.core.validate.AddGroup;
import com.propertyManagement.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.propertyManagement.common.core.domain.BaseEntity;

/**
 * 支付商户业务对象 cms_pay_merchant
 *
 * @author liushuai
 * @date 2025-05-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CmsPayMerchantBo extends BaseEntity {

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

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

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

    /**
     * 服务商编码
     */
    @NotBlank(message = "服务商编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String providerCode;

    /**
     * 商户配置（json）
     */
    @NotBlank(message = "商户配置（json）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String merchantConfig;

    /**
     * 状态  0 禁用  1 启用
     */
    @NotNull(message = "状态  0 禁用  1 启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isEnable;

    /**
     * 是否锁定  0 否 1 是
     */
    @NotNull(message = "是否锁定  0 否 1 是不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isLock;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
