oa

package
v2.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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 ApplyData

type ApplyData struct {
	Contents []Contents `json:"contents"`
}

type Client

type Client struct {
	*context.Context
}

Client 消息推送接口实例

func NewClient

func NewClient(ctx *context.Context) *Client

NewClient 初始化实例

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 Contents

type Contents struct {
	Control string `json:"control"`
	Id      string `json:"id"`
	Value   struct {
		Text string `json:"text"`
	} `json:"value"`
}

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 发送应用消息响应参数

type T

type T struct {
}

Jump to

Keyboard shortcuts

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