Documentation
¶
Overview ¶
Package oa https://developer.work.weixin.qq.com/document/path/91853
Package oa
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client 消息推送接口实例
func (*Client) Send ¶
func (r *Client) Send(apiName string, request interface{}) (*SendResponse, error)
Send 发送应用消息 @desc 实现企业微信发送应用消息接口:https://developer.work.weixin.qq.com/document/path/90236
type SendRequestCommon ¶
type SendRequestCommon struct {
CreatorUserid string `json:"creator_userid"` //申请人userid,此审批申请将以此员工身份提交,申请人需在应用可见范围内
TemplateId string `json:"template_id"` //模板id。可在“获取审批申请详情”、“审批状态变化回调通知”中获得,也可在审批模板的模板编辑页面链接中获得。暂不支持通过接口提交[打卡补卡][调班]模板审批单。
UseTemplateApprover int `json:"use_template_approver"`
Approver []struct {
Attr int `json:"attr"`
Userid []string `json:"userid"`
} `json:"approver"`
ApplyData ApplyData `json:"apply_data"`
SummaryList []struct {
SummaryInfo []struct {
Text string `json:"text"`
Lang string `json:"lang"`
} `json:"summary_info"`
} `json:"summary_list"`
}
SendRequestCommon 发送应用消息请求公共参数
type SendResponse ¶
type SendResponse struct {
util.CommonError
SpNo string `json:"sp_no"` // 审批单编号
}
SendResponse 发送应用消息响应参数
Click to show internal directories.
Click to hide internal directories.