第三方api接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 line
1.7 KiB

  1. package yunyangwl_express
  2. //检测渠道接口
  3. func GetChannel(appid, secretKey string, params map[string]interface{}) (string, error) {
  4. return Send("CHECK_CHANNEL_INTELLECT", appid, secretKey, params)
  5. }
  6. //查询账户余额接口
  7. func GetBalance(appid, secretKey string, params map[string]interface{}) (string, error) {
  8. return Send("QUERY_BALANCE", appid, secretKey, params)
  9. }
  10. //查询黑名单
  11. func GetBLack(appid, secretKey string, params map[string]interface{}) (string, error) {
  12. return Send("QUERY_BLACK", appid, secretKey, params)
  13. }
  14. //查询原价
  15. func GetOriginalPrice(appid, secretKey string, params map[string]interface{}) (string, error) {
  16. return Send("QUERY_ORIGINAL_PRICE", appid, secretKey, params)
  17. }
  18. //下单接口
  19. func CreateOrder(appid, secretKey string, params map[string]interface{}) (string, error) {
  20. return Send("ADD_BILL_INTELLECT", appid, secretKey, params)
  21. }
  22. //取消订单接口
  23. func CancelOrder(appid, secretKey string, params map[string]interface{}) (string, error) {
  24. return Send("CANCEL", appid, secretKey, params)
  25. }
  26. //查询运单轨迹接口
  27. func GetTrance(appid, secretKey string, params map[string]interface{}) (string, error) {
  28. return Send("QUERY_TRANCE", appid, secretKey, params)
  29. }
  30. //查询订单详情
  31. func GetOrderDetail(appid, secretKey string, params map[string]interface{}) (string, error) {
  32. return Send("QUERY_BILL_INFO", appid, secretKey, params)
  33. }
  34. //获取得物收件地址
  35. func GetDewuAddress(appid, secretKey string, params map[string]interface{}) (string, error) {
  36. return Send("QUERY_DEWU_ADDRESS", appid, secretKey, params)
  37. }
  38. //德邦筛单接口
  39. func GetDebangCheck(appid, secretKey string, params map[string]interface{}) (string, error) {
  40. return Send("CHECK_EXPRESS", appid, secretKey, params)
  41. }