1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-07 06:02:26 +08:00

格式化代码样式

This commit is contained in:
larry.liu
2019-11-15 15:56:38 +08:00
parent d806d1c968
commit 5617c9512d
5 changed files with 35 additions and 26 deletions

View File

@@ -3,13 +3,15 @@ package device
import (
"encoding/json"
"fmt"
"github.com/silenceper/wechat/util"
)
// ReqBind 设备绑定解绑共通实体
type ReqBind struct {
Ticket string `json:"ticket"`
DeviceId string `json:"device_id"`
OpenId string `json:"open_id"`
DeviceID string `json:"device_id"`
OpenID string `json:"open_id"`
}
type resBind struct {
BaseResp util.CommonError `json:"base_resp"`
@@ -37,7 +39,7 @@ func (d *Device) Bind(req ReqBind) (err error) {
return
}
// Bind 设备解绑
// Unbind 设备解绑
func (d *Device) Unbind(req ReqBind) (err error) {
var accessToken string
if accessToken, err = d.GetAccessToken(); err != nil {