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

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

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

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

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

    /**
     * 业务简介
     */
    @NotBlank(message = "业务简介不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bizIntro;

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

    /**
     * 退款回调地址模板
     */
    @NotBlank(message = "退款回调地址模板不能为空", groups = { AddGroup.class, EditGroup.class })
    private String refundNotifyUrlTmpl;

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


}
