api

package
v0.0.0-...-3faa710 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

README

介绍

对接的外部服务

目录

  • aliopen: 阿里云开放平台
  • alioss: 阿里云对象存储
  • alipay: 支付宝
  • dingtalk: 钉钉开放平台
  • mpcurrency: 货币
  • mpim: 即时通讯
  • mpiot: 物联网
  • mplogistics: 物流
  • mpmap: 地图
  • mpprint: 打印
  • mppush: 消息推送
  • mpsms: 短信
  • qcloud: 腾讯云开放平台
  • qiniu: 七牛云
  • taobao: 淘宝开放平台
  • wx: 微信

Documentation

Overview

Package api api_base User: 姜伟 Time: 2020-02-19 06:43:49

Package api api_util User: 姜伟 Time: 2020-02-19 06:51:27

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIInner

type APIInner struct {
	// contains filtered or unexported fields
}

APIInner 内部实现请求处理的结构体

func NewAPIInner

func NewAPIInner() APIInner

NewAPIInner NewAPIInner

func (*APIInner) SendInner

func (api *APIInner) SendInner(client *fasthttp.Client, req *fasthttp.Request, errorCode uint) (mpf.HTTPResp, APIResult)

SendInner SendInner

type APIOuter

type APIOuter struct {
	// contains filtered or unexported fields
}

APIOuter 外部实现请求处理的结构体

func NewAPIOuter

func NewAPIOuter() APIOuter

NewAPIOuter NewAPIOuter

func (*APIOuter) GetReqTimeout

func (api *APIOuter) GetReqTimeout() time.Duration

GetReqTimeout GetReqTimeout

type APIResult

type APIResult struct {
	Code uint        `json:"code"` // 结果状态码
	Msg  string      `json:"msg"`  // 错误描述
	Data interface{} `json:"data"` // 结果数据
}

APIResult api返回结果

func NewAPIResult

func NewAPIResult() APIResult

NewAPIResult NewAPIResult

type IAPIInner

type IAPIInner interface {
	SendRequest() APIResult // 发送请求
	// contains filtered or unexported methods
}

IAPIInner 内部请求处理接口,针对没有统一接口返回规范的api

type IAPIOuter

type IAPIOuter interface {
	GetReqTimeout() time.Duration
	CheckData() (*fasthttp.Client, *fasthttp.Request) // 数据校验
	// contains filtered or unexported methods
}

IAPIOuter 外部请求处理接口,针对有统一接口返回规范的api

type UtilAPI

type UtilAPI struct {
}

UtilAPI UtilAPI

func NewUtilAPI

func NewUtilAPI() UtilAPI

NewUtilAPI NewUtilAPI

func (*UtilAPI) SendOuter

func (util *UtilAPI) SendOuter(service IAPIOuter, errorCode uint) (mpf.HTTPResp, APIResult)

SendOuter SendOuter

Directories

