package com.hotwj.platform.pay.domain.bo;

import com.hotwj.platform.pay.domain.PayApp;
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.*;

/**
 * 支付应用信息业务对象 pay_app
 *
 * @author shihongwei
 * @date 2026-05-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayApp.class, reverseConvertGenerate = false)
public class PayAppBo extends BaseEntity {

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

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

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

    /**
     * 开启状态
     */
    @NotNull(message = "开启状态不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long status;

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

    /**
     * 支付结果的回调地址
     */
    @NotBlank(message = "支付结果的回调地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orderNotifyUrl;

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;


}
