Documentation ¶
Overview ¶
公众号第三方平台服务列表 1. 使用授权码换取公众号的接口调用凭据和授权信息 2. 引入用户进入授权页 3. 授权事件接收URL 4.
公众号下的用户服务列表 1. 前端获取微信公众号需要的有效用户授权url 2. 微信用户是否已经绑定(备注:前端获取有效url后,访问微信公众号。若有效,则微信公众号会回调, 前端解析url,会拿到appid和拿AccessToken所需要的code)
公众号服务列表 1. 获取已托管的公众号列表 2. 获取公众号基本信息
微信支付参数服务列表 1. 新增公众号支付开发参数 2. 获取公众号支付开发参数 3. 上传证书 证书包括apiclient_key.pem和apiclient_cert.pem
Index ¶
- Constants
- func GlobalPublishTestGetContent(reqMap map[string]string) (content string)
- type AccountMessageSendRecordsController
- type AccountMessageTemplatesController
- type Authorized
- type IndustryCodeQuerysController
- type MessageController
- type MessageTemplateInfo
- type MessageTemplatesController
- type OfficialAccountIndustryCodesController
- type OfficialAccountUsersController
- type OfficialAccountsController
- type OfficialAccountsPayParamsController
- type PayParamInfo
- type UserWxInfosController
- type WechatMessageReceiptRecordsController
- type WechatMessageReq
- type WechatPayController
- type XmlResp
Constants ¶
const ( //error code: BILL_MONEY_ERROR = 7806 BILL_STATUS_ERROR = 7807 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountMessageSendRecordsController ¶
type AccountMessageSendRecordsController struct {
beego.Controller
}
AccountMessageSendRecordsController oprations for AccountMessageSendRecords
func (*AccountMessageSendRecordsController) SendAccountMessage ¶
func (t *AccountMessageSendRecordsController) SendAccountMessage()
发送微信模板消息 @router /:id/message [POST]
type AccountMessageTemplatesController ¶
type AccountMessageTemplatesController struct {
beego.Controller
}
AccountMessageTemplatesController oprations for AccountMessageTemplates
func (*AccountMessageTemplatesController) AddAccountMessageTemplate ¶
func (t *AccountMessageTemplatesController) AddAccountMessageTemplate()
给公众号添加消息模板 @router /:id/message_template [POST]
func (*AccountMessageTemplatesController) GetAccountMessageTemplates ¶
func (t *AccountMessageTemplatesController) GetAccountMessageTemplates()
获取公众号的消息模板列表 @router /:id/message_templates [GET]
func (*AccountMessageTemplatesController) LogicDeleteAccountMessageTemplate ¶
func (t *AccountMessageTemplatesController) LogicDeleteAccountMessageTemplate()
删除公众号指定的消息模板 @router /accounts/:id/message_templates/:message_id/invalid [PUT]
type Authorized ¶
type Authorized struct {
beego.Controller
}
func (*Authorized) ComponentVerifyTicket ¶
func (t *Authorized) ComponentVerifyTicket()
授权事件接收URL DESC: 出于安全考虑,在第三方平台创建审核通过后,微信服务器每隔10分钟会向第三方的消息接收地址
推送一次component_verify_ticket,用于获取第三方平台接口调用凭据
example request: <xml> <AppId> </AppId> <CreateTime>1413192605 </CreateTime> <InfoType> </InfoType> <ComponentVerifyTicket> </ComponentVerifyTicket> </xml> @router / [POST]
func (*Authorized) GetAuthorizedCode ¶
func (t *Authorized) GetAuthorizedCode()
使用授权码换取公众号的接口调用凭据和授权信息 @router /authorization/code [GET]
func (*Authorized) GetComponentLoginPage ¶
func (t *Authorized) GetComponentLoginPage()
引入用户进入授权页 @router /authorization/loginpage [GET]
type IndustryCodeQuerysController ¶
type IndustryCodeQuerysController struct {
beego.Controller
}
IndustryCodeQuerysController oprations for IndustryCodeQuerys
func (*IndustryCodeQuerysController) GetAllMainIndutry ¶
func (t *IndustryCodeQuerysController) GetAllMainIndutry()
获取主行业列表 @router /main_industrys [GET]
func (*IndustryCodeQuerysController) GetSecIndutryListNoLocks ¶
func (t *IndustryCodeQuerysController) GetSecIndutryListNoLocks()
获取副行业列表 @router /:id/deputy_industrys [GET]
type MessageController ¶
type MessageController struct {
beego.Controller
}
func (*MessageController) WechatCallback ¶
func (t *MessageController) WechatCallback()
公众号消息与事件接收URL @router /:appid/callback [POST]
type MessageTemplateInfo ¶
type MessageTemplatesController ¶
type MessageTemplatesController struct {
beego.Controller
}
MessageTemplatesController oprations for MessageTemplates
func (*MessageTemplatesController) GetMessageTemplates ¶
func (t *MessageTemplatesController) GetMessageTemplates()
获取系统中已添加的微信消息模板列表 @router /system/message_templates [GET]
func (*MessageTemplatesController) LogicDeleteSystemMessageTemplate ¶
func (t *MessageTemplatesController) LogicDeleteSystemMessageTemplate()
从系统中删除指定的消息模板 @router /system/message_templates/:id/invalid [PUT]
type OfficialAccountIndustryCodesController ¶
type OfficialAccountIndustryCodesController struct {
beego.Controller
}
OfficialAccountIndustryCodesController oprations for OfficialAccountIndustryCodes
func (*OfficialAccountIndustryCodesController) GetOfficialAccountIndustry ¶
func (t *OfficialAccountIndustryCodesController) GetOfficialAccountIndustry()
获取设置的行业信息 @router /:id/industry_codes [GET]
func (*OfficialAccountIndustryCodesController) UpdateOfficialAccountIndustryCode ¶
func (t *OfficialAccountIndustryCodesController) UpdateOfficialAccountIndustryCode()
更新公众号所属行业 @router /:id/industry_codes [PUT]
type OfficialAccountUsersController ¶
type OfficialAccountUsersController struct {
beego.Controller
}
OfficialAccountUsersController oprations for OfficialAccountUsers
func (*OfficialAccountUsersController) GetUserAccessToken ¶
func (t *OfficialAccountUsersController) GetUserAccessToken()
通过code换取access_token @router /user/authorization/callback [GET]
func (*OfficialAccountUsersController) GetWeChatCallback ¶
func (t *OfficialAccountUsersController) GetWeChatCallback()
自测使用,获取微信回调的appid和code @router /callback [GET]
func (*OfficialAccountUsersController) GetWechatUserBinding ¶
func (t *OfficialAccountUsersController) GetWechatUserBinding()
2. 微信用户是否已经绑定(备注:前端获取有效url后,访问微信公众号。若有效,则微信公众号会回调, 前端解析url,会拿到appid和拿AccessToken所需要的code) @router /users/binding [GET]
func (*OfficialAccountUsersController) OfficialAccountAuthorizationUser ¶
func (t *OfficialAccountUsersController) OfficialAccountAuthorizationUser()
1. 前端获取微信公众号需要的有效用户授权url @router /:id/user/authorization [GET]
type OfficialAccountsController ¶
type OfficialAccountsController struct {
beego.Controller
}
OfficialAccountsController oprations for OfficialAccounts
func (*OfficialAccountsController) GetOfficialAccounts ¶
func (t *OfficialAccountsController) GetOfficialAccounts()
1. 获取已托管的公众号列表 @router /official_accounts [GET]
type OfficialAccountsPayParamsController ¶
type OfficialAccountsPayParamsController struct {
beego.Controller
}
OfficialAccountsPayParamsController oprations for OfficialAccountsPayParams
func (*OfficialAccountsPayParamsController) GetOfficialAccountPayParamByOfficialAccountId ¶
func (t *OfficialAccountsPayParamsController) GetOfficialAccountPayParamByOfficialAccountId()
2. 获取公众号支付开发参数 @router /:id/payparams [GET]
func (*OfficialAccountsPayParamsController) ModifyWechatParams ¶
func (t *OfficialAccountsPayParamsController) ModifyWechatParams()
1. 新增公众号支付开发参数 @router /:id/payparams [POST]
func (*OfficialAccountsPayParamsController) UploadCertification ¶
func (t *OfficialAccountsPayParamsController) UploadCertification()
上传证书 证书包括apiclient_key.pem和apiclient_cert.pem @params :id 表示内部公众号ID @router /:id/certification [POST]
type PayParamInfo ¶
type UserWxInfosController ¶
type UserWxInfosController struct {
beego.Controller
}
UserWxInfosController oprations for UserWxInfos
type WechatMessageReceiptRecordsController ¶
type WechatMessageReceiptRecordsController struct {
beego.Controller
}
WechatMessageReceiptRecordsController oprations for WechatMessageReceiptRecords
type WechatMessageReq ¶
type WechatPayController ¶
type WechatPayController struct {
beego.Controller
}
func (*WechatPayController) GetPayJsapiParams ¶
func (w *WechatPayController) GetPayJsapiParams()
@params :id 内部公众号ID @params :bill_id 订单ID @params :openid 用户在公众号下的openid @router /:id/pay/jsapi_params/:bill_id/open_id/:open_id [get]
func (*WechatPayController) GetPayNativeParams ¶
func (w *WechatPayController) GetPayNativeParams()
@params :id 内部公众号ID @params :bill_id 订单ID 说明: 二维码支付不需要openid @router /:id/pay/native_params/:bill_id [get]
func (*WechatPayController) NotifyUrl ¶
func (w *WechatPayController) NotifyUrl()
@router /notification [post]
Source Files ¶
- account_message_send_records.go
- account_message_templates.go
- authorized.go
- industry_code_querys.go
- messages.go
- official_account_industry_codes.go
- official_account_users.go
- official_accounts.go
- official_accounts_pay_params.go
- pay.go
- system_message_templates.go
- user_wx_infos.go
- wechat_message_receipt_records.go