Path Synopsis
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
auth
* * Created by GoLand.
* * Created by GoLand.
fund/auth
* * Created by GoLand.
* * Created by GoLand.
fund/trans
* * Created by GoLand.
* * Created by GoLand.
life
* * Created by GoLand.
* * Created by GoLand.
life/advert
* * Created by GoLand.
* * Created by GoLand.
life/group
* * Created by GoLand.
* * Created by GoLand.
life/menu
* * Created by GoLand.
* * Created by GoLand.
life/message
* * Created by GoLand.
* * Created by GoLand.
market
* * Created by GoLand.
* * Created by GoLand.
material
* * Created by GoLand.
* * Created by GoLand.
trade
* * Created by GoLand.
* * Created by GoLand.
corp/role
* * Created by GoLand.
* * Created by GoLand.
corp/smarthrm/employee
* * Created by GoLand.
* * Created by GoLand.
corp/sns
* * Created by GoLand.
* * Created by GoLand.
corp/user
* * Created by GoLand.
* * Created by GoLand.
corp/workrecord
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
amjisu
* * Created by GoLand.
* * Created by GoLand.
amyiyuan
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
tencent/message
* * Created by GoLand.
* * Created by GoLand.
tencent/user
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
baidu/action
* * Created by GoLand.
* * Created by GoLand.
baidu/auth
* * Created by GoLand.
* * Created by GoLand.
baidu/client
* * Created by GoLand.
* * Created by GoLand.
baidu/endpoint
* * Created by GoLand.
* * Created by GoLand.
baidu/management/device
* * Created by GoLand.
* * Created by GoLand.
baidu/management/domain
* * Created by GoLand.
* * Created by GoLand.
baidu/management/ota
* * Created by GoLand.
* * Created by GoLand.
baidu/permission
* * Created by GoLand.
* * Created by GoLand.
baidu/policy
* * Created by GoLand.
* * Created by GoLand.
baidu/principal
* * Created by GoLand.
* * Created by GoLand.
baidu/rules
* * Created by GoLand.
* * Created by GoLand.
baidu/thing
* * Created by GoLand.
* * Created by GoLand.
baidu/usage
* * Created by GoLand.
* * Created by GoLand.
tencent/device
* * Created by GoLand.
* * Created by GoLand.
tencent/model
* * Created by GoLand.
* * Created by GoLand.
tencent/project
* * Created by GoLand.
* * Created by GoLand.
tencent/studio
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
amali
* * Created by GoLand.
* * Created by GoLand.
kd100
* * Created by GoLand.
* * Created by GoLand.
kdbird
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
baidu
* * Created by GoLand.
* * Created by GoLand.
gaode
* * 输入提示 * User: 姜伟 * Date: 2019/12/26 0026 * Time: 18:35 * * Created by GoLand.
* * 输入提示 * User: 姜伟 * Date: 2019/12/26 0026 * Time: 18:35 * * Created by GoLand.
tencent
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
feyin/device
* * Created by GoLand.
* * Created by GoLand.
feyin/member
* * Created by GoLand.
* * Created by GoLand.
feyin/msg
* * Created by GoLand.
* * Created by GoLand.
feyin/template
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
baidu/push
* * Created by GoLand.
* * Created by GoLand.
baidu/report
* * Created by GoLand.
* * Created by GoLand.
baidu/tag
* * Created by GoLand.
* * Created by GoLand.
baidu/timer
* * Created by GoLand.
* * Created by GoLand.
baidu/topic
* * Created by GoLand.
* * Created by GoLand.
jpush/admin
* * Created by GoLand.
* * Created by GoLand.
jpush/device
* * Created by GoLand.
* * Created by GoLand.
jpush/push
* * Created by GoLand.
* * Created by GoLand.
jpush/report
* * Created by GoLand.
* * Created by GoLand.
jpush/schedules
* * Created by GoLand.
* * Created by GoLand.
xinge/device
* * Created by GoLand.
* * Created by GoLand.
xinge/push
* * Created by GoLand.
* * Created by GoLand.
* * 短信基础结构体 * User: 姜伟 * Date: 2019/12/22 0022 * Time: 11:18 * * 短信配置 * User: 姜伟 * Date: 2019/12/24 0024 * Time: 12:38 * * 短信基础工具 * User: 姜伟 * Date: 2019/12/23 0023 * Time: 10:25 * * Created by GoLand.
* * 短信基础结构体 * User: 姜伟 * Date: 2019/12/22 0022 * Time: 11:18 * * 短信配置 * User: 姜伟 * Date: 2019/12/24 0024 * Time: 12:38 * * 短信基础工具 * User: 姜伟 * Date: 2019/12/23 0023 * Time: 10:25 * * Created by GoLand.
yun253
* * 253云接口-短信发送 * User: 姜伟 * Date: 2019/12/23 0023 * Time: 10:32
* * 253云接口-短信发送 * User: 姜伟 * Date: 2019/12/23 0023 * Time: 10:32
* * Created by GoLand.
* * Created by GoLand.
cos/bucket
* * Created by GoLand.
* * Created by GoLand.
cos/jobs
* * Created by GoLand.
* * Created by GoLand.
cos/obj
* * Created by GoLand.
* * Created by GoLand.
cos/service
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
* * Created by GoLand.
logistics
* * Created by GoLand.
* * Created by GoLand.
logistics/address
* * Created by GoLand.
* * Created by GoLand.
logistics/company
* * Created by GoLand.
* * Created by GoLand.
logistics/trace
* * Created by GoLand.
* * Created by GoLand.
sms
* * Created by GoLand.
* * Created by GoLand.
sms/dayu
* * 大鱼接口-短信查询 * User: 姜伟 * Date: 2019/12/23 0023 * Time: 10:31 * * 大鱼接口-短信发送 * User: 姜伟 * Date: 2019/12/24 0024 * Time: 23:19
* * 大鱼接口-短信查询 * User: 姜伟 * Date: 2019/12/23 0023 * Time: 10:31 * * 大鱼接口-短信发送 * User: 姜伟 * Date: 2019/12/24 0024 * Time: 23:19
wx
* * Created by GoLand.
* * Created by GoLand.
account
* * Created by GoLand.
* * Created by GoLand.
account/authorize
* * Created by GoLand.
* * Created by GoLand.
account/customservice
* * Created by GoLand.
* * Created by GoLand.
account/datacube
* * Created by GoLand.
* * Created by GoLand.
account/material
* * Created by GoLand.
* * Created by GoLand.
account/menu
* * Created by GoLand.
* * Created by GoLand.
account/merchant/category
* * Created by GoLand.
* * Created by GoLand.
account/merchant/express
* * Created by GoLand.
* * Created by GoLand.
account/merchant/group
* * Created by GoLand.
* * Created by GoLand.
account/merchant/media
* * Created by GoLand.
* * Created by GoLand.
account/merchant/order
* * Created by GoLand.
* * Created by GoLand.
account/merchant/product
* * Created by GoLand.
* * Created by GoLand.
account/merchant/shelf
* * Created by GoLand.
* * Created by GoLand.
account/merchant/stock
* * Created by GoLand.
* * Created by GoLand.
account/message
* * Created by GoLand.
* * Created by GoLand.
account/tool
* * Created by GoLand.
* * Created by GoLand.
account/user
* * Created by GoLand.
* * Created by GoLand.
corp
* * Created by GoLand.
* * Created by GoLand.
corp/agent
* * Created by GoLand.
* * Created by GoLand.
corp/authorize
* * Created by GoLand.
* * Created by GoLand.
corp/batch
* * Created by GoLand.
* * Created by GoLand.
corp/crm
* * Created by GoLand.
* * Created by GoLand.
corp/department
* * Created by GoLand.
* * Created by GoLand.
corp/invoice
* * Created by GoLand.
* * Created by GoLand.
corp/media
* * Created by GoLand.
* * Created by GoLand.
corp/message
* * Created by GoLand.
* * Created by GoLand.
corp/oa
* * Created by GoLand.
* * Created by GoLand.
corp/pay
* * Created by GoLand.
* * Created by GoLand.
corp/tag
* * Created by GoLand.
* * Created by GoLand.
corp/user
* * Created by GoLand.
* * Created by GoLand.
mini
* * Created by GoLand.
* * Created by GoLand.
mini/authorize
* * Created by GoLand.
* * Created by GoLand.
mini/message
* * Created by GoLand.
* * Created by GoLand.
mini/tool
* * Created by GoLand.
* * Created by GoLand.
open/account/register
* * Created by GoLand.
* * Created by GoLand.
open/common/authorize
* * Created by GoLand.
* * Created by GoLand.
open/common/tool
* * Created by GoLand.
* * Created by GoLand.
open/mini/account
* * Created by GoLand.
* * Created by GoLand.
open/mini/category
* * Created by GoLand.
* * Created by GoLand.
open/mini/cloud
* * Created by GoLand.
* * Created by GoLand.
open/mini/codemanager
* * Created by GoLand.
* * Created by GoLand.
open/mini/codetemplate
* * Created by GoLand.
* * Created by GoLand.
open/mini/setting
* * Created by GoLand.
* * Created by GoLand.
provider/agent
* * Created by GoLand.
* * Created by GoLand.
provider/authorize
* * Created by GoLand.
* * Created by GoLand.
provider/constact
* * Created by GoLand.
* * Created by GoLand.
provider/service
* * Created by GoLand.
* * Created by GoLand.
single
* * Created by GoLand.
* * Created by GoLand.
single/media
* * Created by GoLand.
* * Created by GoLand.
single/pay
* * Created by GoLand.
* * Created by GoLand.
single/pay/company
* * Created by GoLand.
* * Created by GoLand.
single/pay/profitsharing
* * Created by GoLand.
* * Created by GoLand.
single/pay/redpack
* * Created by GoLand.
* * Created by GoLand.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL