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

import com.hotwj.platform.pay.domain.PayChannel;
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_channel
 *
 * @author shihongwei
 * @date 2026-05-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayChannel.class, reverseConvertGenerate = false)
public class PayChannelBo extends BaseEntity {

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

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

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

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

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

    /**
     * 支付渠道配置
     */
    @NotBlank(message = "支付渠道配置不能为空", groups = {AddGroup.class, EditGroup.class})
    private String config;

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


}
