package com.jeequan.jeepay.thirdparty.channel.ybpay.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * TODO
 *
 * @author crystal
 * @date 2024/2/27 11:52
 */
@Data
public class ReqMethod {

    /**
     * 统一请求域名
     */
    private final static String DOMAIN = "";


    @Getter
    @AllArgsConstructor
    public enum Method{

        PRE_PAY("/rest/v1.0/aggpay/pre-pay","POST","微信认证"),
        ;

        private final String method;

        private final String reqType;

        private final String desc;

    }

    /**
     * 获取请求接口地址
     * @param method
     * @return
     */
    public static String getUrl(Method method){
        return DOMAIN + method.getMethod();
    }
}
