package org.dromara.pay.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.pay.domain.PayApp;

/**
 * 支付应用业务对象 pay_app
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode
@AutoMapper(target = PayApp.class, reverseConvertGenerate = false)
public class PayAppBo {

    /**
     * 应用ID
     */
    private Long id;

    /**
     * 应用名
     */
    @NotBlank(message = "应用名不能为空")
    private String name;

    /**
     * 状态(0开启 1关闭)
     */
    @NotNull(message = "状态不能为空")
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 支付结果回调地址
     */
    @NotBlank(message = "支付结果回调地址不能为空")
    private String payNotifyUrl;

    /**
     * 退款结果回调地址
     */
    @NotBlank(message = "退款结果回调地址不能为空")
    private String refundNotifyUrl;

}
