package com.kym.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author skyline
 * @description 微信接口
 * @date 2023-07-23 14:33
 */
@AllArgsConstructor
@Getter
public enum WxApi {

    // 微信小程序登录
    WX_MP_LOGIN("https://api.weixin.qq.com/sns/jscode2session?grant_type=authorization_code", RequestMethod.GET),
    WX_MP_GET_PHONE("https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=ACCESS_TOKEN", RequestMethod.POST),
    WX_GET_ACCESS_TOKEN("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential", RequestMethod.GET),
    WX_QR_CODE("https://api.weixin.qq.com/cv/img/qrcode?access_token=ACCESS_TOKEN", RequestMethod.POST);


    private final String api;
    private final RequestMethod requestMethod;

}
