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_app
 *
 * @author liushuai
 * @date 2025-05-13
 */

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

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

    /**
     * 应用AppID
     */
    @NotBlank(message = "应用AppID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appId;

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

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

    /**
     * 交易支付类型
     */
    @NotBlank(message = "交易支付类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tradeType;

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

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

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

    /**
     * 状态  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;


}
