Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assign ¶
type Assign struct {
GuideID string `json:"guide_id,omitempty"` // 服务人员ID
SubMchID string `json:"sub_mchid,omitempty"` // 子商户ID
OutTradeNo string `json:"out_trade_no,omitempty"` // 商户订单号
}
Assign 服务人员分配参数
type Query ¶
type Query struct {
SubMchID string `json:"sub_mchid,omitempty"` // 子商户ID
StoreID int `json:"store_id,omitempty"` // 门店ID
UserId string `json:"userid,omitempty"` // 企业微信的员工ID
Mobile string `json:"mobile,omitempty"` // 手机号码
WorkID string `json:"work_id,omitempty"` // 工号
Limit int `json:"limit,omitempty"` // 最大资源条数
Offset int `json:"offset,omitempty"` // 请求资源起始位置
}
Query 查询参数
type QueryResult ¶
type QueryResult struct {
Data []UserInfo `json:"data,omitempty"` // 服务人员列表
TotalCount int `json:"total_count,omitempty"` // 服务人员数量
Limit int `json:"limit,omitempty"` // 最大资源条数
Offset int `json:"offset,omitempty"` // 请求资源起始位置
config.Result
}
QueryResult 查询结果
type Register ¶
type Register struct {
SubMchID string `json:"sub_mchid,omitempty"` // 子商户ID
CorpID string `json:"corpid,omitempty"` // 企业ID
StoreID int `json:"store_id,omitempty"` // 门店ID
Name string `json:"name,omitempty"` // 员工姓名
UserId string `json:"userid,omitempty"` // 企业微信的员工ID
Mobile string `json:"mobile,omitempty"` // 手机号码
QRCode string `json:"qr_code,omitempty"` // 二维码
Avatar string `json:"avatar,omitempty"` // 头像
}
Register 注册服务人员参数
type RegisterResult ¶
RegisterResult 注册服务人员返回数据
type SmartGuide ¶
type SmartGuide struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *config.V3) *SmartGuide
func (SmartGuide) Assign ¶
func (m SmartGuide) Assign(assign Assign) (result interface{}, err error)
Assign 服务人员分配
https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/smartguide/chapter3_1.shtml
func (SmartGuide) Query ¶
func (m SmartGuide) Query(query Query) (result QueryResult, err error)
Query 服务人员查询
https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/smartguide/chapter3_3.shtml
func (SmartGuide) Register ¶
func (m SmartGuide) Register(register Register) (result RegisterResult, err error)
Register 服务人员注册
https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/smartguide/chapter3_1.shtml
type UserInfo ¶
type UserInfo struct {
GuideID string `json:"guide_id,omitempty"` // 服务人员ID
StoreID int `json:"store_id,omitempty"` // 门店ID
Name string `json:"name,omitempty"` // 员工姓名
UserId string `json:"userid,omitempty"` // 企业微信的员工ID
Mobile string `json:"mobile,omitempty"` // 手机号码
WorkID string `json:"work_id,omitempty"` // 工号
}
UserInfo 服务人员信息
Click to show internal directories.
Click to hide internal directories.