package com.nuvole.constants;
|
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* 外网服务调用
|
*
|
* @Author: lc
|
* @Date: 2019/7/25 14:44
|
*/
|
@Component
|
public class ServiceConstants {
|
|
/**
|
* 对外是否走外网服务调用【true 是 false 否】
|
*/
|
public static Boolean SERVICE_TYPE;
|
|
|
@Value("${service-type}")
|
public void setType(Boolean type) {
|
SERVICE_TYPE = type;
|
}
|
|
|
/**
|
* 调用统一url
|
*/
|
public static final String SERVICE_URL = "http://localhost:9080";
|
|
/**
|
* 商户订单查询接口
|
*/
|
public static final String MERCHANT_PAY_RESULT = SERVICE_URL + "/v1/web/pay/queryorder";
|
|
/**
|
* 查询物流地址
|
*/
|
public static final String SERVICE_EXPRESS_URL = SERVICE_URL + "/v1/shop/web/express/queryExpress";
|
|
/**
|
* 逆地址解析(腾讯地图)
|
*/
|
public static final String SERVICE_TENCENT_LOCATION_URL = SERVICE_URL + "/v1/shop/web/map/tencent/location";
|
|
/**
|
* 小程序支付地址
|
*/
|
public static final String SERVICE_UNIFIED_URL = SERVICE_URL + "/v1/web/pay/miniProgramPay";
|
|
/**
|
* B扫C支付地址
|
*/
|
public static final String SERVICE_B_SWEEP_C_URL = SERVICE_URL + "/v1/web/pay/bSweepCPay";
|
/**
|
* 根据授权码(付款码)获取用户ID 地址
|
*/
|
public static final String SERVICE_AUTHCODE2USERID_URL = SERVICE_URL + "/apiweb/unitorder/authcodetouserid";
|
|
/**
|
* b扫c支付结果查询地址
|
*/
|
public static final String SERVICE_PAY_RESULT_URL = SERVICE_URL + "/v1/web/pay/bSweepCPayResult";
|
|
/**
|
* 短信地址
|
*/
|
public static final String SERVICE_SMS_URL = SERVICE_URL + "/v1/sms/sendSMS";
|
|
/**
|
* 微信jscode转SessionKey地址
|
*/
|
public static final String SERVICE_JSCODE2SESSION_URL = SERVICE_URL + "/v1/sns/jscode2session";
|
|
/**
|
* 微信获取AccessToken
|
*/
|
public static final String SERVICE_TOKEN_URL = SERVICE_URL + "/v1/cgi-bin/token";
|
/**
|
* 微信获取 jsapiTicket
|
*/
|
public static final String SERVICE_JSAPITICKET_URL = SERVICE_URL + "/v1/cgi-bin/jsapiTicket";
|
|
/**
|
* 微信公众号获取access_token
|
*/
|
public static final String SERVICE_ACCESS_TOKEN_URL = SERVICE_URL + "/v1/sns/oauth2/access_token";
|
|
/**
|
* 微信公众号获取用户信息
|
*/
|
public static final String SERVICE_USERINFO_URL = SERVICE_URL + "/v1/sns/userinfo";
|
|
/**
|
* 微信获取小程序码(前提是已发布)
|
*/
|
public static final String SERVICE_WXACODEUNLIMIT_URL = SERVICE_URL + "/v1/wxa/getwxacodeunlimit";
|
|
/**
|
* 微信推送消息
|
*/
|
public static final String SERVICE_TEMPLATE_SEND_URL = SERVICE_URL + "/v1/cgi-bin/message/wxopen/template/send";
|
|
/**
|
* 微信订阅消息-推送
|
*/
|
public static final String SERVICE_SUBSCRIBER_SEND_URL = SERVICE_URL + "/v1/cgi-bin/message/wxopen/subscribe/send";
|
|
/**
|
* 列表导出
|
*/
|
public static final String SERVICE_EXPORT_TABLE_URL = SERVICE_URL + "/v1/export/table";
|
|
/**
|
* 极光推送
|
*/
|
public static final String SERVICE_JG_PUSH_URL = SERVICE_URL + "/v1/jg/push";
|
|
/**
|
* 百度语音
|
*/
|
public static final String SERVICE_BAI_DU_API = SERVICE_URL + "/v1/merchant/app/baidu/api/speech";
|
|
/**
|
* 个推(单推)
|
*/
|
public static final String SERVICE_GE_TUI_URL = SERVICE_URL + "/v1/gt/push";
|
|
/**
|
* 个推(推送一个列表)
|
*/
|
public static final String SERVICE_GE_TUI_LIST_URL = SERVICE_URL + "/v1/gt/pushList";
|
|
|
}
|