package com.yonge.toolset.payment.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.toolset.payment.base.enums.PaymentClientEnum;
import com.yonge.toolset.payment.core.entity.SysConfigPayment;
import com.yonge.toolset.payment.base.enums.OpenEnum;

/**
 * 支付服务配置参数 服务类
 *
 * @author liweifan
 * @date 2022-05-10
 */
public interface SysConfigPaymentService extends IService<SysConfigPayment> {
    /***
     * 获取支付配置
     * @author liweifan
     * @param: openType 支付服务提供方
     * @param: platform 请求客户端
     * @param: paramName 配置名称
     * @updateTime 2022/5/10 22:55
     * @return: com.yonge.toolset.payment.core.entity.SysConfigPayment
     */
    SysConfigPayment getPaymentConfig(OpenEnum openType, PaymentClientEnum client, String paramName);

    /***
     * 获取支付配置
     * @author liweifan
     * @param: openType 支付服务提供方
     * @param: paramName 配置名称
     * @updateTime 2022/5/10 22:55
     * @return: com.yonge.toolset.payment.core.entity.SysConfigPayment
     */
    SysConfigPayment getPaymentConfig(OpenEnum openType, String paramName);
}