package com.jeesharp.business.modules.pay.paychannelconfig.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 支付渠道公共配置实体，映射表 {@code pay_channel_config}；各渠道密钥等见子表（如 pay_wechat_config）。
 *
 * @author jeesharp
 * @since 2026-05-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("pay_channel_config")
@Schema(description = "支付渠道公共配置")
public class PayChannelConfig extends BaseEntity<PayChannelConfig> {

    /**
     * @see com.jeesharp.business.modules.pay.paychannelconfig.enums.PayChannelCodeEnum
     */
    @Schema(description = "渠道编码：WECHAT、ALIPAY、PFA、TLINX")
    private String channelCode;

    @Schema(description = "配置编码")
    private String configCode;

    @Schema(description = "配置名称")
    private String configName;

    /**
     * @see com.jeesharp.business.modules.pay.paychannelconfig.enums.PayChannelConfigStatusEnum
     */
    @Schema(description = "记录状态：0-禁用 1-启用")
    private Integer status;

    @Schema(description = "回调基地址")
    private String notifyBaseUrl;

    @Schema(description = "支付中心默认回调相对路径")
    private String payCenterNotifyPath;

    @Schema(description = "排序")
    private Integer sort;
}
