apis

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Provider      = "provider"       // 第三方服务商
	ThirdApp      = "third_app"      // 第三方应用
	CustomizedApp = "customized_app" // 自建应用代开发
)

标识

View Source
const (
	MediaTypeImage = "image"
	MediaTypeVoice = "voice"
	MediaTypeVideo = "video"
	MediaTypeFile  = "file"
)
View Source
const DefaultQYAPIHost = "https://qyapi.weixin.qq.com"

DefaultQYAPIHost 默认企业微信 API Host

View Source
const ErrCode701002 = 701002

不合法的license帐号

View Source
const ErrCode701003 = 701003

激活码已绑定

View Source
const ErrCode701004 = 701004

激活码未绑定

View Source
const ErrCode701005 = 701005

无效的license订单

View Source
const ErrCode701006 = 701006

不合法的license帐号类型

View Source
const ErrCode701007 = 701007

不合法的帐号类型

View Source
const ErrCode701008 = 701008

没有合法的有互通license的用户

View Source
const ErrCode701009 = 701009

灰度期间,month只能为1个月

View Source
const ErrCode701010 = 701010

所有的account_code都非法

View Source
const ErrCode701011 = 701011

userid已经绑定

View Source
const ErrCode701012 = 701012

active_code 超过绑定有效期

View Source
const ErrCode701013 = 701013

灰度期间只允许续期一次

View Source
const ErrCode701014 = 701014

jobid最多关联100w个userid

View Source
const ErrCode701015 = 701015

没有第三方或者代开发授权,不允许下单

View Source
const ErrCode701016 = 701016

帐号未激活或者已经过期

View Source
const ErrCode701017 = 701017

帐号30天内迁移过

View Source
const ErrCode701018 = 701018

迁移帐号重叠,接收帐号已有相同类型的帐号

View Source
const ErrCode701019 = 701019

用户userid非法或者跨企业

View Source
const ErrCode701020 = 701020

有重复的userid

View Source
const ErrCode701021 = 701021

非法的激活码

View Source
const ErrCode701022 = 701022

激活码还在生成中,稍后再试

View Source
const ErrCode701023 = 701023

有重复的激活码

View Source
const ErrCode701024 = 701024

批量操作全部失败了

View Source
const ErrCode701025 = 701025

批量操作传了空列表

View Source
const ErrCode701026 = 701026

列表数量超过最大值

View Source
const ErrCode701027 = 701027

测试企业购买帐号个数超限。

View Source
const ErrCode701028 = 701028

测试企业购买月份超限,最多只能购买一个月

View Source
const ErrCode701029 = 701029

测试企业只允许续期一次

View Source
const ErrCode701030 = 701030

新激活码有效期累加用户绑定的旧激活码有效期超过5年

View Source
const ErrCode701031 = 701031

有订单在迁移中,请迁移完成后再下单

View Source
const ErrCode701032 = 701032

有订单未支付,请完成后再下单

View Source
const ErrCode701033 = 701033

有订单正在生成激活码中,请稍后重试

View Source
const ErrCode701034 = 701034

历史企业,需迁移完成后才能购买license订单,可以去服务商管理端购买license订单页面点击主动迁移

View Source
const ErrCode701035 = 701035

有正式订单,所以无法添加测试订单

View Source
const ErrCode701036 = 701036

有生效中的测试订单,所以无法添加订单

View Source
const ErrCode701037 = 701037

存在订单申请退款中

View Source
const ErrCode701038 = 701038

民生企业,只允许下单12个月

View Source
const ErrCode701039 = 701039

民生企业,只允许下单12个月

View Source
const ErrCode701040 = 701040

民生企业,不允许购买数量超过某个限制

View Source
const ErrCode701081 = 701081

更新激活码的时候写冲突,请获取激活码最新详情再根据激活码最新情况处理

View Source
const ErrCode701082 = 701082

该用户已经激活的情况下,使用新码重新激活的场景,旧码剩余的时长不能超过20天

View Source
const ErrCode701083 = 701083

订单未支付

View Source
const ErrCode701084 = 701084

订单不是未支付

View Source
const ErrCode701085 = 701085

订单无法操作,请稍后再试

View Source
const ErrCode701086 = 701086

订单不属于该企业

View Source
const ErrCode701087 = 701087

授权企业没有安装任何互通权限应用(「客户联系」或「微信客服」权限)

View Source
const ErrCode701088 = 701088

用户不在服务商应用的可见范围内

View Source
const ErrCode701089 = 701089

用户不在服务商互通权限(「客户联系」或「微信客服」权限)应用的可见范围内

View Source
const ErrCode701090 = 701090

续期订单中全部账号的续期天数都等于0

View Source
const ErrCode701099 = 701099

用户没有有效的接口许可

View Source
const ErrCode701120 = 701120

该接口不支持传父订单id

View Source
const ErrCode701121 = 701121

测试企业不允许调用多企业下单接口

View Source
const ErrCode701122 = 701122

多企业下单接口全部企业无效

View Source
const ErrCode701123 = 701123

多企业下单接口每个jobid最多关联10万个企业

View Source
const ErrCode701124 = 701124

corpid重复

View Source
const ErrCode701125 = 701125

jobid未提交

View Source
const ErrCode701126 = 701126

jobid已提交

View Source
const ErrCode701127 = 701127

客户非测试企业,不能添加测试订单

View Source
const ErrCode701128 = 701128

客户是测试企业,不能添加非测试订单

View Source
const ErrCode701129 = 701129

企业下无服务商的应用订单

View Source
const ErrCode701130 = 701130

企业下服务商应用订单均已过期

View Source
const ErrCode701131 = 701131

无应用订单,处于免费试用状态,但购买账号码数超过免费试用的人数上限

View Source
const ErrCode701132 = 701132

购买时长不大于3个月,购买账号数不允许超过通讯录人数的2倍

View Source
const ErrCode701133 = 701133

无应用订单,处于免费试用状态,购买时长不允许超过3个月(93天)

View Source
const ErrCode710000 = 710000

非法的open_corpid

View Source
const ErrCode830001 = 830001

url非法

View Source
const ErrCode830003 = 830003

url下载数据失败

View Source
const ErrCode842002 = 842002

代开发应用模版未上线

View Source
const ErrCode842003 = 842003

不是代开发应用模版

View Source
const ErrCode842004 = 842004

代开发应用模版数量不合法

View Source
const ErrCode842005 = 842005

不支持的应用类型

View Source
const HttpTTL = 1 * time.Minute
View Source
const PathGetCorpToken = "/cgi-bin/service/get_corp_token"

Variables

View Source
var (
	ErrCodeMap = map[ErrCode]string{
		ErrCodeServiceUnavailable: errPrefix + "系统繁忙",
		ErrCode40011:              "发送素材过大,请使用链接或其他方式发送",
		ErrCode40029:              "登录过期,请点击按钮重新登录",
		ErrCode40082:              errPrefix + "invalid suite_token",
		ErrCode41022:              errPrefix + "suite_access_token missing",
		ErrCode42001:              errPrefix + "access_token已过期",
		ErrCode42009:              errPrefix + "suite_access_token已过期",
		ErrCode45033:              errPrefix + "接口并发调用超过限制",
		ErrCode60011:              errPrefix + "无权限访问",
		ErrCode92002:              "不允许跨企业调用",
		ErrCode701001:             "不是license基础帐号",
		ErrCode701002:             "不合法的激活码",
		ErrCode701003:             "该激活码已被绑定过",
		ErrCode701004:             "激活码未绑定",
		ErrCode701016:             "帐号未激活或者已经过期",
		ErrCode701017:             "该激活码在30天内已经被继承过",
		ErrCode701018:             "迁移帐号重叠,接收帐号已有相同类型的帐号",
		ErrCode701021:             "非法的激活码",
		ErrCode701030:             "激活失败,激活码累加后的有效期不可超过5年",
		ErrCode701032:             "有订单未支付,请完成后再下单",
		ErrCode701033:             "有订单正在生成激活码中,请稍后重试",
		ErrCode701034:             "历史企业需迁移完成后才能购买激活码",
		ErrCode701037:             "存在退款订单,无法购买新激活码",
		ErrCode701082:             "该成员已激活,请在剩余时长不超过20天时再激活",
	}
)

重定义error,转为友好的错误提示

View Source
var FastClient = CreateFastHttpClient()
View Source
var InvalidTokenErrCode = map[int64]struct{}{
	ErrCode40014: {},
	ErrCode40082: {},
	ErrCode42001: {},
	ErrCode42009: {},
}

不合法或过期的 access_token 错误码

Functions

func CreateFastHttpClient

func CreateFastHttpClient() fasthttp.Client

func Retry

func Retry(o backoff.Operation) error

func StrVal added in v1.2.0

func StrVal(value interface{}) string

StrVal 获取变量的字符串值 浮点型 3.0将会转换成字符串3, "3",长整数不会变成科学计数法 非数值或字符类型的变量将会被转换成JSON格式字符串

Types

type AddContactWayConclusions

type AddContactWayConclusions struct {
	Image       AddContactWayConclusionsImage       `json:"image"`
	Link        AddContactWayConclusionsLink        `json:"link"`
	Miniprogram AddContactWayConclusionsMiniprogram `json:"miniprogram"`
	Text        AddContactWayConclusionsText        `json:"text"`
}

ReqAddContactWayExternalcontact 配置客户联系「联系我」方式请求 文档:https://developer.work.weixin.qq.com/document/path/92577#配置客户联系「联系我」方式

type AddContactWayConclusionsImage

type AddContactWayConclusionsImage struct {
	MediaID string `json:"media_id"`
}

ReqAddContactWayExternalcontact 配置客户联系「联系我」方式请求 文档:https://developer.work.weixin.qq.com/document/path/92577#配置客户联系「联系我」方式

type AddContactWayConclusionsLink struct {
	Desc   string `json:"desc"`
	Picurl string `json:"picurl"`
	Title  string `json:"title"`
	URL    string `json:"url"`
}

ReqAddContactWayExternalcontact 配置客户联系「联系我」方式请求 文档:https://developer.work.weixin.qq.com/document/path/92577#配置客户联系「联系我」方式

type AddContactWayConclusionsMiniprogram

type AddContactWayConclusionsMiniprogram struct {
	Appid      string `json:"appid"`
	Page       string `json:"page"`
	PicMediaID string `json:"pic_media_id"`
	Title      string `json:"title"`
}

ReqAddContactWayExternalcontact 配置客户联系「联系我」方式请求 文档:https://developer.work.weixin.qq.com/document/path/92577#配置客户联系「联系我」方式

type AddContactWayConclusionsText

type AddContactWayConclusionsText struct {
	Content string `json:"content"`
}

ReqAddContactWayExternalcontact 配置客户联系「联系我」方式请求 文档:https://developer.work.weixin.qq.com/document/path/92577#配置客户联系「联系我」方式

type AddMsgTemplateAttachments

type AddMsgTemplateAttachments struct {
	File        AddMsgTemplateAttachmentsFile        `json:"file"`
	Image       AddMsgTemplateAttachmentsImage       `json:"image"`
	Link        AddMsgTemplateAttachmentsLink        `json:"link"`
	Miniprogram AddMsgTemplateAttachmentsMiniprogram `json:"miniprogram"`
	// Msgtype 附件类型,可选image、link、miniprogram或者video,必填
	Msgtype string                         `json:"msgtype"`
	Video   AddMsgTemplateAttachmentsVideo `json:"video"`
}

ReqAddMsgTemplateExternalcontact 创建企业群发请求 文档:https://developer.work.weixin.qq.com/document/path/92698#创建企业群发

type AddMsgTemplateAttachmentsFile

type AddMsgTemplateAttachmentsFile struct {
	MediaID string `json:"media_id"`
}

ReqAddMsgTemplateExternalcontact 创建企业群发请求 文档:https://developer.work.weixin.qq.com/document/path/92698#创建企业群发

type AddMsgTemplateAttachmentsImage

type AddMsgTemplateAttachmentsImage struct {
	MediaID string `json:"media_id"`
	// PicURL 图片的链接,<strong>仅可使用<a href="#13219">上传图片</a>接口得到的链接</strong>
	PicURL string `json:"pic_url"`
}

ReqAddMsgTemplateExternalcontact 创建企业群发请求 文档:https://developer.work.weixin.qq.com/document/path/92698#创建企业群发

type AddMsgTemplateAttachmentsLink struct {
	// Desc 图文消息的描述,最多512个<strong>字节</strong>
	Desc string `json:"desc"`
	// Picurl 图文消息封面的url,最长2048个字节
	Picurl string `json:"picurl"`
	// Title 图文消息标题,最长128个字节,必填
	// Title 小程序消息标题,最多64个<strong>字节</strong>,必填
	Title string `json:"title"`
	// URL 图文消息的链接,最长2048个字节,必填
	URL string `json:"url"`
}

ReqAddMsgTemplateExternalcontact 创建企业群发请求 文档:https://developer.work.weixin.qq.com/document/path/92698#创建企业群发

type AddMsgTemplateAttachmentsMiniprogram

type AddMsgTemplateAttachmentsMiniprogram struct {
	// Appid 小程序appid(可以在微信公众平台上查询),必须是<strong>关联到企业的小程序应用</strong>,必填
	Appid string `json:"appid"`
	// Page 小程序page路径,必填
	Page string `json:"page"`
	// PicMediaID 小程序消息封面的mediaid,封面图建议尺寸为520*416,必填
	PicMediaID string `json:"pic_media_id"`
	// Title 图文消息标题,最长128个字节,必填
	// Title 小程序消息标题,最多64个<strong>字节</strong>,必填
	Title string `json:"title"`
}

ReqAddMsgTemplateExternalcontact 创建企业群发请求 文档:https://developer.work.weixin.qq.com/document/path/92698#创建企业群发

type AddMsgTemplateAttachmentsVideo

type AddMsgTemplateAttachmentsVideo struct {
	MediaID string `json:"media_id"`
}

ReqAddMsgTemplateExternalcontact 创建企业群发请求 文档:https://developer.work.weixin.qq.com/document/path/92698#创建企业群发

type AddMsgTemplateText

type AddMsgTemplateText struct {
	// Content 消息文本内容,最多4000个<strong>字节</strong>
	Content string `json:"content"`
}

ReqAddMsgTemplateExternalcontact 创建企业群发请求 文档:https://developer.work.weixin.qq.com/document/path/92698#创建企业群发

type ApiClient

type ApiClient struct {
	CorpId             string // 企业ID
	CorpProviderSecret string // 企业密钥

	// 第三方应用/代开发必填字段
	AppSuiteId     string // 应用唯一身份标识
	AppSuiteSecret string // 应用密钥
	AppSuiteTicket string // 企业微信服务器会定时(每十分钟)推送ticket。ticket会实时变更,并用于后续接口的调用。

	// 授权企业必填字段
	CompanyPermanentCode string // 企业授权给应用的永久授权码
	AgentId              int    // 授权方应用id

	ThirdAppClient *ApiClient // 第三方应用client,用于授权企业API客户端获取suite_access_token,目前用于第三方应用获取企业凭证接口
	// contains filtered or unexported fields
}

ApiClient 企业微信客户端

func NewAuthCorpApiClient

func NewAuthCorpApiClient(corpId, companyPermanentCode string, AgentId int, thirdAppClient *ApiClient, opts Options) *ApiClient

第三方应用授权企业API客户端初始化

func NewCustomizedApiClient

func NewCustomizedApiClient(corpId, appSuiteId, appSuiteSecret, appSuiteTicket string, opts Options) *ApiClient

自建应用代开发API客户端初始化,第一次调用这个接口时,appSuiteTicket为空字符串

func NewCustomizedAuthCorpApiClient

func NewCustomizedAuthCorpApiClient(corpId, companyPermanentCode string, AgentId int, customizedAppClient *ApiClient, opts Options) *ApiClient

自建应用代开发授权企业API客户端初始化

func NewProviderApiClient

func NewProviderApiClient(corpId, corpProviderSecret string, opts Options) *ApiClient

第三方服务商API客户端初始化

func NewThirdAppApiClient

func NewThirdAppApiClient(corpId, appSuiteId, appSuiteSecret, appSuiteTicket string, opts Options) *ApiClient

第三方应用API客户端初始化,第一次调用这个接口时,appSuiteTicket为空字符串

func (*ApiClient) ExecActiveAccountLicense

func (c *ApiClient) ExecActiveAccountLicense(req ReqActiveAccountLicense) (RespActiveAccountLicense, error)

ExecActiveAccountLicense 激活帐号 文档:https://developer.work.weixin.qq.com/document/path/95553#激活帐号

func (*ApiClient) ExecAddContactWayExternalcontact

func (c *ApiClient) ExecAddContactWayExternalcontact(req ReqAddContactWayExternalcontact) (RespAddContactWayExternalcontact, error)

ExecAddContactWayExternalcontact 配置客户联系「联系我」方式 文档:https://developer.work.weixin.qq.com/document/path/92577#配置客户联系「联系我」方式

func (*ApiClient) ExecAddCorpTagExternalcontact

func (c *ApiClient) ExecAddCorpTagExternalcontact(req ReqAddCorpTagExternalcontact) (RespAddCorpTagExternalcontact, error)

ExecAddCorpTagExternalcontact 添加企业客户标签 文档:https://developer.work.weixin.qq.com/document/path/92696#添加企业客户标签

func (*ApiClient) ExecAddGroupWelcomeTemplate added in v1.2.0

func (c *ApiClient) ExecAddGroupWelcomeTemplate(req ReqAddGroupWelcomeTemplate) (RespAddGroupWelcomeTemplate, error)

ExecAddGroupWelcomeTemplate 添加入群欢迎语素材 文档:https://developer.work.weixin.qq.com/document/path/93438#添加入群欢迎语素材

func (*ApiClient) ExecAddMomentTaskExternalcontact added in v1.2.9

func (c *ApiClient) ExecAddMomentTaskExternalcontact(req ReqAddMomentTaskExternalcontact) (RespAddMomentTaskExternalcontact, error)

ExecAddMomentTaskExternalcontact 创建发表任务 文档:https://developer.work.weixin.qq.com/document/path/95094#创建发表任务

func (*ApiClient) ExecAddMsgTemplateExternalcontact

func (c *ApiClient) ExecAddMsgTemplateExternalcontact(req ReqAddMsgTemplateExternalcontact) (RespAddMsgTemplateExternalcontact, error)

ExecAddMsgTemplateExternalcontact 创建企业群发 文档:https://developer.work.weixin.qq.com/document/path/92698#创建企业群发

func (*ApiClient) ExecAddtagusersTag added in v1.2.0

func (c *ApiClient) ExecAddtagusersTag(req ReqAddtagusersTag) (RespAddtagusersTag, error)

ExecAddtagusersTag 增加标签成员 文档:https://developer.work.weixin.qq.com/document/path/90350#增加标签成员

func (*ApiClient) ExecApplyEvent added in v1.1.3

func (c *ApiClient) ExecApplyEvent(req ReqApplyEvent) (RespApplyEvent, error)

ExecApplyEvent 提交审批申请 文档:https://developer.work.weixin.qq.com/document/path/92632#提交审批申请

func (*ApiClient) ExecAuthsuccUser added in v1.2.0

func (c *ApiClient) ExecAuthsuccUser(req ReqAuthsuccUser) (RespAuthsuccUser, error)

ExecAuthsuccUser 成二次验证 文档:https://developer.work.weixin.qq.com/document/path/90339#成二次验证

func (*ApiClient) ExecBatchActiveAccountLicense

func (c *ApiClient) ExecBatchActiveAccountLicense(req ReqBatchActiveAccountLicense) (RespBatchActiveAccountLicense, error)

ExecBatchActiveAccountLicense 批量激活帐号 文档:https://developer.work.weixin.qq.com/document/path/95553#批量激活帐号

func (*ApiClient) ExecBatchGetActiveInfoByCodeLicense

func (c *ApiClient) ExecBatchGetActiveInfoByCodeLicense(req ReqBatchGetActiveInfoByCodeLicense) (RespBatchGetActiveInfoByCodeLicense, error)

ExecBatchGetActiveInfoByCodeLicense 批量获取激活码详情 文档:https://developer.work.weixin.qq.com/document/path/95552#批量获取激活码详情

func (*ApiClient) ExecBatchShareActiveCodeLicense added in v1.2.2

func (c *ApiClient) ExecBatchShareActiveCodeLicense(req ReqBatchShareActiveCodeLicense) (RespBatchShareActiveCodeLicense, error)

ExecBatchShareActiveCodeLicense 分配激活码给下游企业 文档:https://developer.work.weixin.qq.com/document/path/96059#分配激活码给下游企业

func (*ApiClient) ExecBatchTransferLicenseLicense

func (c *ApiClient) ExecBatchTransferLicenseLicense(req ReqBatchTransferLicenseLicense) (RespBatchTransferLicenseLicense, error)

ExecBatchTransferLicenseLicense 帐号继承 文档:https://developer.work.weixin.qq.com/document/path/95673#帐号继承

func (*ApiClient) ExecBatchsearchContact added in v1.1.4

func (c *ApiClient) ExecBatchsearchContact(req ReqBatchsearchContact) (RespBatchsearchContact, error)

ExecBatchsearchContact 通讯录批量搜索 文档:https://developer.work.weixin.qq.com/document/path/91844#通讯录批量搜索

func (*ApiClient) ExecCancelGroupmsgSendExternalcontact added in v1.2.9

func (c *ApiClient) ExecCancelGroupmsgSendExternalcontact(req ReqCancelGroupmsgSendExternalcontact) (RespCancelGroupmsgSendExternalcontact, error)

ExecCancelGroupmsgSendExternalcontact 停止企业群发 文档:https://developer.work.weixin.qq.com/document/path/97611#停止企业群发

func (*ApiClient) ExecCancelMomentTaskExternalcontact added in v1.2.9

func (c *ApiClient) ExecCancelMomentTaskExternalcontact(req ReqCancelMomentTaskExternalcontact) (RespCancelMomentTaskExternalcontact, error)

ExecCancelMomentTaskExternalcontact 停止发表企业朋友圈 文档:https://developer.work.weixin.qq.com/document/path/97612#停止发表企业朋友圈

func (*ApiClient) ExecCancelOrderLicense added in v1.2.1

func (c *ApiClient) ExecCancelOrderLicense(req ReqCancelOrderLicense) (RespCancelOrderLicense, error)

ExecCancelOrderLicense 取消订单 文档:https://developer.work.weixin.qq.com/document/path/96106#取消订单

func (*ApiClient) ExecCheckMemberAuthUser added in v1.2.0

func (c *ApiClient) ExecCheckMemberAuthUser(req ReqCheckMemberAuthUser) (RespCheckMemberAuthUser, error)

ExecCheckMemberAuthUser 查询成员用户是否已授权 文档:https://developer.work.weixin.qq.com/document/path/94514#查询成员用户是否已授权

func (*ApiClient) ExecCloseOrderPaytool added in v1.3.1

func (c *ApiClient) ExecCloseOrderPaytool(req ReqCloseOrderPaytool) (RespCloseOrderPaytool, error)

ExecCloseOrderPaytool 取消收款订单 文档:https://developer.work.weixin.qq.com/document/path/98046#取消收款订单

func (*ApiClient) ExecCloseTempChatExternalcontact

func (c *ApiClient) ExecCloseTempChatExternalcontact(req ReqCloseTempChatExternalcontact) (RespCloseTempChatExternalcontact, error)

ExecCloseTempChatExternalcontact 结束临时会话 文档:https://developer.work.weixin.qq.com/document/path/92577#结束临时会话

func (*ApiClient) ExecConvertToOpenidUser added in v1.1.6

func (c *ApiClient) ExecConvertToOpenidUser(req ReqConvertToOpenidUser) (RespConvertToOpenidUser, error)

ExecConvertToOpenidUser userid转openid 文档:https://developer.work.weixin.qq.com/document/path/90338#userid转openid

func (*ApiClient) ExecConvertToUseridUser added in v1.1.6

func (c *ApiClient) ExecConvertToUseridUser(req ReqConvertToUseridUser) (RespConvertToUseridUser, error)

ExecConvertToUseridUser openid转userid 文档:https://developer.work.weixin.qq.com/document/path/90338#openid转userid

func (*ApiClient) ExecCopyTemplateApproval added in v1.1.3

func (c *ApiClient) ExecCopyTemplateApproval(req ReqCopyTemplateApproval) (RespCopyTemplateApproval, error)

ExecCopyTemplateApproval 复制/更新模板到企业 文档:https://developer.work.weixin.qq.com/document/path/92630#复制/更新模板到企业

func (*ApiClient) ExecCorpidToOpencorpidService

func (c *ApiClient) ExecCorpidToOpencorpidService(req ReqCorpidToOpencorpidService) (RespCorpidToOpencorpidService, error)

ExecCorpidToOpencorpidService 1.4 corpid转换 文档:https://developer.work.weixin.qq.com/document/path/95327#1.4 corpid转换

func (*ApiClient) ExecCreateLinkCustomerAcquisition added in v1.4.0

func (c *ApiClient) ExecCreateLinkCustomerAcquisition(req ReqCreateLinkCustomerAcquisition) (RespCreateLinkCustomerAcquisition, error)

ExecCreateLinkCustomerAcquisition 创建获客链接 文档:https://developer.work.weixin.qq.com/document/path/97297#创建获客链接

func (*ApiClient) ExecCreateMomentStrategy added in v1.2.9

func (c *ApiClient) ExecCreateMomentStrategy(req ReqCreateMomentStrategy) (RespCreateMomentStrategy, error)

ExecCreateMomentStrategy 创建新的规则组 文档:https://developer.work.weixin.qq.com/document/path/94890#创建新的规则组

func (*ApiClient) ExecCreateNewOrderJobLicense added in v1.4.0

func (c *ApiClient) ExecCreateNewOrderJobLicense(req ReqCreateNewOrderJobLicense) (RespCreateNewOrderJobLicense, error)

ExecCreateNewOrderJobLicense 创建多企业新购任务 文档:https://developer.work.weixin.qq.com/document/path/98892#创建多企业新购任务

func (*ApiClient) ExecCreateNewOrderLicense

func (c *ApiClient) ExecCreateNewOrderLicense(req ReqCreateNewOrderLicense) (RespCreateNewOrderLicense, error)

ExecCreateNewOrderLicense 下单购买帐号 文档:https://developer.work.weixin.qq.com/document/path/95644#下单购买帐号

func (*ApiClient) ExecCreateRenewOrderJobLicense

func (c *ApiClient) ExecCreateRenewOrderJobLicense(req ReqCreateRenewOrderJobLicense) (RespCreateRenewOrderJobLicense, error)

ExecCreateRenewOrderJobLicense 创建续期任务 文档:https://developer.work.weixin.qq.com/document/path/95646#创建续期任务

func (*ApiClient) ExecCreateTag added in v1.2.0

func (c *ApiClient) ExecCreateTag(req ReqCreateTag) (RespCreateTag, error)

ExecCreateTag 创建标签 文档:https://developer.work.weixin.qq.com/document/path/90346#创建标签

func (*ApiClient) ExecCustomerAcquisitionQuotaExternalcontact added in v1.4.0

func (c *ApiClient) ExecCustomerAcquisitionQuotaExternalcontact(req ReqCustomerAcquisitionQuotaExternalcontact) (RespCustomerAcquisitionQuotaExternalcontact, error)

ExecCustomerAcquisitionQuotaExternalcontact 查询剩余使用量 文档:https://developer.work.weixin.qq.com/document/path/97375#查询剩余使用量

func (*ApiClient) ExecCustomerCustomerAcquisition added in v1.4.0

func (c *ApiClient) ExecCustomerCustomerAcquisition(req ReqCustomerCustomerAcquisition) (RespCustomerCustomerAcquisition, error)

ExecCustomerCustomerAcquisition 获取获客客户列表 文档:https://developer.work.weixin.qq.com/document/path/97298#获取获客客户列表

func (*ApiClient) ExecDelContactWayExternalcontact

func (c *ApiClient) ExecDelContactWayExternalcontact(req ReqDelContactWayExternalcontact) (RespDelContactWayExternalcontact, error)

ExecDelContactWayExternalcontact 删除企业已配置的「联系我」方式 文档:https://developer.work.weixin.qq.com/document/path/92577#删除企业已配置的「联系我」方式

func (*ApiClient) ExecDelCorpTagExternalcontact

func (c *ApiClient) ExecDelCorpTagExternalcontact(req ReqDelCorpTagExternalcontact) (RespDelCorpTagExternalcontact, error)

ExecDelCorpTagExternalcontact 删除企业客户标签 文档:https://developer.work.weixin.qq.com/document/path/92696#删除企业客户标签

func (*ApiClient) ExecDelGroupWelcomeTemplate added in v1.2.0

func (c *ApiClient) ExecDelGroupWelcomeTemplate(req ReqDelGroupWelcomeTemplate) (RespDelGroupWelcomeTemplate, error)

ExecDelGroupWelcomeTemplate 删除入群欢迎语素材 文档:https://developer.work.weixin.qq.com/document/path/93438#删除入群欢迎语素材

func (*ApiClient) ExecDelMomentStrategy added in v1.2.9

func (c *ApiClient) ExecDelMomentStrategy(req ReqDelMomentStrategy) (RespDelMomentStrategy, error)

ExecDelMomentStrategy 删除规则组 文档:https://developer.work.weixin.qq.com/document/path/94890#删除规则组

func (*ApiClient) ExecDeleteLinkCustomerAcquisition added in v1.4.0

func (c *ApiClient) ExecDeleteLinkCustomerAcquisition(req ReqDeleteLinkCustomerAcquisition) (RespDeleteLinkCustomerAcquisition, error)

ExecDeleteLinkCustomerAcquisition 删除获客链接 文档:https://developer.work.weixin.qq.com/document/path/97297#删除获客链接

func (*ApiClient) ExecDeleteTag added in v1.2.0

func (c *ApiClient) ExecDeleteTag(req ReqDeleteTag) (RespDeleteTag, error)

ExecDeleteTag 删除标签 文档:https://developer.work.weixin.qq.com/document/path/90348#删除标签

func (*ApiClient) ExecDeltagusersTag added in v1.2.0

func (c *ApiClient) ExecDeltagusersTag(req ReqDeltagusersTag) (RespDeltagusersTag, error)

ExecDeltagusersTag 删除标签成员 文档:https://developer.work.weixin.qq.com/document/path/90351#删除标签成员

func (*ApiClient) ExecEditCorpTagExternalcontact

func (c *ApiClient) ExecEditCorpTagExternalcontact(req ReqEditCorpTagExternalcontact) (RespEditCorpTagExternalcontact, error)

ExecEditCorpTagExternalcontact 编辑企业客户标签 文档:https://developer.work.weixin.qq.com/document/path/92696#编辑企业客户标签

func (*ApiClient) ExecEditGroupWelcomeTemplate added in v1.2.0

func (c *ApiClient) ExecEditGroupWelcomeTemplate(req ReqEditGroupWelcomeTemplate) (RespEditGroupWelcomeTemplate, error)

ExecEditGroupWelcomeTemplate 编辑入群欢迎语素材 文档:https://developer.work.weixin.qq.com/document/path/93438#编辑入群欢迎语素材

func (*ApiClient) ExecEditMomentStrategy added in v1.2.9

func (c *ApiClient) ExecEditMomentStrategy(req ReqEditMomentStrategy) (RespEditMomentStrategy, error)

ExecEditMomentStrategy 编辑规则组及其管理范围 文档:https://developer.work.weixin.qq.com/document/path/94890#编辑规则组及其管理范围

func (*ApiClient) ExecFinishExternalUseridMigration

func (c *ApiClient) ExecFinishExternalUseridMigration(req ReqFinishExternalUseridMigration) (RespFinishExternalUseridMigration, error)

func (*ApiClient) ExecGetActiveInfoByCodeLicense

func (c *ApiClient) ExecGetActiveInfoByCodeLicense(req ReqGetActiveInfoByCodeLicense) (RespGetActiveInfoByCodeLicense, error)

ExecGetActiveInfoByCodeLicense 获取激活码详情 文档:https://developer.work.weixin.qq.com/document/path/95552#获取激活码详情

func (*ApiClient) ExecGetActiveInfoByUserLicense

func (c *ApiClient) ExecGetActiveInfoByUserLicense(req ReqGetActiveInfoByUserLicense) (RespGetActiveInfoByUserLicense, error)

ExecGetActiveInfoByUserLicense 获取成员的激活详情 文档:https://developer.work.weixin.qq.com/document/path/95555#获取成员的激活详情

func (*ApiClient) ExecGetAdminListService

func (c *ApiClient) ExecGetAdminListService(req ReqGetAdminListService) (RespGetAdminListService, error)

ExecGetAdminListService 获取应用的管理员列表 文档:https://developer.work.weixin.qq.com/document/path/90606#获取应用的管理员列表

func (*ApiClient) ExecGetAgent added in v1.1.2

func (c *ApiClient) ExecGetAgent(req ReqGetAgent) (RespGetAgent, error)

ExecGetAgent 获取指定的应用详情 文档:https://developer.work.weixin.qq.com/document/path/90363#获取指定的应用详情

func (*ApiClient) ExecGetAppLicenseInfoLicense added in v1.0.11

func (c *ApiClient) ExecGetAppLicenseInfoLicense(req ReqGetAppLicenseInfoLicense) (RespGetAppLicenseInfoLicense, error)

ExecGetAppLicenseInfoLicense 获取应用的接口许可状态 文档:https://developer.work.weixin.qq.com/document/path/95844#获取应用的接口许可状态

func (*ApiClient) ExecGetAppQrcodeService added in v1.2.0

func (c *ApiClient) ExecGetAppQrcodeService(req ReqGetAppQrcodeService) (RespGetAppQrcodeService, error)

ExecGetAppQrcodeService 获取应用二维码 文档:https://developer.work.weixin.qq.com/document/path/95430#获取应用二维码

func (*ApiClient) ExecGetApprovalDetailOa added in v1.1.3

func (c *ApiClient) ExecGetApprovalDetailOa(req ReqGetApprovalDetailOa) (RespGetApprovalDetailOa, error)

ExecGetApprovalDetailOa 获取审批申请详情 文档:https://developer.work.weixin.qq.com/document/path/92634#获取审批申请详情

func (*ApiClient) ExecGetAuthInfoService

func (c *ApiClient) ExecGetAuthInfoService(req ReqGetAuthInfoService) (RespGetAuthInfoService, error)

ExecGetAuthInfoService 获取企业授权信息 文档:https://developer.work.weixin.qq.com/document/path/90604#获取企业授权信息

func (*ApiClient) ExecGetAutoActiveStatusLicense added in v1.0.13

func (c *ApiClient) ExecGetAutoActiveStatusLicense(req ReqGetAutoActiveStatusLicense) (RespGetAutoActiveStatusLicense, error)

ExecGetAutoActiveStatusLicense 查询企业的许可自动激活状态 文档:https://developer.work.weixin.qq.com/document/path/95874#查询企业的许可自动激活状态

func (*ApiClient) ExecGetBillListExternalpay added in v1.1.7

func (c *ApiClient) ExecGetBillListExternalpay(req ReqGetBillListExternalpay) (RespGetBillListExternalpay, error)

ExecGetBillListExternalpay 获取对外收款记录 文档:https://developer.work.weixin.qq.com/document/path/93727#获取对外收款记录

func (*ApiClient) ExecGetByUserBatch

func (c *ApiClient) ExecGetByUserBatch(req ReqGetByUserBatch) (RespGetByUserBatch, error)

ExecGetByUserBatch 批量获取客户详情 文档:https://developer.work.weixin.qq.com/document/path/93010#批量获取客户详情

func (*ApiClient) ExecGetContactWayExternalcontact

func (c *ApiClient) ExecGetContactWayExternalcontact(req ReqGetContactWayExternalcontact) (RespGetContactWayExternalcontact, error)

ExecGetContactWayExternalcontact 获取企业已配置的「联系我」方式 文档:https://developer.work.weixin.qq.com/document/path/92577#获取企业已配置的「联系我」方式

func (*ApiClient) ExecGetCorpTagListExternalcontact

func (c *ApiClient) ExecGetCorpTagListExternalcontact(req ReqGetCorpTagListExternalcontact) (RespGetCorpTagListExternalcontact, error)

ExecGetCorpTagListExternalcontact 获取企业标签库 文档:https://developer.work.weixin.qq.com/document/path/92696#获取企业标签库

func (*ApiClient) ExecGetCorpTokenService

func (c *ApiClient) ExecGetCorpTokenService(req ReqGetCorpTokenService) (RespGetCorpTokenService, error)

ExecGetCorpTokenService 获取企业凭证 文档:https://developer.work.weixin.qq.com/document/path/90605#获取企业凭证

func (*ApiClient) ExecGetCustomerAcquisition added in v1.4.0

func (c *ApiClient) ExecGetCustomerAcquisition(req ReqGetCustomerAcquisition) (RespGetCustomerAcquisition, error)

ExecGetCustomerAcquisition 获取获客链接详情 文档:https://developer.work.weixin.qq.com/document/path/97297#获取获客链接详情

func (*ApiClient) ExecGetDepartment

func (c *ApiClient) ExecGetDepartment(req ReqGetDepartment) (RespGetDepartment, error)

ExecGetDepartment 获取单个部门详情 文档:https://developer.work.weixin.qq.com/document/path/95407#获取单个部门详情

func (*ApiClient) ExecGetExternalcontact

func (c *ApiClient) ExecGetExternalcontact(req ReqGetExternalcontact) (RespGetExternalcontact, error)

ExecGetExternalcontact 获取客户详情 文档:https://developer.work.weixin.qq.com/document/path/92265#获取客户详情

func (*ApiClient) ExecGetGroupWelcomeTemplate added in v1.2.0

func (c *ApiClient) ExecGetGroupWelcomeTemplate(req ReqGetGroupWelcomeTemplate) (RespGetGroupWelcomeTemplate, error)

ExecGetGroupWelcomeTemplate 获取入群欢迎语素材 文档:https://developer.work.weixin.qq.com/document/path/93438#获取入群欢迎语素材

func (*ApiClient) ExecGetGroupchat

func (c *ApiClient) ExecGetGroupchat(req ReqGetGroupchat) (RespGetGroupchat, error)

ExecGetGroupchat 获取客户群详情 文档:https://developer.work.weixin.qq.com/document/path/92707#获取客户群详情

func (*ApiClient) ExecGetGroupmsgListV2Externalcontact

func (c *ApiClient) ExecGetGroupmsgListV2Externalcontact(req ReqGetGroupmsgListV2Externalcontact) (RespGetGroupmsgListV2Externalcontact, error)

ExecGetGroupmsgListV2Externalcontact 获取群发记录列表 文档:https://developer.work.weixin.qq.com/document/path/93338#获取群发记录列表

func (*ApiClient) ExecGetGroupmsgSendResultExternalcontact

func (c *ApiClient) ExecGetGroupmsgSendResultExternalcontact(req ReqGetGroupmsgSendResultExternalcontact) (RespGetGroupmsgSendResultExternalcontact, error)

ExecGetGroupmsgSendResultExternalcontact 获取企业群发成员执行结果 文档:https://developer.work.weixin.qq.com/document/path/93338#获取企业群发成员执行结果

func (*ApiClient) ExecGetGroupmsgTaskExternalcontact

func (c *ApiClient) ExecGetGroupmsgTaskExternalcontact(req ReqGetGroupmsgTaskExternalcontact) (RespGetGroupmsgTaskExternalcontact, error)

ExecGetGroupmsgTaskExternalcontact 获取群发成员发送任务列表 文档:https://developer.work.weixin.qq.com/document/path/93338#获取群发成员发送任务列表

func (*ApiClient) ExecGetJSAPITicket

func (c *ApiClient) ExecGetJSAPITicket(req JsAPITicketReq) (JsAPITicketResp, error)

ExecGetJSAPITicket 获取企业的jsapi_ticket

func (*ApiClient) ExecGetJSAPITicketAgentConfig

func (c *ApiClient) ExecGetJSAPITicketAgentConfig(req JsAPITicketAgentConfigReq) (JsAPITicketResp, error)

ExecGetJSAPITicketAgentConfig 获取应用的jsapi_ticket

func (*ApiClient) ExecGetLoginInfoService added in v1.2.0

func (c *ApiClient) ExecGetLoginInfoService(req ReqGetLoginInfoService) (RespGetLoginInfoService, error)

ExecGetLoginInfoService 获取登录用户信息 文档:https://developer.work.weixin.qq.com/document/path/91125#获取登录用户信息

func (*ApiClient) ExecGetMomentCommentsExternalcontact added in v1.2.9

func (c *ApiClient) ExecGetMomentCommentsExternalcontact(req ReqGetMomentCommentsExternalcontact) (RespGetMomentCommentsExternalcontact, error)

ExecGetMomentCommentsExternalcontact 获取客户朋友圈的互动数据 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈的互动数据

func (*ApiClient) ExecGetMomentCustomerListExternalcontact added in v1.2.9

func (c *ApiClient) ExecGetMomentCustomerListExternalcontact(req ReqGetMomentCustomerListExternalcontact) (RespGetMomentCustomerListExternalcontact, error)

ExecGetMomentCustomerListExternalcontact 获取客户朋友圈发表时选择的可见范围 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈发表时选择的可见范围

func (*ApiClient) ExecGetMomentListExternalcontact added in v1.2.9

func (c *ApiClient) ExecGetMomentListExternalcontact(req ReqGetMomentListExternalcontact) (RespGetMomentListExternalcontact, error)

ExecGetMomentListExternalcontact 获取企业全部的发表列表 文档:https://developer.work.weixin.qq.com/document/path/93333#获取企业全部的发表列表

func (*ApiClient) ExecGetMomentSendResultExternalcontact added in v1.2.9

func (c *ApiClient) ExecGetMomentSendResultExternalcontact(req ReqGetMomentSendResultExternalcontact) (RespGetMomentSendResultExternalcontact, error)

ExecGetMomentSendResultExternalcontact 获取客户朋友圈发表后的可见客户列表 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈发表后的可见客户列表

func (*ApiClient) ExecGetMomentStrategy added in v1.2.9

func (c *ApiClient) ExecGetMomentStrategy(req ReqGetMomentStrategy) (RespGetMomentStrategy, error)

ExecGetMomentStrategy 获取规则组详情 文档:https://developer.work.weixin.qq.com/document/path/94890#获取规则组详情

func (*ApiClient) ExecGetMomentTaskExternalcontact added in v1.2.9

func (c *ApiClient) ExecGetMomentTaskExternalcontact(req ReqGetMomentTaskExternalcontact) (RespGetMomentTaskExternalcontact, error)

ExecGetMomentTaskExternalcontact 获取客户朋友圈企业发表的列表 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈企业发表的列表

func (*ApiClient) ExecGetMomentTaskResultExternalcontact added in v1.2.9

func (c *ApiClient) ExecGetMomentTaskResultExternalcontact(req ReqGetMomentTaskResultExternalcontact) (RespGetMomentTaskResultExternalcontact, error)

ExecGetMomentTaskResultExternalcontact 获取任务创建结果 文档:https://developer.work.weixin.qq.com/document/path/95094#获取任务创建结果

func (*ApiClient) ExecGetOrderDetailPaytool added in v1.3.1

func (c *ApiClient) ExecGetOrderDetailPaytool(req ReqGetOrderDetailPaytool) (RespGetOrderDetailPaytool, error)

ExecGetOrderDetailPaytool 获取收款订单详情 文档:https://developer.work.weixin.qq.com/document/path/98054#获取收款订单详情

func (*ApiClient) ExecGetOrderLicense

func (c *ApiClient) ExecGetOrderLicense(req ReqGetOrderLicense) (RespGetOrderLicense, error)

ExecGetOrderLicense 获取订单详情 文档:https://developer.work.weixin.qq.com/document/path/95648#获取订单详情

func (*ApiClient) ExecGetOrderListPaytool added in v1.3.1

func (c *ApiClient) ExecGetOrderListPaytool(req ReqGetOrderListPaytool) (RespGetOrderListPaytool, error)

ExecGetOrderListPaytool 获取收款订单列表 文档:https://developer.work.weixin.qq.com/document/path/98053#获取收款订单列表

func (*ApiClient) ExecGetOrderListService added in v1.2.9

func (c *ApiClient) ExecGetOrderListService(req ReqGetOrderListService) (RespGetOrderListService, error)

ExecGetOrderListService 获取订单列表 文档:https://developer.work.weixin.qq.com/document/path/91910#获取订单列表

func (*ApiClient) ExecGetOrderService added in v1.2.9

func (c *ApiClient) ExecGetOrderService(req ReqGetOrderService) (RespGetOrderService, error)

ExecGetOrderService 获取订单详情 文档:https://developer.work.weixin.qq.com/document/path/91909#获取订单详情

func (*ApiClient) ExecGetPaymentInfoExternalpay added in v1.1.7

func (c *ApiClient) ExecGetPaymentInfoExternalpay(req ReqGetPaymentInfoExternalpay) (RespGetPaymentInfoExternalpay, error)

ExecGetPaymentInfoExternalpay 获取收款项目的商户单号 文档:https://developer.work.weixin.qq.com/document/path/95936#获取收款项目的商户单号

func (*ApiClient) ExecGetPermanentCodeService

func (c *ApiClient) ExecGetPermanentCodeService(req ReqGetPermanentCodeService) (RespGetPermanentCodeService, error)

ExecGetPermanentCodeService 获取企业永久授权码 文档:https://developer.work.weixin.qq.com/document/path/90603#获取企业永久授权码

func (*ApiClient) ExecGetPermissionsAgent added in v1.4.0

func (c *ApiClient) ExecGetPermissionsAgent(req ReqGetPermissionsAgent) (RespGetPermissionsAgent, error)

文档:https://developer.work.weixin.qq.com/document/path/99052#获取应用权限详情

func (*ApiClient) ExecGetPreAuthCodeService added in v1.2.0

func (c *ApiClient) ExecGetPreAuthCodeService(req ReqGetPreAuthCodeService) (RespGetPreAuthCodeService, error)

ExecGetPreAuthCodeService 获取预授权码 文档:https://developer.work.weixin.qq.com/document/path/90601#获取预授权码

func (*ApiClient) ExecGetProviderTokenService

func (c *ApiClient) ExecGetProviderTokenService(req ReqGetProviderTokenService) (RespGetProviderTokenService, error)

ExecGetProviderTokenService 获取服务商凭证 文档:https://developer.work.weixin.qq.com/document/path/91200#获取服务商凭证

func (*ApiClient) ExecGetRangeMomentStrategy added in v1.2.9

func (c *ApiClient) ExecGetRangeMomentStrategy(req ReqGetRangeMomentStrategy) (RespGetRangeMomentStrategy, error)

ExecGetRangeMomentStrategy 获取规则组管理范围 文档:https://developer.work.weixin.qq.com/document/path/94890#获取规则组管理范围

func (*ApiClient) ExecGetRegisterCodeService

func (c *ApiClient) ExecGetRegisterCodeService(req ReqGetRegisterCodeService) (RespGetRegisterCodeService, error)

ExecGetRegisterCodeService 获取注册码 文档:https://developer.work.weixin.qq.com/document/path/90581#获取注册码

func (*ApiClient) ExecGetRegisterUrl

func (c *ApiClient) ExecGetRegisterUrl(registerCode string) string

推广二维码方式安装应用:获取应用安装链接 文档:https://developer.work.weixin.qq.com/document/path/90578

func (*ApiClient) ExecGetSuiteTokenService

func (c *ApiClient) ExecGetSuiteTokenService(req ReqGetSuiteTokenService) (RespGetSuiteTokenService, error)

ExecGetSuiteTokenService 获取第三方应用凭证 文档:https://developer.work.weixin.qq.com/document/path/90600#获取第三方应用凭证

func (*ApiClient) ExecGetTag added in v1.2.0

func (c *ApiClient) ExecGetTag(req ReqGetTag) (RespGetTag, error)

ExecGetTag 获取标签成员 文档:https://developer.work.weixin.qq.com/document/path/90349#获取标签成员

func (*ApiClient) ExecGetTemplateDetail added in v1.1.3

func (c *ApiClient) ExecGetTemplateDetail(req ReqGetTemplateDetail) (RespGetTemplateDetail, error)

ExecGetTemplateDetail 获取审批模板详情 文档:https://developer.work.weixin.qq.com/document/path/92631#获取审批模板详情

func (*ApiClient) ExecGetUnassignedListExternalcontact

func (c *ApiClient) ExecGetUnassignedListExternalcontact(req ReqGetUnassignedListExternalcontact) (RespGetUnassignedListExternalcontact, error)

ExecGetUnassignedListExternalcontact 离职继承-获取待分配的离职成员列表 文档:https://developer.work.weixin.qq.com/document/path/92273#获取待分配的离职成员列表

func (*ApiClient) ExecGetUnionOrderLicense added in v1.4.0

func (c *ApiClient) ExecGetUnionOrderLicense(req ReqGetUnionOrderLicense) (RespGetUnionOrderLicense, error)

ExecGetUnionOrderLicense 获取多企业订单详情 文档:https://developer.work.weixin.qq.com/document/path/98893#获取多企业订单详情

func (*ApiClient) ExecGetUploadByUrlResultMedia added in v1.2.9

func (c *ApiClient) ExecGetUploadByUrlResultMedia(req ReqGetUploadByUrlResultMedia) (RespGetUploadByUrlResultMedia, error)

ExecGetUploadByUrlResultMedia 查询异步任务结果 文档:https://developer.work.weixin.qq.com/document/path/96219#查询异步任务结果

func (*ApiClient) ExecGetUser

func (c *ApiClient) ExecGetUser(req ReqGetUser) (RespGetUser, error)

ExecGetUser 读取成员 文档:https://developer.work.weixin.qq.com/document/path/90332#读取成员

func (*ApiClient) ExecGetUseridByEmailUser added in v1.1.6

func (c *ApiClient) ExecGetUseridByEmailUser(req ReqGetUseridByEmailUser) (RespGetUseridByEmailUser, error)

ExecGetUseridByEmailUser 邮箱获取userid 文档:https://developer.work.weixin.qq.com/document/path/95892#邮箱获取userid

func (*ApiClient) ExecGetcorpconfVacation added in v1.1.3

func (c *ApiClient) ExecGetcorpconfVacation(req ReqGetcorpconfVacation) (RespGetcorpconfVacation, error)

ExecGetcorpconfVacation 获取企业假期管理配置 文档:https://developer.work.weixin.qq.com/document/path/94211#获取企业假期管理配置

func (*ApiClient) ExecGetuserdetail3RdService

func (c *ApiClient) ExecGetuserdetail3RdService(req ReqGetuserdetail3RdService) (RespGetuserdetail3RdService, error)

ExecGetuserdetail3RdService 获取访问用户敏感信息 文档:https://developer.work.weixin.qq.com/document/path/91122#获取访问用户敏感信息

func (*ApiClient) ExecGetuseridUser added in v1.1.6

func (c *ApiClient) ExecGetuseridUser(req ReqGetuseridUser) (RespGetuseridUser, error)

ExecGetuseridUser 手机号获取userid 文档:https://developer.work.weixin.qq.com/document/path/91693#手机号获取userid

func (*ApiClient) ExecGetuserinfo3RdService

func (c *ApiClient) ExecGetuserinfo3RdService(req ReqGetuserinfo3RdService) (RespGetuserinfo3RdService, error)

ExecGetuserinfo3RdService 获取访问用户身份 文档:https://developer.work.weixin.qq.com/document/path/91121#获取访问用户身份

func (*ApiClient) ExecGetuservacationquotaVacation added in v1.1.3

func (c *ApiClient) ExecGetuservacationquotaVacation(req ReqGetuservacationquotaVacation) (RespGetuservacationquotaVacation, error)

ExecGetuservacationquotaVacation 获取成员假期余额 文档:https://developer.work.weixin.qq.com/document/path/94212#获取成员假期余额

func (*ApiClient) ExecGroupchatStatistic

func (c *ApiClient) ExecGroupchatStatistic(req ReqGroupchatStatistic) (RespGroupchatStatistic, error)

ExecGroupchatStatistic 按自然日聚合的方式 文档:https://developer.work.weixin.qq.com/document/path/93476#按自然日聚合的方式

func (*ApiClient) ExecImportChainContactCorpgroup added in v1.3.0

func (c *ApiClient) ExecImportChainContactCorpgroup(req ReqImportChainContactCorpgroup) (RespImportChainContactCorpgroup, error)

ExecImportChainContactCorpgroup 批量导入上下游联系人 文档:https://developer.work.weixin.qq.com/document/path/95821

func (*ApiClient) ExecInviteBatch added in v1.2.0

func (c *ApiClient) ExecInviteBatch(req ReqInviteBatch) (RespInviteBatch, error)

ExecInviteBatch 成邀请成员 文档:https://developer.work.weixin.qq.com/document/path/91127#成邀请成员

func (*ApiClient) ExecListActivedAccountLicense

func (c *ApiClient) ExecListActivedAccountLicense(req ReqListActivedAccountLicense) (RespListActivedAccountLicense, error)

ExecListActivedAccountLicense 获取企业的帐号列表 文档:https://developer.work.weixin.qq.com/document/path/95544#获取企业的帐号列表

func (*ApiClient) ExecListAgent added in v1.1.2

func (c *ApiClient) ExecListAgent(req ReqListAgent) (RespListAgent, error)

ExecListAgent 获取access_token对应的应用列表 文档:https://developer.work.weixin.qq.com/document/path/90363#获取access_token对应的应用列表

func (*ApiClient) ExecListAppShareInfoCorp added in v1.1.7

func (c *ApiClient) ExecListAppShareInfoCorp(req ReqListAppShareInfoCorp) (RespListAppShareInfoCorp, error)

ExecListAppShareInfoCorp 获取应用共享信息 文档:https://developer.work.weixin.qq.com/document/path/95324#获取应用共享信息

func (*ApiClient) ExecListContactWayExternalcontact

func (c *ApiClient) ExecListContactWayExternalcontact(req ReqListContactWayExternalcontact) (RespListContactWayExternalcontact, error)

ExecListContactWayExternalcontact 获取企业已配置的「联系我」列表 文档:https://developer.work.weixin.qq.com/document/path/92577#获取企业已配置的「联系我」列表

func (*ApiClient) ExecListDepartment

func (c *ApiClient) ExecListDepartment(req ReqListDepartment) (RespListDepartment, error)

ExecListDepartment 获取部门列表 文档:https://developer.work.weixin.qq.com/document/path/90344#获取部门列表

func (*ApiClient) ExecListExternalcontact

func (c *ApiClient) ExecListExternalcontact(req ReqListExternalcontact) (RespListExternalcontact, error)

ExecListExternalcontact 获取客户列表 文档:https://developer.work.weixin.qq.com/document/path/92264#获取客户列表

func (*ApiClient) ExecListGroupchat

func (c *ApiClient) ExecListGroupchat(req ReqListGroupchat) (RespListGroupchat, error)

ExecListGroupchat 获取客户群列表 文档:https://developer.work.weixin.qq.com/document/path/93414#获取客户群列表

func (*ApiClient) ExecListIdUser added in v1.2.3

func (c *ApiClient) ExecListIdUser(req ReqListIdUser) (RespListIdUser, error)

ExecListIdUser 获取成员ID列表 文档:https://developer.work.weixin.qq.com/document/path/96021#获取成员ID列表

func (*ApiClient) ExecListLinkCustomerAcquisition added in v1.4.0

func (c *ApiClient) ExecListLinkCustomerAcquisition(req ReqListLinkCustomerAcquisition) (RespListLinkCustomerAcquisition, error)

ExecListLinkCustomerAcquisition 获取获客链接列表 文档:https://developer.work.weixin.qq.com/document/path/97297#获取获客链接列表

func (*ApiClient) ExecListMemberAuthUser added in v1.2.0

func (c *ApiClient) ExecListMemberAuthUser(req ReqListMemberAuthUser) (RespListMemberAuthUser, error)

ExecListMemberAuthUser 获取成员授权列表 文档:https://developer.work.weixin.qq.com/document/path/94513#获取成员授权列表

func (*ApiClient) ExecListMomentStrategy added in v1.2.9

func (c *ApiClient) ExecListMomentStrategy(req ReqListMomentStrategy) (RespListMomentStrategy, error)

ExecListMomentStrategy 获取规则组列表 文档:https://developer.work.weixin.qq.com/document/path/94890#获取规则组列表

func (*ApiClient) ExecListOrderAccountLicense

func (c *ApiClient) ExecListOrderAccountLicense(req ReqListOrderAccountLicense) (RespListOrderAccountLicense, error)

ExecListOrderAccountLicense 获取订单中的帐号列表 文档:https://developer.work.weixin.qq.com/document/path/95649#获取订单中的帐号列表

func (*ApiClient) ExecListOrderLicense

func (c *ApiClient) ExecListOrderLicense(req ReqListOrderLicense) (RespListOrderLicense, error)

ExecListOrderLicense 获取订单列表 文档:https://developer.work.weixin.qq.com/document/path/95647#获取订单列表

func (*ApiClient) ExecListSelectedTicketUserUser added in v1.2.0

func (c *ApiClient) ExecListSelectedTicketUserUser(req ReqListSelectedTicketUserUser) (RespListSelectedTicketUserUser, error)

ExecListSelectedTicketUserUser 成获取选人ticket对应的用户 文档:https://developer.work.weixin.qq.com/document/path/94894#成获取选人ticket对应的用户

func (*ApiClient) ExecListTag added in v1.2.0

func (c *ApiClient) ExecListTag(req ReqListTag) (RespListTag, error)

ExecListTag 获取标签列表 文档:https://developer.work.weixin.qq.com/document/path/90352#获取标签列表

func (*ApiClient) ExecListUser

func (c *ApiClient) ExecListUser(req ReqListUser) (RespListUser, error)

ExecListUser 获取部门成员详情 文档:https://developer.work.weixin.qq.com/document/path/90337#获取部门成员详情

func (*ApiClient) ExecMarkTagExternalcontact

func (c *ApiClient) ExecMarkTagExternalcontact(req ReqMarkTagExternalcontact) (RespMarkTagExternalcontact, error)

ExecMarkTagExternalcontact 编辑客户企业标签 文档:https://developer.work.weixin.qq.com/document/path/92697#编辑客户企业标签

func (*ApiClient) ExecNewOrderJobResultLicense added in v1.4.0

func (c *ApiClient) ExecNewOrderJobResultLicense(req ReqNewOrderJobResultLicense) (RespNewOrderJobResultLicense, error)

ExecNewOrderJobResultLicense 获取多企业新购订单提交结果 文档:https://developer.work.weixin.qq.com/document/path/98892#获取多企业新购订单提交结果

func (*ApiClient) ExecOnjobTransferGroupchat added in v1.0.13

func (c *ApiClient) ExecOnjobTransferGroupchat(req ReqOnjobTransferGroupchat) (RespOnjobTransferGroupchat, error)

ExecOnjobTransferGroupchat 分配在职成员的客户群 文档:https://developer.work.weixin.qq.com/document/path/95703#分配在职成员的客户群

func (*ApiClient) ExecOpenOrderPaytool added in v1.3.1

func (c *ApiClient) ExecOpenOrderPaytool(req ReqOpenOrderPaytool) (RespOpenOrderPaytool, error)

func (*ApiClient) ExecOpengidToChatidExternalcontact added in v1.2.0

func (c *ApiClient) ExecOpengidToChatidExternalcontact(req ReqOpengidToChatidExternalcontact) (RespOpengidToChatidExternalcontact, error)

ExecOpengidToChatidExternalcontact 客户群opengid转换 文档:https://developer.work.weixin.qq.com/document/path/94828#客户群opengid转换

func (*ApiClient) ExecProlongTryService added in v1.2.9

func (c *ApiClient) ExecProlongTryService(req ReqProlongTryService) (RespProlongTryService, error)

ExecProlongTryService 延长试用期 文档:https://developer.work.weixin.qq.com/document/path/91913#延长试用期

func (*ApiClient) ExecRecallMessage added in v1.2.9

func (c *ApiClient) ExecRecallMessage(req ReqRecallMessage) (RespRecallMessage, error)

ExecRecallMessage 撤回应用消息 文档:https://developer.work.weixin.qq.com/document/path/94947#撤回应用消息

func (*ApiClient) ExecRemarkExternalcontact

func (c *ApiClient) ExecRemarkExternalcontact(req ReqRemarkExternalcontact) (RespRemarkExternalcontact, error)

ExecRemarkExternalcontact 修改客户备注信息 文档:https://developer.work.weixin.qq.com/document/path/92694#修改客户备注信息

func (*ApiClient) ExecRemindGroupmsgSendExternalcontact added in v1.2.9

func (c *ApiClient) ExecRemindGroupmsgSendExternalcontact(req ReqRemindGroupmsgSendExternalcontact) (RespRemindGroupmsgSendExternalcontact, error)

ExecRemindGroupmsgSendExternalcontact 提醒成员群发 文档:https://developer.work.weixin.qq.com/document/path/97610#提醒成员群发

func (*ApiClient) ExecRemoveCorpCorp added in v1.3.0

func (c *ApiClient) ExecRemoveCorpCorp(req ReqRemoveCorpCorp) (RespRemoveCorpCorp, error)

ExecRemoveCorpCorp 移除企业 文档:https://developer.work.weixin.qq.com/document/path/95822#移除企业

func (*ApiClient) ExecSearchContact added in v1.1.4

func (c *ApiClient) ExecSearchContact(req ReqSearchContact) (RespSearchContact, error)

ExecSearchContact 通讯录单个搜索 文档:https://developer.work.weixin.qq.com/document/path/91844#通讯录单个搜索

func (*ApiClient) ExecSendWelcomeMsgExternalcontact added in v1.2.0

func (c *ApiClient) ExecSendWelcomeMsgExternalcontact(req ReqSendWelcomeMsgExternalcontact) (RespSendWelcomeMsgExternalcontact, error)

ExecSendWelcomeMsgExternalcontact 发送新客户欢迎语 文档:https://developer.work.weixin.qq.com/document/path/92599#发送新客户欢迎语

func (*ApiClient) ExecSentMessageCard

func (c *ApiClient) ExecSentMessageCard(req ReqSentMessageCard) (RespSentMessageCard, error)

发送应用消息 文档:https://developer.work.weixin.qq.com/document/path/90372#接口定义

func (*ApiClient) ExecSentMessageCardMiniNotice

func (c *ApiClient) ExecSentMessageCardMiniNotice(req ReqSentMessageCardMiniNotice) (RespSentMessageCard, error)

发送应用消息-小程序通知消息 文档:https://developer.work.weixin.qq.com/document/path/90372#接口定义

func (*ApiClient) ExecSentMessageCardTemplateCard

func (c *ApiClient) ExecSentMessageCardTemplateCard(req ReqSentMessageCardTemplateCard) (RespSentMessageCard, error)

发送应用消息-模板卡片消息 文档:https://developer.work.weixin.qq.com/document/path/90372#接口定义

func (*ApiClient) ExecSentMessageCardTemplateMsg

func (c *ApiClient) ExecSentMessageCardTemplateMsg(req ReqSentMessageCardTemplateMsg) (RespSentMessageCard, error)

发送应用消息-模板消息 文档:https://developer.work.weixin.qq.com/document/path/90372#接口定义

func (*ApiClient) ExecSetAutoActiveStatusLicense added in v1.0.13

func (c *ApiClient) ExecSetAutoActiveStatusLicense(req ReqSetAutoActiveStatusLicense) (RespSetAutoActiveStatusLicense, error)

ExecSetAutoActiveStatusLicense 设置企业的许可自动激活状态 文档:https://developer.work.weixin.qq.com/document/path/95873#设置企业的许可自动激活状态

func (*ApiClient) ExecSetSessionInfoService added in v1.2.0

func (c *ApiClient) ExecSetSessionInfoService(req ReqSetSessionInfoService) (RespSetSessionInfoService, error)

ExecSetSessionInfoService 设置授权配置 文档:https://developer.work.weixin.qq.com/document/path/90602#设置授权配置

func (*ApiClient) ExecSetoneuserquotaVacation added in v1.1.3

func (c *ApiClient) ExecSetoneuserquotaVacation(req ReqSetoneuserquotaVacation) (RespSetoneuserquotaVacation, error)

ExecSetoneuserquotaVacation 修改成员假期余额 文档:https://developer.work.weixin.qq.com/document/path/94213#修改成员假期余额

func (*ApiClient) ExecSimplelistDepartment

func (c *ApiClient) ExecSimplelistDepartment(req ReqSimplelistDepartment) (RespSimplelistDepartment, error)

ExecSimplelistDepartment 获取子部门ID列表 文档:https://developer.work.weixin.qq.com/document/path/95406#获取子部门ID列表

func (*ApiClient) ExecSimplelistUser

func (c *ApiClient) ExecSimplelistUser(req ReqSimplelistUser) (RespSimplelistUser, error)

ExecSimplelistUser 获取部门成员 文档:https://developer.work.weixin.qq.com/document/path/90336#获取部门成员

func (*ApiClient) ExecSortContact added in v1.2.9

func (c *ApiClient) ExecSortContact(req ReqSortContact) (RespSortContact, error)

ExecSortContact 通讯录userid排序 文档:https://developer.work.weixin.qq.com/document/path/92093#通讯录userid排序

func (*ApiClient) ExecStatisticGroupchat added in v1.2.3

func (c *ApiClient) ExecStatisticGroupchat(req ReqStatisticGroupchat) (RespStatisticGroupchat, error)

ExecStatisticGroupchat 按群主聚合的方式 文档:https://developer.work.weixin.qq.com/document/path/93476#按群主聚合的方式

func (*ApiClient) ExecSubmitNewOrderJobLicense added in v1.4.0

func (c *ApiClient) ExecSubmitNewOrderJobLicense(req ReqSubmitNewOrderJobLicense) (RespSubmitNewOrderJobLicense, error)

ExecSubmitNewOrderJobLicense 提交多企业新购订单 文档:https://developer.work.weixin.qq.com/document/path/98892#提交多企业新购订单

func (*ApiClient) ExecSubmitOrderJobLicense

func (c *ApiClient) ExecSubmitOrderJobLicense(req ReqSubmitOrderJobLicense) (RespSubmitOrderJobLicense, error)

ExecSubmitOrderJobLicense 提交续期订单 文档:https://developer.work.weixin.qq.com/document/path/95646#提交续期订单

func (*ApiClient) ExecTransferCustomerExternalcontact

func (c *ApiClient) ExecTransferCustomerExternalcontact(req ReqTransferCustomerExternalcontact) (RespTransferCustomerExternalcontact, error)

ExecTransferCustomerExternalcontact 在职继承-分配在职成员的客户 文档:https://developer.work.weixin.qq.com/document/path/94096#分配在职成员的客户

func (*ApiClient) ExecTransferCustomerResigned

func (c *ApiClient) ExecTransferCustomerResigned(req ReqTransferCustomerResigned) (RespTransferCustomerResigned, error)

ExecTransferCustomerResigned 离职继承-分配离职成员的客户 文档:https://developer.work.weixin.qq.com/document/path/94100#分配离职成员的客户

func (*ApiClient) ExecTransferGroupchat

func (c *ApiClient) ExecTransferGroupchat(req ReqTransferGroupchat) (RespTransferGroupchat, error)

ExecTransferGroupchat 离职继承-分配离职成员的客户群 文档:https://developer.work.weixin.qq.com/document/path/93242#分配离职成员的客户群

func (*ApiClient) ExecTransferResultExternalcontact

func (c *ApiClient) ExecTransferResultExternalcontact(req ReqTransferResultExternalcontact) (RespTransferResultExternalcontact, error)

ExecTransferResultExternalcontact 在职继承-查询客户接替状态 文档:https://developer.work.weixin.qq.com/document/path/94097#查询客户接替状态

func (*ApiClient) ExecTransferResultResigned

func (c *ApiClient) ExecTransferResultResigned(req ReqTransferResultResigned) (RespTransferResultResigned, error)

ExecTransferResultResigned 离职继承-查询客户接替状态 文档:https://developer.work.weixin.qq.com/document/path/94101#查询客户接替状态

func (*ApiClient) ExecUnionidToExternalUserid3RdExternalcontact

func (c *ApiClient) ExecUnionidToExternalUserid3RdExternalcontact(req ReqUnionidToExternalUserid3RdExternalcontact) (RespUnionidToExternalUserid3RdExternalcontact, error)

ExecUnionidToExternalUserid3RdExternalcontact 4.2 unionid查询external_userid 文档:https://developer.work.weixin.qq.com/document/path/95327#4.2 unionid查询external_userid

func (*ApiClient) ExecUpdateContactWayExternalcontact

func (c *ApiClient) ExecUpdateContactWayExternalcontact(req ReqUpdateContactWayExternalcontact) (RespUpdateContactWayExternalcontact, error)

ExecUpdateContactWayExternalcontact 更新企业已配置的「联系我」方式 文档:https://developer.work.weixin.qq.com/document/path/92577#更新企业已配置的「联系我」方式

func (*ApiClient) ExecUpdateLinkCustomerAcquisition added in v1.4.0

func (c *ApiClient) ExecUpdateLinkCustomerAcquisition(req ReqUpdateLinkCustomerAcquisition) (RespUpdateLinkCustomerAcquisition, error)

ExecUpdateLinkCustomerAcquisition 编辑获客链接 文档:https://developer.work.weixin.qq.com/document/path/97297#编辑获客链接

func (*ApiClient) ExecUpdateTag added in v1.2.0

func (c *ApiClient) ExecUpdateTag(req ReqUpdateTag) (RespUpdateTag, error)

ExecUpdateTag 更新标签名字 文档:https://developer.work.weixin.qq.com/document/path/90347#更新标签名字

func (*ApiClient) ExecUpdateTemplateCardMessage

func (c *ApiClient) ExecUpdateTemplateCardMessage(req ReqUpdateTemplateCardMessage) (RespUpdateTemplateCardMessage, error)

文档:https://developer.work.weixin.qq.com/document/path/94945#更新按钮为不可点击状态

func (*ApiClient) ExecUploadByUrlMedia added in v1.2.9

func (c *ApiClient) ExecUploadByUrlMedia(req ReqUploadByUrlMedia) (RespUploadByUrlMedia, error)

ExecUploadByUrlMedia 生成异步上传任务 文档:https://developer.work.weixin.qq.com/document/path/96219#生成异步上传任务

func (*ApiClient) ExecUploadMedia

func (c *ApiClient) ExecUploadMedia(req ReqUploadMedia) (RespUploadMedia, error)

ExecUploadMedia 上传临时素材 文档:https://developer.work.weixin.qq.com/document/path/90389#上传临时素材

func (*ApiClient) ExecUserBehaviorData

func (c *ApiClient) ExecUserBehaviorData(req ReqUserBehaviorData) (RespUserBehaviorData, error)

ExecUserBehaviorData 获取「联系客户统计」数据 文档:https://developer.work.weixin.qq.com/document/path/92275#获取「联系客户统计」数据

func (*ApiClient) ExecUseridToOpenuseridBatch

func (c *ApiClient) ExecUseridToOpenuseridBatch(req ReqUseridToOpenuseridBatch) (RespUseridToOpenuseridBatch, error)

ExecUseridToOpenuseridBatch 2.4 userid的转换 文档:https://developer.work.weixin.qq.com/document/path/95327#2.4 userid的转换

func (*ApiClient) GetCorpQualification

func (c *ApiClient) GetCorpQualification(req ReqGetCorpQualification) (RespGetCorpQualification, error)

func (*ApiClient) GetJSAPITicket

func (c *ApiClient) GetJSAPITicket() (string, error)

GetJSAPITicket 获取 JSAPI_ticket

func (*ApiClient) GetJSAPITicketAgentConfig

func (c *ApiClient) GetJSAPITicketAgentConfig() (string, error)

GetJSAPITicketAgentConfig 获取 JSAPI_ticket_agent_config

func (*ApiClient) GetJsSdkSign added in v1.0.13

func (c *ApiClient) GetJsSdkSign(corpId, link, jsapiTicket string, agentId int) GetJsSdkSignResp

获取前端 JS-SDK 使用权限签名 文档:https://developer.work.weixin.qq.com/document/path/90506

func (*ApiClient) GetThirdOauthUrl

func (c *ApiClient) GetThirdOauthUrl(req GetThirdOauthUrlReq) string

构造oauth2链接

func (*ApiClient) GetToken

func (c *ApiClient) GetToken() (token string, err error)

func (*ApiClient) RefreshSuiteTicket

func (c *ApiClient) RefreshSuiteTicket(ticket string, ttl time.Duration)

更新suite_ticket

func (*ApiClient) RemoveToken

func (c *ApiClient) RemoveToken()

移除不合法或失效的的access_token/jsapi_ticket

func (*ApiClient) RemoveTokenByHttpClient

func (c *ApiClient) RemoveTokenByHttpClient(httpBody []byte)

func (*ApiClient) UploadTempMedia

func (c *ApiClient) UploadTempMedia(req UploadMediaReq) (UploadMediaResult, error)

UploadMedia 上传临时素材

type ApplyDataContent added in v1.1.3

type ApplyDataContent struct {
	Control string `json:"control"` // 控件类型:Text-文本;Textarea-多行文本;Number-数字;Money-金额;Date-日期/日期+时间;Selector-单选/多选;;Contact-成员/部门;Tips-说明文字;File-附件;Table-明细;
	Id      string `json:"id"`      // 控件id:控件的唯一id,可通过“获取审批模板详情”接口获取
	Value   struct {
		Text             string             `json:"text"`
		NewNumber        string             `json:"new_number"`
		NewMoney         string             `json:"new_money"`
		DateValue        DateValue          `json:"date"`
		SelectorValue    DateValue          `json:"selector"`
		MembersValue     []MembersValue     `json:"members"`
		DepartmentsValue []DepartmentsValue `json:"departments"`
		FilesValue       []FilesValue       `json:"files"`
		TableValue       []TableValue       `json:"children"`
		VacationValue    VacationValue      `json:"vacation"`
		AttendanceValue  AttendanceValue    `json:"attendance"`
	} `json:"value"`
}

type Approver added in v1.1.3

type Approver struct {
	Attr   int      `json:"attr"`   // 节点审批方式:1-或签;2-会签,仅在节点为多人审批时有效
	Userid []string `json:"userid"` // 审批节点审批人userid列表,若为多人会签、多人或签,需填写每个人的userid
}

type Attendance added in v1.1.3

type Attendance struct {
	DateRange struct {
		Type string `json:"type"`
	} `json:"date_range"`
	Type int `json:"type"`
}

type AttendanceValue added in v1.1.3

type AttendanceValue struct {
	DateRange struct {
		Type        string `json:"type"`         // 时间展示类型:day-日期;hour-日期+时间
		NewBegin    int    `json:"new_begin"`    // 开始时间戳
		NewEnd      int    `json:"new_end"`      // 结束时间戳
		NewDuration int    `json:"new_duration"` // 请假时长,单位秒
	} `json:"date_range"`
	Type int `json:"type"` // 假勤组件类型:1-请假;3-出差;4-外出;5-加班
}

type AuthCorp

type AuthCorp struct {
	PermanentCode string
	AgentId       int
}

需初始化的参数

type AuthCorpInfo added in v1.2.2

type AuthCorpInfo struct {
	CorpFullName      string `json:"corp_full_name"`
	CorpIndustry      string `json:"corp_industry"`
	CorpName          string `json:"corp_name"`
	CorpScale         string `json:"corp_scale"`
	CorpSquareLogoURL string `json:"corp_square_logo_url"`
	CorpRoundLogoURL  string `json:"corp_round_logo_url"`
	CorpSubIndustry   string `json:"corp_sub_industry"`
	CorpType          string `json:"corp_type"`
	CorpUserMax       int    `json:"corp_user_max"`
	CorpWxqrcode      string `json:"corp_wxqrcode"`
	Corpid            string `json:"corpid"`
	SubjectType       int    `json:"subject_type"`
	VerifiedEndTime   int    `json:"verified_end_time"`
	Location          string `json:"location"`
}

RespGetPermanentCodeService 获取企业永久授权码响应 文档:https://developer.work.weixin.qq.com/document/path/90603#获取企业永久授权码

type AuthInfo added in v1.2.2

type AuthInfo struct {
	Agent []struct {
		Agentid         int    `json:"agentid"`
		Appid           int    `json:"appid"`
		AuthMode        int    `json:"auth_mode"`
		IsCustomizedApp bool   `json:"is_customized_app"`
		Name            string `json:"name"`
		Privilege       struct {
			AllowParty []int    `json:"allow_party"`
			AllowTag   []int    `json:"allow_tag"`
			AllowUser  []string `json:"allow_user"`
			ExtraParty []int    `json:"extra_party"`
			ExtraTag   []int    `json:"extra_tag"`
			ExtraUser  []string `json:"extra_user"`
			Level      int      `json:"level"`
		} `json:"privilege"`
		RoundLogoURL string `json:"round_logo_url"`
		SharedFrom   struct {
			Corpid string `json:"corpid"`
		} `json:"shared_from"`
		SquareLogoURL string `json:"square_logo_url"`
	} `json:"agent"`
}

RespGetPermanentCodeService 获取企业永久授权码响应 文档:https://developer.work.weixin.qq.com/document/path/90603#获取企业永久授权码

type ClientError

type ClientError struct {
	// Code 错误码,0表示成功,非0表示调用失败。
	// 开发者需根据errcode是否为0判断是否调用成功(errcode意义请见全局错误码)。
	Code ErrCode
	// Msg 错误信息,调用失败会有相关的错误信息返回。
	// 仅作参考,后续可能会有变动,因此不可作为是否调用成功的判据。
	Msg string
}

ClientError 企业微信客户端 SDK 的响应错误

func (*ClientError) Error

func (e *ClientError) Error() string

type CommonResp

type CommonResp struct {
	ErrCode int64  `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

func (*CommonResp) IsOK

func (x *CommonResp) IsOK() bool

IsOK 响应体是否为一次成功请求的响应

实现依据: https://developer.work.weixin.qq.com/document/10013

> 企业微信所有接口,返回包里都有errcode、errmsg。(除部分旧接口只有在失败时才会返回errcode,但没什么影响,因为结构体中errcode默认值为0,即默认成功) > 开发者需根据errcode是否为0判断是否调用成功(errcode意义请见全局错误码)。 > 而errmsg仅作参考,后续可能会有变动,因此不可作为是否调用成功的判据。

func (*CommonResp) TryIntoErr

func (x *CommonResp) TryIntoErr() error

type Contact added in v1.1.3

type Contact struct {
	Type string `json:"type"`
	Mode string `json:"mode"`
}

type Date added in v1.1.3

type Date struct {
	Type string `json:"type"`
}

type DateValue added in v1.1.3

type DateValue struct {
	Type       string `json:"type"`        // 时间展示类型:day-日期;hour-日期+时间 ,和对应模板控件属性一致
	STimestamp string `json:"s_timestamp"` // 时间戳-字符串类型,在此填写日期/日期+时间控件的选择值,以此为准
}

type DcsAppSuiteTicket

type DcsAppSuiteTicket interface {
	Get(cacheKey string) string                          // 获取suite_ticket
	Set(cacheKey, suiteTicket string, ttl time.Duration) // 设置suite_ticket
}

分布式app_suite_ticket:获取和设置suite_ticket的值,自行实现该接口的具体逻辑,比如使用redis方案【企微服务器每十分钟推送一次suite_ticket】

type DcsToken

type DcsToken interface {
	Get(cacheKey string) TokenInfo                                     // 获取缓存
	Set(cacheKey string, tokenInfo TokenInfo, ttl time.Duration) error // 设置缓存,ttl:缓存生存时间
	Del(cacheKey string) error                                         // 删除缓存
	Lock(cacheKey string, ttl time.Duration) bool                      // 加锁,返回成功或失败
	Unlock(cacheKey string) error                                      // 释放锁
}

分布式access_token:获取和设置access_token的值,自行实现该接口的具体逻辑,比如使用redis方案

type DealerCorpInfo added in v1.2.2

type DealerCorpInfo struct {
	CorpName string `json:"corp_name"`
	Corpid   string `json:"corpid"`
}

RespGetPermanentCodeService 获取企业永久授权码响应 文档:https://developer.work.weixin.qq.com/document/path/90603#获取企业永久授权码

type DepartmentsValue added in v1.1.3

type DepartmentsValue struct {
	OpenapiId string `json:"openapi_id"` // 所选部门id
	Name      string `json:"name"`       // 所选部门名
}

type EditionInfo added in v1.2.9

type EditionInfo struct {
	Agent []EditionInfoAgent `json:"agent"`
}

RespGetPermanentCodeService 获取企业永久授权码响应 文档:https://developer.work.weixin.qq.com/document/path/90603#获取企业永久授权码

type EditionInfoAgent added in v1.2.9

type EditionInfoAgent struct {
	Agentid               int    `json:"agentid"`
	EditionId             string `json:"edition_id"`
	EditionName           string `json:"edition_name"`
	AppStatus             int    `json:"app_status"`
	UserLimit             int    `json:"user_limit"`
	ExpiredTime           int    `json:"expired_time"`
	IsVirtualVersion      bool   `json:"is_virtual_version"`
	IsSharedFromOtherCorp bool   `json:"is_shared_from_other_corp"`
}

RespGetPermanentCodeService 获取企业永久授权码响应 文档:https://developer.work.weixin.qq.com/document/path/90603#获取企业永久授权码

type ErrCode

type ErrCode = int64
const ErrCode2000002 ErrCode = 2000002

ErrCode2000002 CorpId参数无效 排查方法: 指定的CorpId不存在

const ErrCode2400001 ErrCode = 2400001

请求参数错误

const ErrCode2400003 ErrCode = 2400003

访问的资源不存在

const ErrCode2400004 ErrCode = 2400004

创建的资源已存在

const ErrCode2400005 ErrCode = 2400005

不允许访问该资源

const ErrCode2400006 ErrCode = 2400006

资源操作未授权

const ErrCode2400007 ErrCode = 2400007

请求数超过限制

const ErrCode2400008 ErrCode = 2400008

访问了超过范围的资源

const ErrCode301002 ErrCode = 301002

ErrCode301002 无权限操作指定的应用 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:301002) 无权限操作指定的应用。access_token来源需要有指定应用的权限。 比如说,[发消息接口](https://open.work.weixin.qq.com/api/doc#10167) 指定了参数 “agentid”: 14,但使用的 access_token 是通过应用agentid: 100032 生成的调用凭证,这种就会报该错误码。 access_token的权限查询,可在 [错误码查询工具](https://open.work.weixin.qq.com/devtool/query) 确认。

const ErrCode301005 ErrCode = 301005

ErrCode301005 不允许删除创建者 排查方法: 创建者不允许从通讯录中删除。如果需要删除该成员,需要先在WEB管理端转移创建者身份。

const ErrCode301007 ErrCode = 301007

ErrCode301007 企业不可用,可能已经被解散或者被禁封

const ErrCode301012 ErrCode = 301012

ErrCode301012 参数 position 不合法 排查方法: 长度不允许超过128个字符

const ErrCode301013 ErrCode = 301013

ErrCode301013 参数 telephone 不合法 排查方法: telephone必须由1-32位的纯数字或’-‘号组成。

const ErrCode301014 ErrCode = 301014

ErrCode301014 参数 english_name 不合法 排查方法: 参数如果有传递,不允许为空字符串,同时不能超过64字节,只能是由字母、数字、点(.)、减号(-)、空格或下划线(_)组成

const ErrCode301015 ErrCode = 301015

ErrCode301015 参数 mediaid 不合法 排查方法: 请检查 mediaid 来源,应该通过[上传临时素材](https://developer.work.weixin.qq.com/document/path/90313#10112)的图片类型获得mediaid

const ErrCode301016 ErrCode = 301016

ErrCode301016 上传语音文件不符合系统要求 排查方法: 语音文件的系统限制,参考[上传的媒体文件限制](https://developer.work.weixin.qq.com/document/path/90313#10112/上传的媒体文件限制)

const ErrCode301017 ErrCode = 301017

ErrCode301017 上传语音文件仅支持AMR格式 排查方法: 语音文件的系统限制,参考[上传的媒体文件限制](https://developer.work.weixin.qq.com/document/path/90313#10112/上传的媒体文件限制)

const ErrCode301019 ErrCode = 301019

文件MD5不匹配

const ErrCode301021 ErrCode = 301021

ErrCode301021 参数 userid 无效 排查方法: 至少有一个userid不存在于通讯录中

const ErrCode301022 ErrCode = 301022

ErrCode301022 获取打卡数据失败 排查方法: 系统失败,可重试处理

const ErrCode301023 ErrCode = 301023

ErrCode301023 useridlist非法或超过限额 排查方法: 列表数量不能为0且不超过100

const ErrCode301024 ErrCode = 301024

ErrCode301024 获取打卡记录时间间隔超限 排查方法: 保证开始时间大于0 且结束时间大于 0 且结束时间大于开始时间,且间隔少于一个月

const ErrCode301025 ErrCode = 301025

ErrCode301025 审批开放接口参数错误 排查方法: 请参考参数说明正确填写

const ErrCode301036 ErrCode = 301036

ErrCode301036 不允许更新该用户的userid 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:301036) 不允许更新该用户的userid。确认: 只有当userid由系统自动生成时,才被允许修改一次 比如,邀请关注时用户提交登记信息,审批通过后系统会自动分配userid,此时可修改userid

const ErrCode301039 ErrCode = 301039

ErrCode301039 请求参数错误,请检查输入参数 排查方法: -

const ErrCode301042 ErrCode = 301042

ErrCode301042 ip白名单限制,请求ip不在设置白名单范围 排查方法: -

const ErrCode301048 ErrCode = 301048

ErrCode301048 sdkfileid对应的文件不存在或已过期 排查方法: -

const ErrCode301052 ErrCode = 301052

ErrCode301052 会话存档服务已过期 排查方法: -

const ErrCode301053 ErrCode = 301053

ErrCode301053 会话存档服务未开启 排查方法: -

const ErrCode301058 ErrCode = 301058

ErrCode301058 拉取会话数据请求超过大小限制,可减少limit参数 排查方法: -

const ErrCode301059 ErrCode = 301059

ErrCode301059 非内部群,不提供数据 排查方法: -

const ErrCode301060 ErrCode = 301060

ErrCode301060 拉取同意情况请求量过大,请减少到100个参数以下 排查方法: -

const ErrCode301061 ErrCode = 301061

ErrCode301061 userid或者exteropenid用户不存在 排查方法: -

const ErrCode302003 ErrCode = 302003

ErrCode302003 批量导入任务的文件中userid有重复 排查方法: -

const ErrCode302004 ErrCode = 302004

ErrCode302004 组织架构不合法(1不是一棵树,2 多个一样的partyid,3 partyid空,4 partyid name 空,5 同一个父节点下有两个子节点 部门名字一样 可能是以上情况,请一一排查) 排查方法: -

const ErrCode302005 ErrCode = 302005

ErrCode302005 批量导入系统失败,请重新尝试导入 排查方法: -

const ErrCode302006 ErrCode = 302006

ErrCode302006 批量导入任务的文件中partyid有重复 排查方法: -

const ErrCode302007 ErrCode = 302007

ErrCode302007 批量导入任务的文件中,同一个部门下有两个子部门名字一样 排查方法: -

const ErrCode40001 ErrCode = 40001

ErrCode40001 不合法的secret参数 排查方法: secret在应用详情/通讯录管理助手可查看

const ErrCode400010 ErrCode = 400010

block_hint非法

const ErrCode400011 ErrCode = 400011

block_hint对应的拦截已过期

const ErrCode400012 ErrCode = 400012

不允许通过该block_hint解除拦截

const ErrCode400013 ErrCode = 400013

解拦截次数超过限制

const ErrCode40003 ErrCode = 40003

ErrCode40003 无效的UserID 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40003) 不合法的UserID。确认: 1)有效的UserID需要满足:长度1~64字符,由英文字母、数字、中划线、下划线以及点号构成。 2)除了创建用户,其余使用UserID的接口,还要保证UserID必须在通讯录中存在。

const ErrCode40004 ErrCode = 40004

ErrCode40004 不合法的媒体文件类型 排查方法: 不满足系统文件要求。参考:[上传的媒体文件限制](https://developer.work.weixin.qq.com/document/path/90313#10112)

const ErrCode40005 ErrCode = 40005

ErrCode40005 不合法的type参数 排查方法: 合法的type取值,参考:[上传临时素材](https://developer.work.weixin.qq.com/document/path/90313#10112)

const ErrCode40006 ErrCode = 40006

ErrCode40006 不合法的文件大小 排查方法: 系统文件要求,参考:[上传的媒体文件限制](https://developer.work.weixin.qq.com/document/path/90313#10112)

const ErrCode40007 ErrCode = 40007

ErrCode40007 不合法的media_id参数 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40007) 不合法的媒体文件。确认: 1)媒体文件ID的获取方式,是否存在。注:上传临时素材生成的medida_id,有效期是3天。 2)媒体文件类型应符合接口要求(比如发送图片消息,此时不能用音频文件的media_id)。

const ErrCode40008 ErrCode = 40008

ErrCode40008 不合法的msgtype参数 排查方法: 合法的msgtype取值,参考:[消息类型](https://developer.work.weixin.qq.com/document/path/90313#10167)

const ErrCode40009 ErrCode = 40009

ErrCode40009 上传图片大小不是有效值 排查方法: 图片大小的系统限制,参考[上传的媒体文件限制](https://developer.work.weixin.qq.com/document/path/90313#10112/上传的媒体文件限制)

const ErrCode40011 ErrCode = 40011

ErrCode40011 上传视频大小不是有效值 排查方法: 视频大小的系统限制,参考[上传的媒体文件限制](https://developer.work.weixin.qq.com/document/path/90313#10112/上传的媒体文件限制)

const ErrCode40013 ErrCode = 40013

ErrCode40013 不合法的CorpID 排查方法: 需确认CorpID是否填写正确,在 web管理端-设置 可查看

const ErrCode40014 ErrCode = 40014

ErrCode40014 不合法的access_token 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40014) access_token参数错误。确认: 1)access_token的获取方式 2)access_token是否已过期 可以重新获取一次access_token解决

const ErrCode40016 ErrCode = 40016

ErrCode40016 不合法的按钮个数 排查方法: 菜单按钮1-3个

const ErrCode40017 ErrCode = 40017

ErrCode40017 不合法的按钮类型 排查方法: 支持的类型,参考:[按钮类型](https://developer.work.weixin.qq.com/document/path/90313#10786)

const ErrCode40018 ErrCode = 40018

ErrCode40018 不合法的按钮名字长度 排查方法: 长度应不超过16个字节

const ErrCode40019 ErrCode = 40019

ErrCode40019 不合法的按钮KEY长度 排查方法: 长度应不超过128字节

const ErrCode40020 ErrCode = 40020

ErrCode40020 不合法的按钮URL长度 排查方法: 长度应不超过1024字节

const ErrCode40022 ErrCode = 40022

ErrCode40022 不合法的子菜单级数 排查方法: 只能包含一级菜单和二级菜单

const ErrCode40023 ErrCode = 40023

ErrCode40023 不合法的子菜单按钮个数 排查方法: 子菜单按钮1-5个

const ErrCode40024 ErrCode = 40024

ErrCode40024 不合法的子菜单按钮类型 排查方法: 支持的类型,参考:[按钮类型](https://developer.work.weixin.qq.com/document/path/90313#10786)

const ErrCode40025 ErrCode = 40025

ErrCode40025 不合法的子菜单按钮名字长度 排查方法: 支持的类型,参考:[按钮类型](https://developer.work.weixin.qq.com/document/path/90313#10786)

const ErrCode40026 ErrCode = 40026

ErrCode40026 不合法的子菜单按钮KEY长度 排查方法: -

const ErrCode40027 ErrCode = 40027

ErrCode40027 不合法的子菜单按钮URL长度 排查方法: 长度应不超过1024字节

const ErrCode40029 ErrCode = 40029

ErrCode40029 不合法的oauth_code 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40029) oauth_code参数错误。确认: 1)code只能消费一次,不能重复消费。比如说,是否存在多个服务器同时消费同一code情况。 2)code需要在有效期间消费(5分钟),过期会自动失效。

const ErrCode40031 ErrCode = 40031

ErrCode40031 不合法的UserID列表 排查方法: 指定的UserID列表,部分UserID不在通讯录中

const ErrCode40032 ErrCode = 40032

ErrCode40032 不合法的UserID列表长度 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40032) 不合法的UserID列表长度。确认: 1)[发消息接口](https://open.work.weixin.qq.com/api/doc#10167),最多指定1000人。 2)[批量删除成员接口](https://open.work.weixin.qq.com/api/doc#10060),最多指定200人。

const ErrCode40033 ErrCode = 40033

ErrCode40033 不合法的请求字符 排查方法: 不能包含\uxxxx格式的字符

const ErrCode40035 ErrCode = 40035

ErrCode40035 不合法的参数 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40035) 不合法的参数。确认: 1)userlist和partylist不能同时为空 2)userlist包含的成员个数不能大于1000 3)partylist包含的部门个数不能大于100 4)指定的userlist和partylist为数组格式,不是字符串格式。比如说, “userlist”:[ “user1”,”user2”],而不是 “userlist”: “user1|user2”

const ErrCode40036 ErrCode = 40036

ErrCode40036 不合法的模板id长度 排查方法: -

const ErrCode40037 ErrCode = 40037

ErrCode40037 无效的模板id 排查方法: -

const ErrCode40039 ErrCode = 40039

ErrCode40039 不合法的url长度 排查方法: url长度限制1024个字节

const ErrCode40050 ErrCode = 40050

ErrCode40050 chatid不存在 排查方法: 会话需要先创建后,才可修改会话详情或者发起聊天

const ErrCode40054 ErrCode = 40054

ErrCode40054 不合法的子菜单url域名 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40054 40055) 菜单设置URL不合法。确认: 1)链接需要带上协议头。以 http:// 或者 https:// 开头。比如:https://work.weixin.qq.com 2)微信支付的链接,必须以 weixin://wxpay/bizpayurl 开头

const ErrCode40055 ErrCode = 40055

ErrCode40055 不合法的菜单url域名 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40054 40055) 菜单设置URL不合法。确认: 1)链接需要带上协议头。以 http:// 或者 https:// 开头。比如:https://work.weixin.qq.com 2)微信支付的链接,必须以 weixin://wxpay/bizpayurl 开头

const ErrCode40056 ErrCode = 40056

ErrCode40056 不合法的agentid 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40056) agentid不合法。确认: 1)agentid为整型数字 2)在web管理端存在该应用

const ErrCode40057 ErrCode = 40057

ErrCode40057 不合法的callbackurl或者callbackurl验证失败

const ErrCode40058 ErrCode = 40058

ErrCode40058 不合法的参数 排查方法: 传递参数不符合系统要求,需要参照具体API接口说明

const ErrCode40059 ErrCode = 40059

ErrCode40059 不合法的上报地理位置标志位 排查方法: 开关标志位只能填 0 或者 1

const ErrCode40063 ErrCode = 40063

ErrCode40063 参数为空 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40063) 必填的参数缺少,需要参照具体API接口说明。同时确认: 1)Http请求方法,是否正确。比如说接口要求以Post方法,就不能使用Get方式 2)Http请求参数,是否正确。比如说,接口内容要求json结构体,就不能以url参数传递或者form-data方式。

const ErrCode40066 ErrCode = 40066

ErrCode40066 不合法的部门列表 排查方法: 部门列表为空,或者至少存在一个部门ID不存在于通讯录中

const ErrCode40068 ErrCode = 40068

ErrCode40068 不合法的标签ID 排查方法: 标签ID未指定,或者指定的标签ID不存在

const ErrCode40070 ErrCode = 40070

ErrCode40070 指定的标签范围结点全部无效 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40070) 指定的标签范围结点全部无效。确认: 1)指定的参数格式是否正确。比如,”userlist”:[ “user1”],而不是指定为 “userlist” : “user1”。 2)指定的成员或者部门,是否存在于通讯录中。

const ErrCode40071 ErrCode = 40071

ErrCode40071 不合法的标签名字 排查方法: 标签名字已经存在

const ErrCode40072 ErrCode = 40072

ErrCode40072 不合法的标签名字长度 排查方法: 不允许为空,最大长度限制为32个字(汉字或英文字母)

const ErrCode40073 ErrCode = 40073

ErrCode40073 不合法的openid 排查方法: openid不存在,需确认获取来源

const ErrCode40074 ErrCode = 40074

ErrCode40074 news消息不支持保密消息类型 排查方法: 图文消息支持保密类型需改用mpnews

const ErrCode40077 ErrCode = 40077

ErrCode40077 不合法的pre_auth_code参数 排查方法: 预授权码不存在,参考:[获取预授权码](https://developer.work.weixin.qq.com/document/path/90313#10975/获取预授权码)

const ErrCode40078 ErrCode = 40078

ErrCode40078 不合法的auth_code参数 排查方法: 需确认获取来源,并且只能消费一次

const ErrCode40080 ErrCode = 40080

ErrCode40080 不合法的suite_secret 排查方法: 套件secret可在第三方管理端套件详情查看

const ErrCode40082 ErrCode = 40082

ErrCode40082 不合法的suite_token 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40082) suite_token参数错误。确认: 1)suite_token的获取方式 2)suite_token是否已过期 可以重新获取一次suite_token解决

const ErrCode40083 ErrCode = 40083

ErrCode40083 不合法的suite_id 排查方法: suite_id不存在

const ErrCode40084 ErrCode = 40084

ErrCode40084 不合法的permanent_code参数 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40084) 不合法的永久授权码。确认: 1)是否填写有误 2)企业是否已取消授权该套件 3)永久授权码不能跨服务商使用

const ErrCode40085 ErrCode = 40085

ErrCode40085 不合法的的suite_ticket参数 排查方法: suite_ticket不存在或者已失效

const ErrCode40086 ErrCode = 40086

ErrCode40086 不合法的第三方应用appid 排查方法: 至少有一个不存在应用id

const ErrCode40088 ErrCode = 40088

ErrCode40088 jobid不存在 排查方法: 请检查 jobid 来源

const ErrCode40089 ErrCode = 40089

ErrCode40089 批量任务的结果已清理 排查方法: 系统仅保存最近5次批量任务的结果。可在通讯录查看实际导入情况

const ErrCode40091 ErrCode = 40091

ErrCode40091 secret不合法 排查方法: 可能用了别的企业的secret

const ErrCode40092 ErrCode = 40092

ErrCode40092 导入文件存在不合法的内容 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:40092) 导入文件存在不合法的内容。确认: 1)不允许上传空文件 2)文件内容缺少必填字段,比如:手机/邮箱,姓名,UserID或者部门。

const ErrCode40093 ErrCode = 40093

ErrCode40093 jsapi签名错误 排查方法: 请检查用于签名的jsapi_ticket是否是正确的,是否过期。可以通过获取相应jsapi_ticket接口获取当前的jsapi_ticket跟用于签名的jsapi_ticket比对是否一致,若jsapi_ticket还在有效期内,当前获取到的jsapi_ticket是一致的。若jsapi_ticket没问题,请检查用于签名的url参数是不是正确的, url(当前网页的URL, 不包含#及其后面部分)。

const ErrCode40094 ErrCode = 40094

ErrCode40094 不合法的URL 排查方法: 缺少主页URL参数,或者URL不合法(链接需要带上协议头,以 http:// 或者 https:// 开头)

const ErrCode40096 ErrCode = 40096

ErrCode40096 不合法的外部联系人userid 排查方法: -

const ErrCode40097 ErrCode = 40097

ErrCode40097 该成员尚未离职 排查方法: 离职成员外部联系人转移接口要求转出用户必须已经离职

const ErrCode40098 ErrCode = 40098

ErrCode40098 成员尚未实名认证 排查方法: 确认传入的userid是已经过实名认证成员的

const ErrCode40099 ErrCode = 40099

ErrCode40099 外部联系人的数量已达上限 排查方法: -

const ErrCode40100 ErrCode = 40100

ErrCode40100 此用户的外部联系人已经在转移流程中 排查方法: -

const ErrCode40102 ErrCode = 40102

ErrCode40102 域名或IP不可与应用市场上架应用重复 排查方法: -

const ErrCode40123 ErrCode = 40123

ErrCode40123 上传临时图片素材,图片格式非法 排查方法: 请确认上传的内容是否为合法的图片内容

const ErrCode40124 ErrCode = 40124

ErrCode40124 推广活动里的sn禁止绑定 排查方法: -

const ErrCode40125 ErrCode = 40125

ErrCode40125 无效的openuserid参数 排查方法: -

const ErrCode40126 ErrCode = 40126

ErrCode40126 企业标签个数达到上限,最多为3000个 排查方法: -

const ErrCode40127 ErrCode = 40127

ErrCode40127 不支持的uri schema 排查方法: 检查uri链接的schema是否符合参数要求

const ErrCode40128 ErrCode = 40128

ErrCode40128 客户转接过于频繁(90天内只允许转接一次,同一个客户最多只能转接两次) 排查方法: -

const ErrCode40129 ErrCode = 40129

ErrCode40129 当前客户正在转接中 排查方法: -

const ErrCode40130 ErrCode = 40130

ErrCode40130 原跟进人与接手人一样,不可继承 排查方法: -

const ErrCode40131 ErrCode = 40131

ErrCode40131 handover_userid 并不是外部联系人的跟进人 排查方法: -

const ErrCode41001 ErrCode = 41001

ErrCode41001 缺少access_token参数 排查方法: -

const ErrCode41002 ErrCode = 41002

ErrCode41002 缺少corpid参数 排查方法: -

const ErrCode41004 ErrCode = 41004

ErrCode41004 缺少secret参数 排查方法: -

const ErrCode41006 ErrCode = 41006

ErrCode41006 缺少media_id参数 排查方法: media_id为调用接口必填参数,请确认是否有传递

const ErrCode41008 ErrCode = 41008

ErrCode41008 缺少auth code参数 排查方法: -

const ErrCode41009 ErrCode = 41009

ErrCode41009 缺少userid参数 排查方法: -

const ErrCode41010 ErrCode = 41010

ErrCode41010 缺少url参数 排查方法: -

const ErrCode41011 ErrCode = 41011

ErrCode41011 缺少agentid参数 排查方法: -

const ErrCode41016 ErrCode = 41016

ErrCode41016 缺少title参数 排查方法: 发送图文消息,标题是必填参数。请确认参数是否有传递。

const ErrCode41017 ErrCode = 41017

ErrCode41017 缺少tagid参数 排查方法: -

const ErrCode41019 ErrCode = 41019

ErrCode41019 缺少 department 参数 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:41019) 缺少 department 参数。确认: 1)创建成员接口,成员所属部门是必填信息。 2)所属部门是数字数组格式,不是字符串。如:”department: [1, 2]

const ErrCode41021 ErrCode = 41021

ErrCode41021 缺少suite_id参数 排查方法: -

const ErrCode41022 ErrCode = 41022

ErrCode41022 缺少suite_access_token参数 排查方法: -

const ErrCode41023 ErrCode = 41023

ErrCode41023 缺少suite_ticket参数 排查方法: -

const ErrCode41024 ErrCode = 41024

ErrCode41024 缺少secret参数 排查方法: -

const ErrCode41025 ErrCode = 41025

ErrCode41025 缺少permanent_code参数 排查方法: -

const ErrCode41033 ErrCode = 41033

ErrCode41033 缺少 description 参数 排查方法: [发送文本卡片消息接口](https://developer.work.weixin.qq.com/document/path/90313#10167/文本卡片消息),description 是必填字段

const ErrCode41035 ErrCode = 41035

ErrCode41035 缺少外部联系人userid参数 排查方法: -

const ErrCode41036 ErrCode = 41036

ErrCode41036 不合法的企业对外简称 排查方法: 企业对外简称必须是认证过的,如果要改回默认简称,传空字符串把对外简称清除就可以了

const ErrCode41037 ErrCode = 41037

ErrCode41037 缺少「联系我」type参数 排查方法: -

const ErrCode41038 ErrCode = 41038

ErrCode41038 缺少「联系我」scene参数 排查方法: -

const ErrCode41039 ErrCode = 41039

ErrCode41039 无效的「联系我」type参数 排查方法: -

const ErrCode41040 ErrCode = 41040

ErrCode41040 无效的「联系我」scene参数 排查方法: -

const ErrCode41041 ErrCode = 41041

ErrCode41041 「联系我」使用人数超过限制 排查方法: 默认限制不超过100人(包括部门展开后的人数)

const ErrCode41042 ErrCode = 41042

ErrCode41042 无效的「联系我」style参数 排查方法: -

const ErrCode41043 ErrCode = 41043

ErrCode41043 缺少「联系我」config_id参数 排查方法: -

const ErrCode41044 ErrCode = 41044

ErrCode41044 无效的「联系我」config_id参数 排查方法: -

const ErrCode41045 ErrCode = 41045

ErrCode41045 API添加「联系我」达到数量上限 排查方法: -

const ErrCode41046 ErrCode = 41046

ErrCode41046 缺少企业群发消息id 排查方法: -

const ErrCode41047 ErrCode = 41047

ErrCode41047 无效的企业群发消息id 排查方法: -

const ErrCode41048 ErrCode = 41048

ErrCode41048 无可发送的客户 排查方法: -

const ErrCode41049 ErrCode = 41049

ErrCode41049 缺少欢迎语code参数 排查方法: -

const ErrCode41050 ErrCode = 41050

ErrCode41050 无效的欢迎语code 排查方法: 欢迎语code(welcome_code)具有时效性,须在添加好友后20秒内使用

const ErrCode41051 ErrCode = 41051

ErrCode41051 客户和服务人员已经开始聊天了 排查方法: 已经开始的聊天的客户不能发送欢迎语

const ErrCode41052 ErrCode = 41052

ErrCode41052 无效的发送时间 排查方法: -

const ErrCode41053 ErrCode = 41053

ErrCode41053 客户未同意聊天存档 排查方法: 须外部联系人同意服务须知后,成员才可发送欢迎语

const ErrCode41054 ErrCode = 41054

ErrCode41054 该用户尚未激活 排查方法: -

const ErrCode41055 ErrCode = 41055

ErrCode41055 群欢迎语模板数量达到上限 排查方法: -

const ErrCode41056 ErrCode = 41056

ErrCode41056 外部联系人id类型不正确 排查方法: -

const ErrCode41057 ErrCode = 41057

ErrCode41057 企业或服务商未绑定微信开发者账号 排查方法: -

const ErrCode41059 ErrCode = 41059

ErrCode41059 缺少moment_id参数 排查方法: -

const ErrCode41060 ErrCode = 41060

ErrCode41060 不合法的moment_id参数 排查方法: -

const ErrCode41061 ErrCode = 41061

ErrCode41061 不合法朋友圈发送成员userid,当前朋友圈并非此用户发表 排查方法: -

const ErrCode41062 ErrCode = 41062

ErrCode41062 企业创建的朋友圈尚未被成员userid发表 排查方法: -

const ErrCode41063 ErrCode = 41063

ErrCode41063 群发消息正在被派发中,请稍后再试 排查方法: [创建企业群发](https://developer.work.weixin.qq.com/document/path/90313#15836)后,立刻调用[获取企业的全部群发记录](https://developer.work.weixin.qq.com/document/path/90313#25429)的相关接口,将可能出现该错误

const ErrCode41064 ErrCode = 41064

ErrCode41064 附件大小超过限制 排查方法: -

const ErrCode41065 ErrCode = 41065

ErrCode41065 无效的附件类型 排查方法: -

const ErrCode41066 ErrCode = 41066

ErrCode41066 用户视频号名称错误 排查方法: -

const ErrCode41102 ErrCode = 41102

ErrCode41102 缺少菜单名 排查方法: -

const ErrCode42001 ErrCode = 42001

ErrCode42001 access_token已过期 排查方法: access_token有时效性,需要重新获取一次

const ErrCode42007 ErrCode = 42007

ErrCode42007 pre_auth_code已过期 排查方法: pre_auth_code有时效性,需要重新获取一次

const ErrCode42009 ErrCode = 42009

ErrCode42009 suite_access_token已过期 排查方法: suite_access_token有时效性,需要重新获取一次

const ErrCode42012 ErrCode = 42012

ErrCode42012 jsapi_ticket不可用,一般是没有正确调用接口来创建jsapi_ticket 排查方法: 如果是agentConfig使用,请特别注意是否是使用”[获取应用身份的ticket](https://developer.work.weixin.qq.com/document/path/90313#10029/获取应用的jsapi_ticket)“来获取jsapi_ticket

const ErrCode42013 ErrCode = 42013

ErrCode42013 小程序未登录或登录态已经过期 排查方法: 需要重新走登录流程

const ErrCode42014 ErrCode = 42014

ErrCode42014 任务卡片消息的task_id不合法 排查方法: -

const ErrCode42015 ErrCode = 42015

ErrCode42015 更新的消息的应用与发送消息的应用不匹配 排查方法: -

const ErrCode42016 ErrCode = 42016

ErrCode42016 更新的task_id不存在 排查方法: -

const ErrCode42017 ErrCode = 42017

ErrCode42017 按钮key值不存在 排查方法: -

const ErrCode42018 ErrCode = 42018

ErrCode42018 按钮key值不合法 排查方法: -

const ErrCode42019 ErrCode = 42019

ErrCode42019 缺少按钮key值不合法 排查方法: -

const ErrCode42020 ErrCode = 42020

ErrCode42020 缺少按钮名称 排查方法: -

const ErrCode42021 ErrCode = 42021

ErrCode42021 device_access_token 过期 排查方法: -

const ErrCode42022 ErrCode = 42022

ErrCode42022 code已经被使用过。只能使用一次 排查方法: -

const ErrCode43004 ErrCode = 43004

ErrCode43004 指定的userid未绑定微信或未关注微工作台(原企业号) 排查方法: 需要成员使用微信登录企业微信或者关注微工作台才能获取openid

const ErrCode43009 ErrCode = 43009

ErrCode43009 企业未验证主体 排查方法: -

const ErrCode43012 ErrCode = 43012

ErrCode43012 应用需配置回调url 排查方法: -

const ErrCode44001 ErrCode = 44001

ErrCode44001 多媒体文件为空 排查方法: 确认header和body的内容正确。

const ErrCode44004 ErrCode = 44004

ErrCode44004 文本消息content参数为空 排查方法: 发文本消息content为必填参数,且不能为空

const ErrCode45001 ErrCode = 45001

ErrCode45001 多媒体文件大小超过限制 排查方法: 图片不可超过5M;音频不可超过5M;文件不可超过20M

const ErrCode45002 ErrCode = 45002

ErrCode45002 消息内容大小超过限制 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:45002) 消息内容大小超过限制。确认: 1)文本消息类型:最长不超过2048个字节。 2)图文消息类型:最长不超过666k个字节

const ErrCode45004 ErrCode = 45004

ErrCode45004 应用description参数长度不符合系统限制 排查方法: 设置应用若带有description参数,则长度必须为4至120个字符

const ErrCode45007 ErrCode = 45007

ErrCode45007 语音播放时间超过限制 排查方法: 语音播放时长不能超过60秒

const ErrCode45008 ErrCode = 45008

ErrCode45008 图文消息的文章数量不符合系统限制 排查方法: 图文消息的文章数量不能超过8条

const ErrCode45009 ErrCode = 45009

ErrCode45009 接口调用超过限制 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:45009) 接口调用超过限制。 1) 具体频率策略,参考:[主动调用频率限制](https://open.work.weixin.qq.com/api/doc#10785) 2) 频率拦截时长一般与调用的限制时长相同,比如说是分钟级别的限制,则在中频率后的1分钟后自动解除。小时、天、以及月份,也是以此类推。 3) 我们对接口调用的频率限制是比较宽松的。对于接口中频率的调用,考虑以下优化: * 接口实现时,仅系统失败需要重试。其余错误码,应该排查下调用失败原因 * 发消息应该控制合理调用,对于单个成员来说,一天收到大量的推送,体验是不好的 4) 部分频率拦截,可自助解封,访问:[频率自助解封工具](https://open.work.weixin.qq.com/wwopen/devtool/checkCorpSpamBlock) 5) 发送应用消息的频率拦截,可用api接口查询各个应用消息发送统计,访问:[查询应用消息发送统计](https://developer.work.weixin.qq.com/document/path/92369)

const ErrCode45022 ErrCode = 45022

ErrCode45022 应用name参数长度不符合系统限制 排查方法: 设置应用若带有name参数,则不允许为空,且不超过32个字符

const ErrCode45024 ErrCode = 45024

ErrCode45024 帐号数量超过上限 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:45024) 帐号数量超过上限。请确认: 1)通讯录是否有无效或者无用的帐号,可以删除,让出额度 2)提高帐号上限,可以提交重新认证或者申请扩容

const ErrCode45026 ErrCode = 45026

ErrCode45026 触发删除用户数的保护 排查方法: 限制参考:[全量覆盖成员](https://developer.work.weixin.qq.com/document/path/90313#10138/全量覆盖成员)

const ErrCode45029 ErrCode = 45029

ErrCode45029 回包大小超过上限 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:45029) 回包大小超过上限。请确认: 1)/cgi-bin/user/list:由于通讯录组织架构庞大,建议按部门分别拉取,同时不要指定fetch_child=1。

const ErrCode45032 ErrCode = 45032

ErrCode45032 图文消息author参数长度超过限制 排查方法: 最长64个字节

const ErrCode45033 ErrCode = 45033

ErrCode45033 接口并发调用超过限制(某些接口是并发调用数不能超过5个) 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:45033) 接口并发调用超过限制。出现这种拦截限制,一般是开发者的程序有bug,导致对同一份资源有过高的并发且持续不断的请求,例如对一个media_id一直持续不断请求“获取临时素材”接口。

const ErrCode46003 ErrCode = 46003

ErrCode46003 菜单未设置 排查方法: 菜单需发布后才能获取到数据

const ErrCode46004 ErrCode = 46004

ErrCode46004 指定的用户不存在 排查方法: 需要确认指定的用户存在于通讯录中

const ErrCode48001 ErrCode = 48001

ErrCode48001 API功能未授权

const ErrCode48002 ErrCode = 48002

ErrCode48002 API接口无权限调用 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:48002) API接口无权限调用。请确认: 1)写通讯录接口,只能由通讯录同步助手的access_token来调用。同时需要保证通讯录同步功能是开启的。 2)通讯录同步助手的access_token,仅用于同步通讯录,不能用于发消息 3)设置应用可见范围,仅支持注册定制化安装情况,详情见:[设置授权应用可见范围](https://open.work.weixin.qq.com/api/doc#14936) 4)客户联系相关的接口,只能由系统应用“客户联系”,或配置到“可调用应用”列表中的自建应用的access_token来调用。 5) 小程序应用仅支持发送[小程序通知消息](https://developer.work.weixin.qq.com/document/path/90236#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E9%80%9A%E7%9F%A5%E6%B6%88%E6%81%AF),暂不支持文本、图片、语音、视频、图文等其他类型的消息。

const ErrCode48003 ErrCode = 48003

ErrCode48003 不合法的suite_id 排查方法: 确认suite_access_token由指定的suite_id生成

const ErrCode48004 ErrCode = 48004

ErrCode48004 授权关系无效 排查方法: 可能是无授权或授权已被取消

const ErrCode48005 ErrCode = 48005

ErrCode48005 API接口已废弃 排查方法: 接口已不再支持,建议改用新接口或者新方案

const ErrCode48006 ErrCode = 48006

ErrCode48006 接口权限被收回 排查方法: 由于企业长时间未使用应用,接口权限被收回,需企业管理员重新启用

const ErrCode49004 ErrCode = 49004

ErrCode49004 签名不匹配 排查方法: -

const ErrCode49008 ErrCode = 49008

ErrCode49008 群已经解散 排查方法: 群主已经解散群聊

const ErrCode50001 ErrCode = 50001

ErrCode50001 redirect_url未登记可信域名 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:50001) redirect_url未登记可信域名。请确认: 1)颁发code的场景在哪个应用点击的。消费code使用的access_token是否有该应用权限。(通过[查询access_token权限](https://open.work.weixin.qq.com/devtool/query)可确认) 2)secret的获取来源 * 来源于应用:url的域名,需设置到应用可信域名中。 * 来源于通讯录同步助手:仅可同步通讯录,不可用于发消息或者消费code * 来源于第三方套件授权:套件中至少有一个应用,设置了该url域名为可信域名 * 来源于管理组:管理组配置的应用列表,至少有一个应用设置了该url域名为可信域名 3)url填写的域名,必须与设置的可信域名 **完全匹配**(包括端口号)。比如:填可信域名填qq.com,访问url域名为www.qq.com,就不匹配;或者可信域名填www.qq.com,访问url域名为www.qq.com:8008,也不匹配。

const ErrCode50002 ErrCode = 50002

ErrCode50002 成员不在权限范围 排查方法: 请检查应用或管理组的权限范围

const ErrCode50003 ErrCode = 50003

ErrCode50003 应用已禁用 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:50003) 应用禁用之后,将无法再调用api,可在”管理端-应用管理”重新启用该应用。 <img src="https://p.qpic.cn/pic_wework/1283325914/090fad19ebf740ce78b1e49f2cc0f0f8d1791c3262b8e946/0" style="width:800px;"/>

const ErrCode50100 ErrCode = 50100

ErrCode50100 分页查询的游标无效 排查方法: -

const ErrCode6000 ErrCode = 6000

ErrCode6000 数据版本冲突 排查方法: 可能有多个调用端同时修改数据,稍后重试

const ErrCode600001 ErrCode = 600001

ErrCode600001 不合法的sn 排查方法: sn可能尚未进行登记

const ErrCode600002 ErrCode = 600002

ErrCode600002 设备已注册 排查方法: 可能设备已经建立过长连接

const ErrCode600003 ErrCode = 600003

ErrCode600003 不合法的硬件activecode 排查方法: -

const ErrCode600004 ErrCode = 600004

ErrCode600004 该硬件尚未授权任何企业 排查方法: -

const ErrCode600005 ErrCode = 600005

ErrCode600005 硬件Secret无效 排查方法: -

const ErrCode600007 ErrCode = 600007

ErrCode600007 缺少硬件sn 排查方法: -

const ErrCode600008 ErrCode = 600008

ErrCode600008 缺少nonce参数 排查方法: -

const ErrCode600009 ErrCode = 600009

ErrCode600009 缺少timestamp参数 排查方法: -

const ErrCode60001 ErrCode = 60001

ErrCode60001 部门长度不符合限制 排查方法: 部门名称不能为空且长度不能超过32个字

const ErrCode600010 ErrCode = 600010

ErrCode600010 缺少signature参数 排查方法: -

const ErrCode600011 ErrCode = 600011

ErrCode600011 签名校验失败 排查方法: -

const ErrCode600012 ErrCode = 600012

ErrCode600012 长连接已经注册过设备 排查方法: -

const ErrCode600013 ErrCode = 600013

ErrCode600013 缺少activecode参数 排查方法: -

const ErrCode600014 ErrCode = 600014

ErrCode600014 设备未网络注册 排查方法: -

const ErrCode600015 ErrCode = 600015

ErrCode600015 缺少secret参数 排查方法: -

const ErrCode600016 ErrCode = 600016

ErrCode600016 设备未激活 排查方法: -

const ErrCode600018 ErrCode = 600018

ErrCode600018 无效的起始结束时间 排查方法: -

const ErrCode600020 ErrCode = 600020

ErrCode600020 设备未登录 排查方法: -

const ErrCode600021 ErrCode = 600021

ErrCode600021 设备sn已存在 排查方法: -

const ErrCode600023 ErrCode = 600023

ErrCode600023 时间戳已失效 排查方法: -

const ErrCode600024 ErrCode = 600024

ErrCode600024 固件大小超过5M 排查方法: -

const ErrCode600025 ErrCode = 600025

ErrCode600025 固件名为空或者超过20字节 排查方法: -

const ErrCode600026 ErrCode = 600026

ErrCode600026 固件信息不存在 排查方法: -

const ErrCode600027 ErrCode = 600027

ErrCode600027 非法的固件参数 排查方法: -

const ErrCode600028 ErrCode = 600028

ErrCode600028 固件版本已存在 排查方法: -

const ErrCode600029 ErrCode = 600029

ErrCode600029 非法的固件版本 排查方法: -

const ErrCode60003 ErrCode = 60003

ErrCode60003 部门ID不存在 排查方法: 需要确认部门ID是否有带,并且存在通讯录中

const ErrCode600030 ErrCode = 600030

ErrCode600030 缺少固件版本参数 排查方法: -

const ErrCode600031 ErrCode = 600031

ErrCode600031 硬件固件不允许升级 排查方法: -

const ErrCode600032 ErrCode = 600032

ErrCode600032 无法解析硬件二维码 排查方法: -

const ErrCode600033 ErrCode = 600033

ErrCode600033 设备型号id冲突 排查方法: -

const ErrCode600034 ErrCode = 600034

ErrCode600034 指纹数据大小超过限制 排查方法: -

const ErrCode600035 ErrCode = 600035

ErrCode600035 人脸数据大小超过限制 排查方法: -

const ErrCode600036 ErrCode = 600036

ErrCode600036 设备sn冲突 排查方法: -

const ErrCode600037 ErrCode = 600037

ErrCode600037 缺失设备型号id 排查方法: -

const ErrCode600038 ErrCode = 600038

ErrCode600038 设备型号不存在 排查方法: -

const ErrCode600039 ErrCode = 600039

ErrCode600039 不支持的设备类型 排查方法: -

const ErrCode60004 ErrCode = 60004

ErrCode60004 父部门不存在 排查方法: 需要确认父亲部门ID是否有带,并且存在通讯录中

const ErrCode600040 ErrCode = 600040

ErrCode600040 打印任务id不存在 排查方法: -

const ErrCode600041 ErrCode = 600041

ErrCode600041 无效的offset或limit参数值 排查方法: -

const ErrCode600042 ErrCode = 600042

ErrCode600042 无效的设备型号id 排查方法: -

const ErrCode600043 ErrCode = 600043

ErrCode600043 门禁规则未设置 排查方法: -

const ErrCode600044 ErrCode = 600044

ErrCode600044 门禁规则不合法 排查方法: -

const ErrCode600045 ErrCode = 600045

ErrCode600045 设备已订阅企业信息 排查方法: -

const ErrCode600046 ErrCode = 600046

ErrCode600046 操作id和用户userid不匹配 排查方法: -

const ErrCode600047 ErrCode = 600047

ErrCode600047 secretno的status非法 排查方法: 请确认是否是使用统一初始secretno的设备,如果是无有正确执行换secretno的流程

const ErrCode600048 ErrCode = 600048

ErrCode600048 无效的指纹算法 排查方法: -

const ErrCode600049 ErrCode = 600049

ErrCode600049 无效的人脸识别算法 排查方法: -

const ErrCode60005 ErrCode = 60005

ErrCode60005 部门下存在成员 排查方法: 不允许删除有成员的部门

const ErrCode600050 ErrCode = 600050

ErrCode600050 无效的算法长度 排查方法: -

const ErrCode600051 ErrCode = 600051

ErrCode600051 设备过期 排查方法: -

const ErrCode600052 ErrCode = 600052

ErrCode600052 无效的文件分块 排查方法: -

const ErrCode600053 ErrCode = 600053

ErrCode600053 该链接已经激活 排查方法: -

const ErrCode600054 ErrCode = 600054

ErrCode600054 该链接已经订阅 排查方法: -

const ErrCode600055 ErrCode = 600055

ErrCode600055 无效的用户类型 排查方法: -

const ErrCode600056 ErrCode = 600056

ErrCode600056 无效的健康状态 排查方法: -

const ErrCode600057 ErrCode = 600057

ErrCode600057 缺少体温参数 排查方法: -

const ErrCode60006 ErrCode = 60006

ErrCode60006 部门下存在子部门 排查方法: 不允许删除有子部门的部门

const ErrCode60007 ErrCode = 60007

ErrCode60007 不允许删除根部门 排查方法: -

const ErrCode60008 ErrCode = 60008

ErrCode60008 部门已存在 排查方法: 部门ID或者部门名称已存在

const ErrCode60009 ErrCode = 60009

ErrCode60009 部门名称含有非法字符 排查方法: 不能含有 \:?*“<>| 等字符

const ErrCode60010 ErrCode = 60010

ErrCode60010 部门存在循环关系 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:60010) 部门存在循环关系。请确认: 1)创建部门和更新部门时,指定的parentid参数不能是 部门id 或者 子部门id

const ErrCode60011 ErrCode = 60011

ErrCode60011 指定的成员/部门/标签参数无权限【可能是企业成员安装了第三方应用,需修改为管理员授权安装】 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:60011) 指定的成员/部门/标签参数无权限。请确认: 1) 变更通讯录接口,需要有通讯录编辑权限。 * 普通应用的secret仅有只读权限,可使用通讯录同步助手的secret同步。 2) 其它接口,需要满足配置的通讯录范围。 * 成员:通讯录同步助手access_token可指定任意成员id;应用access_token仅能指定可见范围配置的成员,以及部门/标签包含的成员(递归展开) * 部门:通讯录同步助手access_token可指定任意部门id;应用access_token仅能指定可见范围配置的部门id(创建或移动部门,还需要具有父部门的管理权限),标签包括的部门id,以及上述部门的子部门id * 标签:通讯录同步助手access_token可指定超级管理组及通讯录同步助手创建的标签;应用access_token仅能由应用API创建的标签

const ErrCode60012 ErrCode = 60012

ErrCode60012 不允许删除默认应用 排查方法: 默认应用的id为0

const ErrCode60020 ErrCode = 60020

ErrCode60020 访问ip不在白名单之中 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:60020) 访问ip不在白名单之中。请确认: 1)请确认访问ip是否在服务商白名单IP列表。 登录 [服务商管理后台](https://open.work.weixin.qq.com/wwopen/login),在“服务商信息” - “基本信息” - “IP白名单”配置

const ErrCode60021 ErrCode = 60021

ErrCode60021 userid不在应用可见范围内 排查方法: -

const ErrCode60028 ErrCode = 60028

ErrCode60028 不允许修改第三方应用的主页 URL 排查方法: 第三方应用类型,不允许通过接口修改该应用的主页 URL

const ErrCode60102 ErrCode = 60102

ErrCode60102 UserID已存在 排查方法: -

const ErrCode60103 ErrCode = 60103

ErrCode60103 手机号码不合法 排查方法: 长度不超过32位,字符仅支持数字,加号和减号

const ErrCode60104 ErrCode = 60104

ErrCode60104 手机号码已存在 排查方法: 同一个企业内,成员的手机号不能重复。建议更换手机号,或者更新已有的手机记录。

const ErrCode60105 ErrCode = 60105

ErrCode60105 邮箱不合法 排查方法: 长度不超过64位,且为有效的email格式

const ErrCode60106 ErrCode = 60106

ErrCode60106 邮箱已存在 排查方法: 同一个企业内,成员的邮箱不能重复。建议更换邮箱,或者更新已有的邮箱记录。

const ErrCode60107 ErrCode = 60107

ErrCode60107 微信号不合法 排查方法: 微信号格式由字母、数字、”-“、”_“组成,长度为 3-20 字节,首字符必须是字母或”-“或”_“

const ErrCode60110 ErrCode = 60110

ErrCode60110 用户所属部门数量超过限制 排查方法: 用户同时归属部门不超过20个

const ErrCode60111 ErrCode = 60111

ErrCode60111 UserID不存在 排查方法: UserID参数为空,或者不存在通讯录中

const ErrCode60112 ErrCode = 60112

ErrCode60112 成员name参数不合法 排查方法: 不能为空,且不能超过64字符

const ErrCode60123 ErrCode = 60123

ErrCode60123 无效的部门id 排查方法: 部门不存在通讯录中

const ErrCode60124 ErrCode = 60124

ErrCode60124 无效的父部门id 排查方法: 父部门不存在通讯录中

const ErrCode60125 ErrCode = 60125

ErrCode60125 非法部门名字 排查方法: 不能为空,且不能超过64字节,且不能含有\:*?”<>|等字符

const ErrCode60127 ErrCode = 60127

ErrCode60127 缺少department参数 排查方法: -

const ErrCode60129 ErrCode = 60129

ErrCode60129 成员手机和邮箱都为空 排查方法: 成员手机和邮箱至少有个非空

const ErrCode60132 ErrCode = 60132

ErrCode60132 is_leader_in_dept和department的元素个数不一致 排查方法: -

const ErrCode60136 ErrCode = 60136

ErrCode60136 记录不存在 排查方法: -

const ErrCode60137 ErrCode = 60137

ErrCode60137 家长手机号重复 排查方法: 同一个家校通讯录中,家长的手机号不能重复。建议更换手机号,或者更新已有的手机记录。

const ErrCode60203 ErrCode = 60203

ErrCode60203 不合法的模版ID 排查方法: -

const ErrCode60204 ErrCode = 60204

ErrCode60204 模版状态不可用 排查方法: -

const ErrCode60205 ErrCode = 60205

ErrCode60205 模版关键词不匹配 排查方法: -

const ErrCode60206 ErrCode = 60206

ErrCode60206 该种类型的消息只支持第三方独立应用使用 排查方法: -

const ErrCode60207 ErrCode = 60207

ErrCode60207 第三方独立应用只允许发送模板消息 排查方法: -

const ErrCode60208 ErrCode = 60208

ErrCode60208 第三方独立应用不支持指定@all,不支持参数toparty和totag 排查方法: -

const ErrCode60209 ErrCode = 60209

ErrCode60209 缺少操作者vid 排查方法: -

const ErrCode60210 ErrCode = 60210

ErrCode60210 选择成员列表为空 排查方法: -

const ErrCode60211 ErrCode = 60211

ErrCode60211 SelectedTicket为空 排查方法: -

const ErrCode60214 ErrCode = 60214

ErrCode60214 仅支持第三方应用调用 排查方法: -

const ErrCode60215 ErrCode = 60215

ErrCode60215 传入SelectedTicket数量超过最大限制(10个) 排查方法: -

const ErrCode60217 ErrCode = 60217

ErrCode60217 当前操作者无权限,操作者需要授权或者在可见范围内 排查方法: -

const ErrCode60218 ErrCode = 60218

ErrCode60218 仅支持成员授权模式的应用可调用 排查方法: -

const ErrCode60219 ErrCode = 60219

ErrCode60219 消费SelectedTicket和创建SelectedTicket的应用appid不匹配 排查方法: -

const ErrCode60220 ErrCode = 60220

ErrCode60220 缺少corpappid 排查方法: -

const ErrCode60221 ErrCode = 60221

ErrCode60221 open_userid对应的服务商不是当前服务商 排查方法: -

const ErrCode60222 ErrCode = 60222

ErrCode60222 非法SelectedTicket 排查方法: -

const ErrCode60223 ErrCode = 60223

ErrCode60223 非法BundleId 排查方法: -

const ErrCode60224 ErrCode = 60224

ErrCode60224 非法PackageName 排查方法: -

const ErrCode60225 ErrCode = 60225

ErrCode60225 当前操作者并非SelectedTicket相关人,不能创建群聊 排查方法: -

const ErrCode60226 ErrCode = 60226

ErrCode60226 选人数量超过最大限制(2000) 排查方法: -

const ErrCode60227 ErrCode = 60227

ErrCode60227 缺少ServiceCorpid 排查方法: -

const ErrCode60251 ErrCode = 60251

缺少openkfid

const ErrCode60252 ErrCode = 60252

非法的openkfid

const ErrCode60253 ErrCode = 60253

客服不在接待人员列表中

const ErrCode60257 ErrCode = 60257

设置直属上级数量超过最大数量限制(5个)

const ErrCode610001 ErrCode = 610001

ErrCode610001 永久二维码超过每个员工5000的限制 排查方法: -

const ErrCode610003 ErrCode = 610003

ErrCode610003 scene参数不合法 排查方法: 有效的scene长度为1~64字符,由英文字母、数字、中划线、下划线以及点号构成

const ErrCode610004 ErrCode = 610004

ErrCode610004 userid不在客户联系配置的使用范围内 排查方法: 请在管理端后台 客户联系->配置->配置使用范围配置该用户

const ErrCode610014 ErrCode = 610014

ErrCode610014 无效的unionid 排查方法: -

const ErrCode610015 ErrCode = 610015

ErrCode610015 小程序对应的开放平台账号未认证 排查方法: -

const ErrCode610016 ErrCode = 610016

ErrCode610016 企业未认证 排查方法: -

const ErrCode610017 ErrCode = 610017

ErrCode610017 小程序和企业主体不一致 排查方法: -

const ErrCode640001 ErrCode = 640001

ErrCode640001 微盘不存在当前空间 排查方法: 判断spaceid是否填错

const ErrCode640002 ErrCode = 640002

ErrCode640002 文件不存在 排查方法: 判断fileid是否填错

const ErrCode640003 ErrCode = 640003

ErrCode640003 文件已删除 排查方法: 判断fileid对应的文件是否已经被删除

const ErrCode640004 ErrCode = 640004

ErrCode640004 无权限访问 排查方法: 判断当前用户是否有访问

const ErrCode640005 ErrCode = 640005

ErrCode640005 成员不在空间内 排查方法: 判断当前成员是否在空间内

const ErrCode640006 ErrCode = 640006

ErrCode640006 超出当前成员拥有的容量 排查方法: 判断当前用户的个人容量是否超出了限制

const ErrCode640007 ErrCode = 640007

ErrCode640007 超出微盘的容量 排查方法: 在管理端查看微盘的容量是否要满了

const ErrCode640008 ErrCode = 640008

ErrCode640008 没有空间权限 排查方法: 判断当前userid是否有空间权限

const ErrCode640009 ErrCode = 640009

ErrCode640009 非法文件名 排查方法: 判断file_name字段是否为空

const ErrCode640010 ErrCode = 640010

ErrCode640010 超出空间的最大成员数 排查方法: 判断当前空间的成员数是否超过了管理端设置的空间最大成员数

const ErrCode640011 ErrCode = 640011

ErrCode640011 json格式不匹配 排查方法: 判断是否的json格式是否有误

const ErrCode640012 ErrCode = 640012

ErrCode640012 非法的userid 排查方法: 判断userid字段是否设置错误

const ErrCode640013 ErrCode = 640013

ErrCode640013 非法的departmentid 排查方法: 判断departmentid字段是否设置错误

const ErrCode640014 ErrCode = 640014

ErrCode640014 空间没有有效的管理员 排查方法: 判断当前空间是否没有有效的管理员

const ErrCode640015 ErrCode = 640015

ErrCode640015 不支持设置预览权限 排查方法: 文件预览权限只有VIP用户才能设置

const ErrCode640016 ErrCode = 640016

ErrCode640016 不支持设置文件水印 排查方法: 文件水印只有VIP用户才能设置

const ErrCode640017 ErrCode = 640017

ErrCode640017 微盘管理端未开通API 权限 排查方法: 在微盘管理端进行打开

const ErrCode640018 ErrCode = 640018

ErrCode640018 微盘管理端未设置编辑权限 排查方法: 在微盘管理端进行打开编辑权限

const ErrCode640019 ErrCode = 640019

ErrCode640019 API 调用次数超出限制 排查方法: 免费版:1000次/企业/月; 付费版:100,000次/企业/月

const ErrCode640020 ErrCode = 640020

ErrCode640020 非法的权限类型 排查方法: 普通文件:可下载、仅预览; 微文档:可编辑、仅浏览

const ErrCode640021 ErrCode = 640021

ErrCode640021 非法的fatherid 排查方法: fatherid应该为:文件所在的目录fileid, 在根目录时为fileid(判断当前字段是否为空)

const ErrCode640022 ErrCode = 640022

ErrCode640022 非法的文件内容的base64 排查方法: 文件内容base64,判断本字段是否为空

const ErrCode640023 ErrCode = 640023

ErrCode640023 非法的权限范围 排查方法: auth_scope应该为三个中的其中一个:1:指定人 2:企业内 3:企业外

const ErrCode640024 ErrCode = 640024

ErrCode640024 非法的fileid 排查方法: 判断fileid字段是否为空

const ErrCode640025 ErrCode = 640025

ErrCode640025 非法的space_name 排查方法: 判断space_name字段是否空

const ErrCode640026 ErrCode = 640026

ErrCode640026 非法的spaceid 排查方法: 判断spaceid字段是否空

const ErrCode640027 ErrCode = 640027

ErrCode640027 参数错误 排查方法: 判断输入的参数是否有误

const ErrCode640028 ErrCode = 640028

ErrCode640028 空间设置了关闭成员邀请链接 排查方法: 查看空间的安全设置的成员邀请链接按钮是否处于关闭状态

const ErrCode640029 ErrCode = 640029

ErrCode640029 只支持下载普通文件,不支持下载文件夹等其他非文件实体类型 排查方法: 检查fileid对应的文件是否为普通文件

const ErrCode65000 ErrCode = 65000

ErrCode65000 学校已经迁移 排查方法: -

const ErrCode65001 ErrCode = 65001

ErrCode65001 无效的关注模式 排查方法: -

const ErrCode65002 ErrCode = 65002

ErrCode65002 导入家长信息数量过多 排查方法: 批量导入家长每次最多1000个

const ErrCode65003 ErrCode = 65003

ErrCode65003 学校尚未迁移 排查方法: -

const ErrCode65004 ErrCode = 65004

ErrCode65004 组织架构不存在 排查方法: -

const ErrCode65005 ErrCode = 65005

ErrCode65005 无效的同步模式 排查方法: -

const ErrCode65006 ErrCode = 65006

ErrCode65006 无效的管理员类型 排查方法: -

const ErrCode65007 ErrCode = 65007

ErrCode65007 无效的家校部门类型 排查方法: -

const ErrCode65008 ErrCode = 65008

ErrCode65008 无效的入学年份 排查方法: -

const ErrCode65009 ErrCode = 65009

ErrCode65009 无效的标准年级类型 排查方法: -

const ErrCode65010 ErrCode = 65010

ErrCode65010 此userid并不是学生 排查方法: -

const ErrCode65011 ErrCode = 65011

ErrCode65011 家长userid数量超过限制 排查方法: 每次最多批量处理100个家长

const ErrCode65012 ErrCode = 65012

ErrCode65012 学生userid数量超过限制 排查方法: 每次最多批量处理10个学生

const ErrCode65013 ErrCode = 65013

ErrCode65013 学生已有家长 排查方法: -

const ErrCode65014 ErrCode = 65014

ErrCode65014 非学校企业 排查方法: -

const ErrCode65015 ErrCode = 65015

ErrCode65015 父部门类型不匹配 排查方法: 添加学校部门,需满足层级关机,班级需要以年级为父部门

const ErrCode65018 ErrCode = 65018

ErrCode65018 家长人数达到上限 排查方法: 未验证的学校\企业最多可添加2000名家长,验证过的学校\企业最多可添加20000名家长

const ErrCode660001 ErrCode = 660001

ErrCode660001 无效的商户号 排查方法: 请检查商户号是否正确

const ErrCode660002 ErrCode = 660002

ErrCode660002 无效的企业收款人id 排查方法: 请检查payee_userid是否正确

const ErrCode660003 ErrCode = 660003

ErrCode660003 userid不在应用的可见范围 排查方法: -

const ErrCode660004 ErrCode = 660004

ErrCode660004 partyid不在应用的可见范围 排查方法: -

const ErrCode660005 ErrCode = 660005

ErrCode660005 tagid不在应用的可见范围 排查方法: -

const ErrCode660006 ErrCode = 660006

ErrCode660006 找不到该商户号 排查方法: -

const ErrCode660007 ErrCode = 660007

ErrCode660007 申请已经存在 排查方法: 不需要重复申请

const ErrCode660008 ErrCode = 660008

ErrCode660008 商户号已经绑定 排查方法: 不需要重新提交申请

const ErrCode660009 ErrCode = 660009

ErrCode660009 商户号主体和商户主体不一致 排查方法: -

const ErrCode660010 ErrCode = 660010

ErrCode660010 超过商户号绑定数量限制 排查方法: -

const ErrCode660011 ErrCode = 660011

ErrCode660011 商户号未绑定 排查方法: -

const ErrCode670001 ErrCode = 670001

ErrCode670001 应用不在共享范围 排查方法: -

const ErrCode701001 ErrCode = 701001

不是license基础帐号

const ErrCode72023 ErrCode = 72023

ErrCode72023 发票已被其他公众号锁定 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:72023) 一般为发票已进入后续报销流程,报销企业公众号/企业微信/App锁定了发票。

const ErrCode72024 ErrCode = 72024

ErrCode72024 发票状态错误 排查方法: reimburse_status状态错误,参考:[更新发票状态](https://developer.work.weixin.qq.com/document/path/90313#11633)

const ErrCode72037 ErrCode = 72037

ErrCode72037 存在发票不属于该用户 排查方法: 只能批量更新该openid的发票,参考:[批量更新发票状态](https://developer.work.weixin.qq.com/document/path/90313#11634)

const ErrCode80001 ErrCode = 80001

ErrCode80001 可信域名不正确,或者无ICP备案 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:80001) 可信域名不正确,未校验域名所有权归属或者可信域名没有ICP备案。请确认: 1)可信域名,只支持全域名匹配,无法通过配置父域来让所有子域都成为可信域名。 2)可信域名,不支持IP地址、端口号及短链域名。 3)如果确认域名已经通过ICP备案,但依然提示这个错误,请尝试重新设置。

const ErrCode81001 ErrCode = 81001

ErrCode81001 部门下的结点数超过限制(3W) 排查方法: -

const ErrCode81002 ErrCode = 81002

ErrCode81002 部门最多15层 排查方法: -

const ErrCode81003 ErrCode = 81003

ErrCode81003 标签下节点个数超过30000个 排查方法: -

const ErrCode81011 ErrCode = 81011

ErrCode81011 无权限操作标签 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:81011) 无权限操作标签。请确认: 1)除了通讯录同步助手和通讯录应用,其他应用和管理组都只能操作自己创建的标签。 2)通讯录同步助手或者通讯录应用,除了能管理自己的标签,还能操作超级管理组创建的标签。

const ErrCode81012 ErrCode = 81012

ErrCode81012 缺失可见范围 排查方法: 请求没有填写UserID、部门ID、标签ID

const ErrCode81013 ErrCode = 81013

ErrCode81013 UserID、部门ID、标签ID全部非法或无权限 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:81013) UserID、部门ID、标签ID全部非法或无权限。一般有以下两种原因: 1)成员、部门或标签已被删除,此种情况需要调整调用接口的接收人参数。 2)成员、部门或标签被移出应用的可见范围,可在管理端将接收人添加到应用的可见范围内。 <img src="https://p.qpic.cn/pic_wework/1283325914/4e48eb5ea14e98977a1687c6cceab0d61ad57eea9af062f0/0" style="width:800px;"/>

const ErrCode81014 ErrCode = 81014

ErrCode81014 标签添加成员,单次添加user或party过多 排查方法: -

const ErrCode81015 ErrCode = 81015

ErrCode81015 邮箱域名需要跟企业邮箱域名一致 排查方法: -

const ErrCode81016 ErrCode = 81016

ErrCode81016 logined_userid字段缺失 排查方法: -

const ErrCode81017 ErrCode = 81017

ErrCode81017 请求个数超过限制 排查方法: -

const ErrCode81018 ErrCode = 81018

ErrCode81018 该服务商可获取名字数量配额不足 排查方法: -

const ErrCode81019 ErrCode = 81019

ErrCode81019 items数组成员缺少id字段 排查方法: -

const ErrCode81020 ErrCode = 81020

ErrCode81020 items数组成员缺少type字段 排查方法: -

const ErrCode81021 ErrCode = 81021

ErrCode81021 items数组成员的type字段不合法 排查方法: -

const ErrCode82001 ErrCode = 82001

ErrCode82001 指定的成员/部门/标签全部为空 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:82001) 指定的成员/部门/标签全部为空。请确认: 参数是否有传递,且至少有一个参数非空。

const ErrCode82002 ErrCode = 82002

ErrCode82002 不合法的PartyID列表长度 排查方法: 发消息,单次不能超过100个部门

const ErrCode82003 ErrCode = 82003

ErrCode82003 不合法的TagID列表长度 排查方法: 发消息,单次不能超过100个标签

const ErrCode82004 ErrCode = 82004

ErrCode82004 不合法的消息内容 排查方法: 消息内容中可能存在使客户端crash的内容

const ErrCode84014 ErrCode = 84014

ErrCode84014 成员票据过期 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:84014) 成员票据过期。确认: 1)user_ticket 有时效性,有效时长由expires_in指定。参考接口:[根据code获取成员信息](https://open.work.weixin.qq.com/api/doc#10028/根据code获取成员信息) 2)若需再次获取用户详情,需要用户重新点击链接后,根据新的code获取新的user_ticket

const ErrCode84015 ErrCode = 84015

ErrCode84015 成员票据无效 排查方法: 确认user_ticket参数来源是否正确。参考接口:[根据code获取成员信息](https://developer.work.weixin.qq.com/document/path/90313#10028/根据code获取成员信息)

const ErrCode84019 ErrCode = 84019

ErrCode84019 缺少templateid参数 排查方法: -

const ErrCode84020 ErrCode = 84020

ErrCode84020 templateid不存在 排查方法: 确认参数是否有带,并且已创建

const ErrCode84021 ErrCode = 84021

ErrCode84021 缺少register_code参数 排查方法: -

const ErrCode84022 ErrCode = 84022

ErrCode84022 无效的register_code参数 排查方法: -

const ErrCode84023 ErrCode = 84023

ErrCode84023 不允许调用设置通讯录同步完成接口 排查方法: -

const ErrCode84024 ErrCode = 84024

ErrCode84024 无注册信息 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:84024) 无注册信息。可能是以下两种情况: 1)注册流程未完成。 2)注册成功已超过24小时。

const ErrCode84025 ErrCode = 84025

ErrCode84025 不符合的state参数 排查方法: 必须是[a-zA-Z0-9]的参数值,长度不可超过128个字节

const ErrCode84052 ErrCode = 84052

ErrCode84052 缺少caller参数 排查方法: -

const ErrCode84053 ErrCode = 84053

ErrCode84053 缺少callee参数 排查方法: -

const ErrCode84054 ErrCode = 84054

ErrCode84054 缺少auth_corpid参数 排查方法: -

const ErrCode84055 ErrCode = 84055

ErrCode84055 超过拨打公费电话频率 排查方法: 同一个客服5秒内只能调用api拨打一次公费电话

const ErrCode84056 ErrCode = 84056

ErrCode84056 被拨打用户安装应用时未授权拨打公费电话权限 排查方法: -

const ErrCode84057 ErrCode = 84057

ErrCode84057 公费电话余额不足 排查方法: -

const ErrCode84058 ErrCode = 84058

ErrCode84058 caller 呼叫号码不支持 排查方法: -

const ErrCode84059 ErrCode = 84059

ErrCode84059 号码非法 排查方法: -

const ErrCode84060 ErrCode = 84060

ErrCode84060 callee 呼叫号码不支持 排查方法: -

const ErrCode84061 ErrCode = 84061

ErrCode84061 不存在外部联系人的关系 排查方法: -

const ErrCode84062 ErrCode = 84062

ErrCode84062 未开启公费电话应用 排查方法: -

const ErrCode84063 ErrCode = 84063

ErrCode84063 caller不存在 排查方法: -

const ErrCode84064 ErrCode = 84064

ErrCode84064 callee不存在 排查方法: -

const ErrCode84065 ErrCode = 84065

ErrCode84065 caller跟callee电话号码一致 排查方法: 不允许自己拨打给自己

const ErrCode84066 ErrCode = 84066

ErrCode84066 服务商拨打次数超过限制 排查方法: 单个企业管理员,在一天(以上午10:00为起始时间)内,对应单个服务商,只能被呼叫【4】次。

const ErrCode84067 ErrCode = 84067

ErrCode84067 管理员收到的服务商公费电话个数超过限制 排查方法: 单个企业管理员,在一天(以上午10:00为起始时间)内,一共只能被【3】个服务商成功呼叫。

const ErrCode84069 ErrCode = 84069

ErrCode84069 拨打方被限制拨打公费电话 排查方法: -

const ErrCode84070 ErrCode = 84070

ErrCode84070 不支持的电话号码 排查方法: 拨打方或者被拨打方电话号码不支持

const ErrCode84071 ErrCode = 84071

ErrCode84071 不合法的外部联系人授权码 排查方法: 非法或者已经消费过

const ErrCode84072 ErrCode = 84072

ErrCode84072 应用未配置客服 排查方法: -

const ErrCode84073 ErrCode = 84073

ErrCode84073 客服userid不在应用配置的客服列表中 排查方法: -

const ErrCode84074 ErrCode = 84074

ErrCode84074 没有外部联系人权限 排查方法: -

const ErrCode84075 ErrCode = 84075

ErrCode84075 不合法或过期的authcode 排查方法: -

const ErrCode84076 ErrCode = 84076

ErrCode84076 缺失authcode 排查方法: -

const ErrCode84077 ErrCode = 84077

ErrCode84077 订单价格过高,无法受理 排查方法: -

const ErrCode84078 ErrCode = 84078

ErrCode84078 购买人数不正确 排查方法: -

const ErrCode84079 ErrCode = 84079

ErrCode84079 价格策略不存在 排查方法: -

const ErrCode84080 ErrCode = 84080

ErrCode84080 订单不存在 排查方法: -

const ErrCode84081 ErrCode = 84081

ErrCode84081 存在未支付订单 排查方法: -

const ErrCode84082 ErrCode = 84082

ErrCode84082 存在申请退款中的订单 排查方法: -

const ErrCode84083 ErrCode = 84083

ErrCode84083 非服务人员 排查方法: -

const ErrCode84084 ErrCode = 84084

ErrCode84084 非跟进用户 排查方法: -

const ErrCode84085 ErrCode = 84085

ErrCode84085 应用已下架 排查方法: -

const ErrCode84086 ErrCode = 84086

ErrCode84086 订单人数超过可购买最大人数 排查方法: -

const ErrCode84087 ErrCode = 84087

ErrCode84087 打开订单支付前禁止关闭订单 排查方法: -

const ErrCode84088 ErrCode = 84088

ErrCode84088 禁止关闭已支付的订单 排查方法: -

const ErrCode84089 ErrCode = 84089

ErrCode84089 订单已支付 排查方法: -

const ErrCode84090 ErrCode = 84090

ErrCode84090 缺失user_ticket 排查方法: -

const ErrCode84091 ErrCode = 84091

ErrCode84091 订单价格不可低于下限 排查方法: -

const ErrCode84092 ErrCode = 84092

ErrCode84092 无法发起代下单操作 排查方法: -

const ErrCode84093 ErrCode = 84093

ErrCode84093 代理关系已占用,无法代下单 排查方法: -

const ErrCode84094 ErrCode = 84094

ErrCode84094 该应用未配置代理分润规则,请先联系应用服务商处理 排查方法: -

const ErrCode84095 ErrCode = 84095

ErrCode84095 免费试用版,无法扩容 排查方法: -

const ErrCode84096 ErrCode = 84096

ErrCode84096 免费试用版,无法续期 排查方法: -

const ErrCode84097 ErrCode = 84097

ErrCode84097 当前企业有未处理订单 排查方法: -

const ErrCode84098 ErrCode = 84098

ErrCode84098 固定总量,无法扩容 排查方法: -

const ErrCode84099 ErrCode = 84099

ErrCode84099 非购买状态,无法扩容 排查方法: -

const ErrCode84100 ErrCode = 84100

ErrCode84100 未购买过此应用,无法续期 排查方法: -

const ErrCode84101 ErrCode = 84101

ErrCode84101 企业已试用付费版本,无法全新购买 排查方法: -

const ErrCode84102 ErrCode = 84102

ErrCode84102 企业当前应用状态已过期,无法扩容 排查方法: -

const ErrCode84103 ErrCode = 84103

ErrCode84103 仅可修改未支付订单 排查方法: -

const ErrCode84104 ErrCode = 84104

ErrCode84104 订单已支付,无法修改 排查方法: -

const ErrCode84105 ErrCode = 84105

ErrCode84105 订单已被取消,无法修改 排查方法: -

const ErrCode84106 ErrCode = 84106

ErrCode84106 企业含有该应用的待支付订单,无法代下单 排查方法: -

const ErrCode84107 ErrCode = 84107

ErrCode84107 企业含有该应用的退款中订单,无法代下单 排查方法: -

const ErrCode84108 ErrCode = 84108

ErrCode84108 企业含有该应用的待生效订单,无法代下单 排查方法: -

const ErrCode84109 ErrCode = 84109

ErrCode84109 订单定价不能未0 排查方法: -

const ErrCode84110 ErrCode = 84110

ErrCode84110 新安装应用不在试用状态,无法升级为付费版 排查方法: -

const ErrCode84111 ErrCode = 84111

ErrCode84111 无足够可用优惠券 排查方法: -

const ErrCode84112 ErrCode = 84112

ErrCode84112 无法关闭未支付订单 排查方法: -

const ErrCode84113 ErrCode = 84113

ErrCode84113 无付费信息 排查方法: -

const ErrCode84114 ErrCode = 84114

ErrCode84114 虚拟版本不支持下单 排查方法: -

const ErrCode84115 ErrCode = 84115

ErrCode84115 虚拟版本不支持扩容 排查方法: -

const ErrCode84116 ErrCode = 84116

ErrCode84116 虚拟版本不支持续期 排查方法: -

const ErrCode84117 ErrCode = 84117

ErrCode84117 在虚拟正式版期内不能扩容 排查方法: -

const ErrCode84118 ErrCode = 84118

ErrCode84118 虚拟正式版期内不能变更版本 排查方法: -

const ErrCode84119 ErrCode = 84119

ErrCode84119 当前企业未报备,无法进行代下单 排查方法: -

const ErrCode84120 ErrCode = 84120

ErrCode84120 当前应用版本已删除 排查方法: -

const ErrCode84121 ErrCode = 84121

ErrCode84121 应用版本已删除,无法扩容 排查方法: -

const ErrCode84122 ErrCode = 84122

ErrCode84122 应用版本已删除,无法续期 排查方法: -

const ErrCode84123 ErrCode = 84123

ErrCode84123 非虚拟版本,无法升级 排查方法: -

const ErrCode84124 ErrCode = 84124

ErrCode84124 非行业方案订单,不能添加部分应用版本的订单 排查方法: -

const ErrCode84125 ErrCode = 84125

ErrCode84125 购买人数不能少于最少购买人数 排查方法: -

const ErrCode84126 ErrCode = 84126

ErrCode84126 购买人数不能多于最大购买人数 排查方法: -

const ErrCode84127 ErrCode = 84127

ErrCode84127 无应用管理权限 排查方法: -

const ErrCode84128 ErrCode = 84128

ErrCode84128 无该行业方案下全部应用的管理权限 排查方法: -

const ErrCode84129 ErrCode = 84129

ErrCode84129 付费策略已被删除,无法下单 排查方法: -

const ErrCode84130 ErrCode = 84130

ErrCode84130 订单生效时间不合法 排查方法: -

const ErrCode84200 ErrCode = 84200

ErrCode84200 文件转译解析错误 排查方法: 只支持utf8文件转译,可能是不支持的文件类型或者格式

const ErrCode844001 ErrCode = 844001

ErrCode844001 非法的output_file_format 排查方法: 判断输出文件格式是否正确

const ErrCode845001 ErrCode = 845001

openid账号类型不是公众号或小程序

const ErrCode845002 ErrCode = 845002

openid认证主体和企业认证主体不一致

const ErrCode845003 ErrCode = 845003

unionid认证主体和企业认证主体不一致

const ErrCode85002 ErrCode = 85002

ErrCode85002 包含不合法的词语 排查方法: -

const ErrCode85004 ErrCode = 85004

ErrCode85004 每企业每个月设置的可信域名不可超过20个 排查方法: -

const ErrCode85005 ErrCode = 85005

ErrCode85005 可信域名未通过所有权校验 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:85005) 域名未通过所有权校验,仅oauth2生效,jssdk功能将受限,请根据调用者身份按以下不同方式完成校验: 1)若调用者是企业应用,请登录企业微信管理端,进入应用详情,按照指引完成域名的所有权校验。 2)若调用者是第三方服务,请登录企业微信服务管理端,进入第三方应用详情,按照指引完成域名的所有权校验。

const ErrCode86001 ErrCode = 86001

ErrCode86001 参数 chatid 不合法 排查方法: -

const ErrCode86003 ErrCode = 86003

ErrCode86003 参数 chatid 不存在 排查方法: -

const ErrCode86004 ErrCode = 86004

ErrCode86004 参数 群名不合法 排查方法: -

const ErrCode86005 ErrCode = 86005

ErrCode86005 参数 群主不合法 排查方法: -

const ErrCode86006 ErrCode = 86006

ErrCode86006 群成员数过多或过少 排查方法: -

const ErrCode86007 ErrCode = 86007

ErrCode86007 不合法的群成员 排查方法: -

const ErrCode86008 ErrCode = 86008

ErrCode86008 非法操作非自己创建的群 排查方法: -

const ErrCode86101 ErrCode = 86101

ErrCode86101 仅群主才有操作权限 排查方法: -

const ErrCode86201 ErrCode = 86201

ErrCode86201 参数 需要chatid 排查方法: -

const ErrCode86202 ErrCode = 86202

ErrCode86202 参数 需要群名 排查方法: -

const ErrCode86203 ErrCode = 86203

ErrCode86203 参数 需要群主 排查方法: -

const ErrCode86204 ErrCode = 86204

ErrCode86204 参数 需要群成员 排查方法: -

const ErrCode86205 ErrCode = 86205

ErrCode86205 参数 字符串chatid过长 排查方法: -

const ErrCode86206 ErrCode = 86206

ErrCode86206 参数 数字chatid过大 排查方法: -

const ErrCode86207 ErrCode = 86207

ErrCode86207 群主不在群成员列表 排查方法: -

const ErrCode86214 ErrCode = 86214

ErrCode86214 群发类型不合法 排查方法: -

const ErrCode86215 ErrCode = 86215

ErrCode86215 会话ID已经存在 排查方法: -

const ErrCode86216 ErrCode = 86216

ErrCode86216 存在非法会话成员ID 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:86216) 存在非法会话成员ID。确认: 1)添加会话成员时,指定的成员ID不存在通讯录 2)删除会话成员时,指定的成员ID不存在于会话中

const ErrCode86217 ErrCode = 86217

ErrCode86217 会话发送者不在会话成员列表中 排查方法: 会话的发送者,必须是会话的成员列表之一

const ErrCode86220 ErrCode = 86220

ErrCode86220 指定的会话参数不合法 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:86220) 指定的会话参数不合法。请确认: 1)参数 type 只能指定 single/group 2)参数 msgtype 只能指定 text/image/file/voice/link

const ErrCode86224 ErrCode = 86224

ErrCode86224 不是受限群,不允许使用该接口 排查方法: -

const ErrCode8844002 ErrCode = 844002

最近安装应用时间已超过7天,不再允许拨打公费电话联系管理员

const ErrCode90001 ErrCode = 90001

ErrCode90001 未认证摇一摇周边 排查方法: -

const ErrCode90002 ErrCode = 90002

ErrCode90002 缺少摇一摇周边ticket参数 排查方法: -

const ErrCode90003 ErrCode = 90003

ErrCode90003 摇一摇周边ticket参数不合法 排查方法: -

const ErrCode90100 ErrCode = 90100

ErrCode90100 非法的对外属性类型 排查方法: -

const ErrCode90101 ErrCode = 90101

ErrCode90101 对外属性:文本类型长度不合法 排查方法: 文本长度不可超过12个UTF8字符

const ErrCode90102 ErrCode = 90102

ErrCode90102 对外属性:网页类型标题长度不合法 排查方法: 标题长度不可超过12个UTF8字符

const ErrCode90103 ErrCode = 90103

ErrCode90103 对外属性:网页url不合法 排查方法: -

const ErrCode90104 ErrCode = 90104

ErrCode90104 对外属性:小程序类型标题长度不合法 排查方法: 标题长度不可超过12个UTF8字符

const ErrCode90105 ErrCode = 90105

ErrCode90105 对外属性:小程序类型pagepath不合法 排查方法: -

const ErrCode90106 ErrCode = 90106

ErrCode90106 对外属性:请求参数不合法 排查方法: -

const ErrCode90200 ErrCode = 90200

ErrCode90200 缺少小程序appid参数 排查方法: -

const ErrCode90201 ErrCode = 90201

ErrCode90201 小程序通知的content_item个数超过限制 排查方法: item个数不能超过10个

const ErrCode90202 ErrCode = 90202

ErrCode90202 小程序通知中的key长度不合法 排查方法: 不能为空或超过10个汉字

const ErrCode90203 ErrCode = 90203

ErrCode90203 小程序通知中的value长度不合法 排查方法: 不能为空或超过30个汉字

const ErrCode90204 ErrCode = 90204

ErrCode90204 小程序通知中的page参数不合法 排查方法: -

const ErrCode90206 ErrCode = 90206

ErrCode90206 小程序未关联到企业中 排查方法: -

const ErrCode90207 ErrCode = 90207

ErrCode90207 不合法的小程序appid 排查方法: -

const ErrCode90208 ErrCode = 90208

ErrCode90208 小程序appid不匹配 排查方法: -

const ErrCode90300 ErrCode = 90300

ErrCode90300 orderid 不合法 排查方法: -

const ErrCode90302 ErrCode = 90302

ErrCode90302 付费应用已过期 排查方法: -

const ErrCode90303 ErrCode = 90303

ErrCode90303 付费应用超过最大使用人数 排查方法: -

const ErrCode90304 ErrCode = 90304

ErrCode90304 订单中心服务异常,请稍后重试 排查方法: -

const ErrCode90305 ErrCode = 90305

ErrCode90305 参数错误,errmsg中有提示具体哪个参数有问题 排查方法: -

const ErrCode90306 ErrCode = 90306

ErrCode90306 商户设置不合法,详情请见errmsg 排查方法: -

const ErrCode90307 ErrCode = 90307

ErrCode90307 登录态过期 排查方法: -

const ErrCode90308 ErrCode = 90308

ErrCode90308 在开启IP鉴权的前提下,识别为无效的请求IP 排查方法: -

const ErrCode90309 ErrCode = 90309

ErrCode90309 订单已经存在,请勿重复下单 排查方法: -

const ErrCode90310 ErrCode = 90310

ErrCode90310 找不到订单 排查方法: -

const ErrCode90311 ErrCode = 90311

ErrCode90311 关单失败, 可能原因:该单并没被拉起支付页面; 已经关单;已经支付;渠道失败;单处于保护状态;等等 排查方法: -

const ErrCode90312 ErrCode = 90312

ErrCode90312 退款请求失败, 详情请看errmsg 排查方法: -

const ErrCode90313 ErrCode = 90313

ErrCode90313 退款调用频率限制,超过规定的阈值 排查方法: -

const ErrCode90314 ErrCode = 90314

ErrCode90314 订单状态错误,可能未支付,或者当前状态操作受限 排查方法: -

const ErrCode90315 ErrCode = 90315

ErrCode90315 退款请求失败,主键冲突,请核实退款refund_id是否已使用 排查方法: -

const ErrCode90316 ErrCode = 90316

ErrCode90316 退款原因编号不对 排查方法: -

const ErrCode90317 ErrCode = 90317

ErrCode90317 尚未注册成为供应商 排查方法: -

const ErrCode90318 ErrCode = 90318

ErrCode90318 参数nonce_str 为空或者重复,判定为重放攻击 排查方法: -

const ErrCode90319 ErrCode = 90319

ErrCode90319 时间戳为空或者与系统时间间隔太大 排查方法: -

const ErrCode90320 ErrCode = 90320

ErrCode90320 订单token无效 排查方法: -

const ErrCode90321 ErrCode = 90321

ErrCode90321 订单token已过有效时间 排查方法: -

const ErrCode90322 ErrCode = 90322

ErrCode90322 旧套件(包含多个应用的套件)不支持支付系统 排查方法: -

const ErrCode90323 ErrCode = 90323

ErrCode90323 单价超过限额 排查方法: -

const ErrCode90324 ErrCode = 90324

ErrCode90324 商品数量超过限额 排查方法: -

const ErrCode90325 ErrCode = 90325

ErrCode90325 预支单已经存在 排查方法: -

const ErrCode90326 ErrCode = 90326

ErrCode90326 预支单单号非法 排查方法: -

const ErrCode90327 ErrCode = 90327

ErrCode90327 该预支单已经结算下单 排查方法: -

const ErrCode90328 ErrCode = 90328

ErrCode90328 结算下单失败,详情请看errmsg 排查方法: -

const ErrCode90329 ErrCode = 90329

ErrCode90329 该订单号已经被预支单占用 排查方法: -

const ErrCode90330 ErrCode = 90330

ErrCode90330 创建供应商失败 排查方法: -

const ErrCode90331 ErrCode = 90331

ErrCode90331 更新供应商失败 排查方法: -

const ErrCode90332 ErrCode = 90332

ErrCode90332 还没签署合同 排查方法: -

const ErrCode90333 ErrCode = 90333

ErrCode90333 创建合同失败 排查方法: -

const ErrCode90338 ErrCode = 90338

ErrCode90338 已经过了可退款期限 排查方法: -

const ErrCode90339 ErrCode = 90339

ErrCode90339 供应商主体名包含非法字符 排查方法: -

const ErrCode90340 ErrCode = 90340

ErrCode90340 创建客户失败,可能信息真实性校验失败 排查方法: -

const ErrCode90341 ErrCode = 90341

ErrCode90341 退款金额大于付款金额 排查方法: -

const ErrCode90342 ErrCode = 90342

ErrCode90342 退款金额超过账户余额 排查方法: -

const ErrCode90343 ErrCode = 90343

ErrCode90343 退款单号已经存在 排查方法: -

const ErrCode90344 ErrCode = 90344

ErrCode90344 指定的付款渠道无效 排查方法: -

const ErrCode90345 ErrCode = 90345

ErrCode90345 超过5w人民币不可指定微信支付渠道 排查方法: -

const ErrCode90346 ErrCode = 90346

ErrCode90346 同一单的退款次数超过限制 排查方法: -

const ErrCode90347 ErrCode = 90347

ErrCode90347 退款金额不可为0 排查方法: -

const ErrCode90348 ErrCode = 90348

ErrCode90348 管理端没配置支付密钥 排查方法: -

const ErrCode90349 ErrCode = 90349

ErrCode90349 记录数量太大 排查方法: -

const ErrCode90350 ErrCode = 90350

ErrCode90350 银行信息真实性校验失败 排查方法: -

const ErrCode90351 ErrCode = 90351

ErrCode90351 应用状态异常 排查方法: -

const ErrCode90352 ErrCode = 90352

ErrCode90352 延迟试用期天数超过限制 排查方法: -

const ErrCode90353 ErrCode = 90353

ErrCode90353 预支单列表不可为空 排查方法: -

const ErrCode90354 ErrCode = 90354

ErrCode90354 预支单列表数量超过限制 排查方法: -

const ErrCode90355 ErrCode = 90355

ErrCode90355 关联有退款预支单,不可删除 排查方法: -

const ErrCode90356 ErrCode = 90356

ErrCode90356 不能0金额下单 排查方法: -

const ErrCode90357 ErrCode = 90357

ErrCode90357 代下单必须指定支付渠道 排查方法: -

const ErrCode90358 ErrCode = 90358

ErrCode90358 预支单或代下单,不支持部分退款 排查方法: -

const ErrCode90359 ErrCode = 90359

ErrCode90359 预支单与下单者企业不匹配 排查方法: -

const ErrCode90381 ErrCode = 90381

ErrCode90381 参数 refunded_credit_orderid 不合法 排查方法: -

const ErrCode90456 ErrCode = 90456

ErrCode90456 必须指定组织者 排查方法: -

const ErrCode90457 ErrCode = 90457

ErrCode90457 日历ID异常 排查方法: -

const ErrCode90458 ErrCode = 90458

ErrCode90458 日历ID列表不能为空 排查方法: -

const ErrCode90459 ErrCode = 90459

ErrCode90459 日历已删除 排查方法: -

const ErrCode90460 ErrCode = 90460

ErrCode90460 日程已删除 排查方法: -

const ErrCode90461 ErrCode = 90461

ErrCode90461 日程ID异常 排查方法: -

const ErrCode90462 ErrCode = 90462

ErrCode90462 日程ID列表不能为空 排查方法: -

const ErrCode90463 ErrCode = 90463

ErrCode90463 不能变更组织者 排查方法: -

const ErrCode90464 ErrCode = 90464

ErrCode90464 参与者数量超过限制 排查方法: -

const ErrCode90465 ErrCode = 90465

ErrCode90465 不支持的重复类型 排查方法: -

const ErrCode90466 ErrCode = 90466

ErrCode90466 不能操作别的应用创建的日历/日程 排查方法: -

const ErrCode90467 ErrCode = 90467

ErrCode90467 星期参数异常 排查方法: -

const ErrCode90468 ErrCode = 90468

ErrCode90468 不能变更组织者 排查方法: -

const ErrCode90469 ErrCode = 90469

ErrCode90469 每页大小超过限制 排查方法: -

const ErrCode90470 ErrCode = 90470

ErrCode90470 页数异常 排查方法: -

const ErrCode90471 ErrCode = 90471

ErrCode90471 提醒时间异常 排查方法: -

const ErrCode90472 ErrCode = 90472

ErrCode90472 没有日历/日程操作权限 排查方法: -

const ErrCode90473 ErrCode = 90473

ErrCode90473 颜色参数异常 排查方法: -

const ErrCode90474 ErrCode = 90474

ErrCode90474 组织者不能与参与者重叠 排查方法: -

const ErrCode90475 ErrCode = 90475

ErrCode90475 不是组织者的日历 排查方法: -

const ErrCode90479 ErrCode = 90479

ErrCode90479 不允许操作用户创建的日程 排查方法: -

const ErrCode90500 ErrCode = 90500

ErrCode90500 群主并未离职 排查方法: -

const ErrCode90501 ErrCode = 90501

ErrCode90501 该群不是客户群 排查方法: -

const ErrCode90502 ErrCode = 90502

ErrCode90502 群主已经离职 排查方法: -

const ErrCode90503 ErrCode = 90503

ErrCode90503 满人 & 99个微信成员,没办法踢,要客户端确认 排查方法: -

const ErrCode90504 ErrCode = 90504

ErrCode90504 群主没变 排查方法: -

const ErrCode90507 ErrCode = 90507

ErrCode90507 离职群正在继承处理中 排查方法: -

const ErrCode90508 ErrCode = 90508

ErrCode90508 离职群已经继承 排查方法: -

const ErrCode91040 ErrCode = 91040

ErrCode91040 获取ticket的类型无效 排查方法: [查看帮助](https://developer.work.weixin.qq.com/document/path/90313#10649/错误码:91040) 获取ticket的类型无效。jsapi ticket可以通过以下几种获取: 1)[获取jsapi_ticket](https://open.work.weixin.qq.com/api/doc#10029/获取jsapi_ticket)。这里参数只需要传access_token,不需要带其余的参数,比如type=jsapi 2)[获取电子发票ticket](https://open.work.weixin.qq.com/api/doc#10029/获取电子发票ticket)。需要同时指定access_token及type,同时type=wx_card是固定的。

const ErrCode92000 ErrCode = 92000

ErrCode92000 成员不在应用可见范围之内 排查方法: -

const ErrCode92001 ErrCode = 92001

ErrCode92001 应用没有敏感信息权限 排查方法: -

const ErrCode92002 ErrCode = 92002

ErrCode92002 不允许跨企业调用 排查方法: -

const ErrCode92006 ErrCode = 92006

ErrCode92006 该直播已经开始或取消 排查方法: -

const ErrCode92007 ErrCode = 92007

ErrCode92007 该直播回放不能被删除 排查方法: -

const ErrCode92008 ErrCode = 92008

ErrCode92008 当前应用没权限操作这个直播 排查方法: -

const ErrCode93000 ErrCode = 93000

ErrCode93000 机器人webhookurl不合法或者机器人已经被移除出群 排查方法: -

const ErrCode93004 ErrCode = 93004

ErrCode93004 机器人被停用 排查方法: -

const ErrCode93008 ErrCode = 93008

ErrCode93008 不在群里 排查方法: -

const ErrCode94000 ErrCode = 94000

ErrCode94000 应用未开启工作台自定义模式 排查方法: 请在管理端后台应用详情里面开启自定义工作台模式

const ErrCode94001 ErrCode = 94001

ErrCode94001 不合法的type类型 排查方法: -

const ErrCode94002 ErrCode = 94002

ErrCode94002 缺少keydata字段 排查方法: -

const ErrCode94003 ErrCode = 94003

ErrCode94003 keydata的items列表长度超出限制 排查方法: -

const ErrCode94005 ErrCode = 94005

ErrCode94005 缺少list字段 排查方法: -

const ErrCode94006 ErrCode = 94006

ErrCode94006 list的items列表长度超出限制 排查方法: -

const ErrCode94007 ErrCode = 94007

ErrCode94007 缺少webview字段 排查方法: -

const ErrCode94008 ErrCode = 94008

ErrCode94008 应用未设置自定义工作台模版类型 排查方法: -

const ErrCodeServiceUnavailable ErrCode = -1

ErrCodeServiceUnavailable 系统繁忙 排查方法: 服务器暂不可用,建议稍候重试。建议重试次数不超过3次。

const ErrCodeSuccess ErrCode = 0

ErrCodeSuccess 请求成功 排查方法: 接口调用成功

const ErrCodeSystemDefined ErrCode = -999

非企微ErrCode,自定义的系统错误码,可在自己的项目中使用

type FilesValue added in v1.1.3

type FilesValue struct {
	FileId string `json:"file_id"` // 文件id,该id为临时素材上传接口返回的的media_id,注:提单后将作为单据内容转换为长期文件存储;目前一个审批申请单,全局仅支持上传6个附件,否则将失败。
}

type GetAuthCorpFromDBFunc

type GetAuthCorpFromDBFunc func(corpId, appSuiteId string) (AuthCorp, error)

需初始化的参数

type GetJsSdkSignResp added in v1.0.13

type GetJsSdkSignResp struct {
	CorpId    string `json:"corp_id"`
	Noncestr  string `json:"noncestr"`
	Timestamp int64  `json:"timestamp"`
	Signature string `json:"signature"`
	AgentId   int64  `json:"agent_id,omitempty"`
}

type GetThirdOauthUrlReq

type GetThirdOauthUrlReq struct {
	RedirectUri string `json:"redirect_uri"` // 授权回调跳转地址
	Scope       string `json:"scope"`        // 应用授权作用域
	State       string `json:"state"`        // 重定向后会带上state参数,企业可以填写a-zA-Z0-9的参数值,长度不可超过128个字节
}

type GroupchatOwnerFilter

type GroupchatOwnerFilter struct {
	// UseridList 用户ID列表。最多100个
	UseridList []string `json:"userid_list"`
}

ReqListGroupchat 获取客户群列表请求 文档:https://developer.work.weixin.qq.com/document/path/93414#获取客户群列表

type JsAPITicketAgentConfigReq

type JsAPITicketAgentConfigReq struct{}

type JsAPITicketReq

type JsAPITicketReq struct{}

type JsAPITicketResp

type JsAPITicketResp struct {
	CommonResp

	Ticket        string `json:"ticket"`
	ExpiresInSecs int64  `json:"expires_in"`
}

type Logger

type Logger interface {
	Info(args ...interface{})
	Infof(template string, args ...interface{})
	Error(args ...interface{})
	Errorf(template string, args ...interface{})
}

日志输出接口

type Media

type Media struct {
	// contains filtered or unexported fields
}

欲上传的素材

func NewMediaFromBuffer

func NewMediaFromBuffer(filename string, buf []byte) (*Media, error)

NewMediaFromBuffer 从内存创建一个欲上传的素材对象

func NewMediaFromFile

func NewMediaFromFile(f *os.File) (*Media, error)

NewMediaFromFile 从操作系统级文件创建一个欲上传的素材对象

type MembersValue added in v1.1.3

type MembersValue struct {
	Userid string `json:"userid"` // 所选成员的userid
	Name   string `json:"name"`   // 成员名
}

type Options

type Options struct {
	DcsToken                     DcsToken              // 选传参数,如果不传这个参数,则只会把 token 存在内存中,这会导致每次重启服务都要重新获取 token 和多个服务需发起多次 token 请求的问题。
	DcsAppSuiteTicket            DcsAppSuiteTicket     // 选传参数,如果不传这个参数,则只会把 ticket 存在内存中,这会导致每次重启服务都要重新获取 ticket 和多个服务需发起多次 ticket 请求的问题。
	GetThirdAppAuthCorpFunc      GetAuthCorpFromDBFunc // 第三方应用必传参数,用于获取企业数据,如从数据库中取数
	GetCustomizedAppAuthCorpFunc GetAuthCorpFromDBFunc // 自建应用代开发必传参数,用于获取企业数据,如从数据库中取数
	Logger                       Logger                // 选传参数,不传则默认将日志直接输出在终端
}

需初始化的参数

type OwnerFilterP

type OwnerFilterP struct {
	// UseridList 群主ID列表。最多100个,必填
	UseridList []string `json:"userid_list"`
}

type PaytoolBuyInfoList added in v1.3.1

type PaytoolBuyInfoList struct {
	Suiteid        string               `json:"suiteid"`
	Appid          int                  `json:"appid,omitempty"`
	EditionId      string               `json:"edition_id,omitempty"`
	DurationDays   int                  `json:"duration_days,omitempty"`
	TakeEffectDate string               `json:"take_effect_date,omitempty"`
	UserCount      int                  `json:"user_count,omitempty"`
	DiscountInfo   *PaytoolDiscountInfo `json:"discount_info,omitempty"`
}

type PaytoolCustomizedApp added in v1.3.1

type PaytoolCustomizedApp struct {
	OrderType   int                  `json:"order_type"`
	BuyInfoList []PaytoolBuyInfoList `json:"buy_info_list"`
}

type PaytoolDiscountInfo added in v1.3.1

type PaytoolDiscountInfo struct {
	DiscountType    int    `json:"discount_type"`
	DiscountAmount  int    `json:"discount_amount,omitempty"`
	DiscountRatio   int    `json:"discount_ratio,omitempty"`
	DiscountRemarks string `json:"discount_remarks"`
}

type PaytoolProductList added in v1.3.1

type PaytoolProductList struct {
	ThirdApp      *PaytoolThirdApp      `json:"third_app,omitempty"`
	CustomizedApp *PaytoolCustomizedApp `json:"customized_app,omitempty"`
	PromotionCase *PaytoolPromotionCase `json:"promotion_case,omitempty"`
}

type PaytoolPromotionCase added in v1.3.1

type PaytoolPromotionCase struct {
	OrderType            int                  `json:"order_type"`
	CaseId               string               `json:"case_id"`
	PromotionEditionName string               `json:"promotion_edition_name"`
	DurationDays         int                  `json:"duration_days,omitempty"`
	TakeEffectDate       string               `json:"take_effect_date,omitempty"`
	BuyInfoList          []PaytoolBuyInfoList `json:"buy_info_list"`
}

type PaytoolThirdApp added in v1.3.1

type PaytoolThirdApp struct {
	OrderType   int                  `json:"order_type"`
	BuyInfoList []PaytoolBuyInfoList `json:"buy_info_list"`
}

type Property added in v1.1.3

type Property struct {
	Control string `json:"control"` // 控件类型:Text-文本;Textarea-多行文本;Number-数字;Money-金额;Date-日期/日期+时间;Selector-单选/多选;Contact-成员/部门;Tips-说明文字;File-附件;Table-明细;Attendance-假勤控件;Vacation-请假控件
	Id      string `json:"id"`      // 控件id
	Title   []struct {
		Text string `json:"text"`
		Lang string `json:"lang"`
	} `json:"title"`
	Placeholder []struct {
		Text string `json:"text"`
		Lang string `json:"lang"`
	} `json:"placeholder"`
	Require int `json:"require"`
	UnPrint int `json:"un_print"`
}

RespGetTemplateDetail 获取审批模板详情 文档:https://developer.work.weixin.qq.com/document/path/92631#获取审批模板详情

type ReqActiveAccountLicense

type ReqActiveAccountLicense struct {
	// ActiveCode 帐号激活码,必填
	ActiveCode string `json:"active_code"`
	// Corpid 待绑定激活的成员所属企业corpid,只支持加密的corpid,必填
	Corpid string `json:"corpid"`
	// Userid 待绑定激活的企业成员userid 。只支持加密的userid,必填
	Userid string `json:"userid"`
}

ReqActiveAccountLicense 激活帐号请求 文档:https://developer.work.weixin.qq.com/document/path/95553#激活帐号

type ReqAddContactWayExternalcontact

type ReqAddContactWayExternalcontact struct {
	// ChatExpiresIn 临时会话有效期,以秒为单位。该参数仅在is_temp为true时有效,默认为添加好友后24小时,最多为14天
	ChatExpiresIn int                      `json:"chat_expires_in"`
	Conclusions   AddContactWayConclusions `json:"conclusions"` // 结束语,会话结束时自动发送给客户,可参考“<a href="#15645/结束语定义">结束语定义</a>”,仅在is_temp为true时有效
	// ExpiresIn 临时会话二维码有效期,以秒为单位。该参数仅在is_temp为true时有效,默认7天,最多为14天
	ExpiresIn int `json:"expires_in"`
	// IsTemp 是否临时会话模式,true表示使用临时会话模式,默认为false
	IsTemp bool `json:"is_temp"`
	// Party 使用该联系方式的部门id列表,只在type为2时有效
	Party []int `json:"party"`
	// Remark 联系方式的备注信息,用于助记,不超过30个字符
	Remark string `json:"remark"`
	// Scene 场景,1-在小程序中联系,2-通过二维码联系,必填
	Scene int `json:"scene"`
	// SkipVerify 外部客户添加时是否无需验证,默认为true
	SkipVerify bool `json:"skip_verify"`
	// State 企业自定义的state参数,用于区分不同的添加渠道,在调用“<a href="#13878">获取外部联系人详情</a>”时会返回该参数值,不超过30个字符
	State string `json:"state"`
	// Style 在小程序中联系时使用的控件样式,详见附表
	Style int `json:"style"`
	// Type 联系方式类型,1-单人, 2-多人,必填
	Type int `json:"type"`
	// Unionid 可进行临时会话的客户unionid,该参数仅在is_temp为true时有效,如不指定则不进行限制
	Unionid string `json:"unionid"`
	// User 使用该联系方式的用户userID列表,在type为1时为必填,且只能有一个
	User []string `json:"user"`
}

type ReqAddCorpTagExternalcontact

type ReqAddCorpTagExternalcontact struct {
	// Agentid 授权方安装的应用agentid。<strong>仅旧的第三方多应用套件需要填此参数</strong>
	Agentid int `json:"agentid,omitempty"`
	// GroupID 标签组id
	GroupID string `json:"group_id,omitempty"`
	// GroupName 标签组名称,最长为30个<strong>字符</strong>
	GroupName string `json:"group_name,omitempty"`
	// Order 标签组次序值。order值大的排序靠前。有效的值范围是[0, 2^32)
	Order int `json:"order,omitempty"`
	Tag   []struct {
		// Name 添加的标签名称,最长为30个<strong>字符</strong>,必填
		Name  string `json:"name"`
		Order int    `json:"order,omitempty"`
	} `json:"tag"`
}

type ReqAddGroupWelcomeTemplate added in v1.2.0

type ReqAddGroupWelcomeTemplate struct {
	// Agentid 授权方安装的应用agentid。<strong>仅旧的第三方多应用套件需要填此参数</strong>
	Agentid     int                                         `json:"agentid,omitempty"`
	File        ReqSendWelcomeMsgExternalcontactFile        `json:"file"`
	Image       ReqSendWelcomeMsgExternalcontactImage       `json:"image"`
	Link        ReqSendWelcomeMsgExternalcontactLink        `json:"link"`
	Miniprogram ReqSendWelcomeMsgExternalcontactMiniprogram `json:"miniprogram"`
	// Notify 是否通知成员将这条入群欢迎语应用到客户群中,0-不通知,1-通知, <strong>不填则通知</strong>
	Notify int                                         `json:"notify,omitempty"`
	Text   ReqSendWelcomeMsgExternalcontactText        `json:"text"`
	Video  ReqSendWelcomeMsgExternalcontactMiniprogram `json:"video"`
}

ReqAddGroupWelcomeTemplate 添加入群欢迎语素材请求 文档:https://developer.work.weixin.qq.com/document/path/93438#添加入群欢迎语素材

type ReqAddMomentTaskExternalcontact added in v1.2.9

type ReqAddMomentTaskExternalcontact struct {
	Attachments []struct {
		Image struct {
			// MediaID 图片的素材id。可通过<a href="#34657" rel="nofollow">上传附件资源</a>接口获得,必填
			// MediaID 图片链接封面,普通图片:总像素不超过1555200。可通过<a href="#34657" rel="nofollow">上传附件资源</a>接口获得,必填
			// MediaID 视频的素材id,未填写报错&#34;invalid msg&#34;。可通过<a href="#34657" rel="nofollow">上传附件资源</a>接口获得,必填
			// MediaID 图片的素材id。可通过<a href="#34657" rel="nofollow">上传附件资源</a>接口获得,必填
			// MediaID 图片链接封面,普通图片:总像素不超过1555200。可通过<a href="#34657" rel="nofollow">上传附件资源</a>接口获得,必填
			// MediaID 视频的素材id,未填写报错&#34;invalid msg&#34;。可通过<a href="#34657" rel="nofollow">上传附件资源</a>接口获得,必填
			// MediaID 图片的素材id。可通过<a href="#34657" rel="nofollow">上传附件资源</a>接口获得,必填
			// MediaID 图片链接封面,普通图片:总像素不超过1555200。可通过<a href="#34657" rel="nofollow">上传附件资源</a>接口获得,必填
			// MediaID 视频的素材id,未填写报错&#34;invalid msg&#34;。可通过<a href="#34657" rel="nofollow">上传附件资源</a>接口获得,必填
			MediaID string `json:"media_id"`
		} `json:"image,omitempty"` // 图片消息附件。普通图片:总像素不超过1555200。图片大小不超过10M。最多支持传入9个;超过9个报错&#39;invalid attachments size&#39;
		Link struct {
			MediaID string `json:"media_id"`
			// Title 图文消息标题,最多64个<strong>字节</strong>
			Title string `json:"title,omitempty"`
			// URL 图文消息链接,必填
			URL string `json:"url"`
		} `json:"link,omitempty"` // 图文消息附件。只支持1个;若超过1个报错&#39;invalid attachments size&#39;
		// Msgtype 附件类型,可选image、link或者video,必填
		Msgtype string `json:"msgtype"`
		Video   struct {
			MediaID string `json:"media_id"`
		} `json:"video,omitempty"` // 视频消息附件。最长不超过30S,最大不超过10MB。只支持1个;若超过1个报错&#39;invalid attachments size&#39;
	} `json:"attachments,omitempty"` // 附件,不能与text.content同时为空,最多支持9个图片类型,或者1个视频,或者1个链接。类型只能三选一,若传了不同类型,报错&#39;invalid attachments msgtype&#39;
	Text struct {
		// Content 消息文本内容,不能与附件同时为空,最多支持传入2000个字符,若超出长度报错&#39;invalid text size&#39;
		Content string `json:"content,omitempty"`
	} `json:"text,omitempty"` // 文本消息
	VisibleRange struct {
		ExternalContactList struct {
			// TagList 可见到该朋友圈的客户标签列表
			TagList []string `json:"tag_list,omitempty"`
		} `json:"external_contact_list,omitempty"` // 可见到该朋友圈的客户列表,详见下文的“可见范围说明”
		SenderList struct {
			// DepartmentList 发表任务的执行者部门列表
			DepartmentList []int `json:"department_list,omitempty"`
			// UserList 发表任务的执行者用户列表,最多支持10万个
			UserList []string `json:"user_list,omitempty"`
		} `json:"sender_list,omitempty"` // 发表任务的执行者列表,详见下文的“可见范围说明”
	} `json:"visible_range,omitempty"` // 指定的发表范围;若未指定,则表示执行者为应用可见范围内所有成员
}

ReqAddMomentTaskExternalcontact 创建发表任务请求 文档:https://developer.work.weixin.qq.com/document/path/95094#创建发表任务

type ReqAddMsgTemplateExternalcontact

type ReqAddMsgTemplateExternalcontact struct {
	Attachments []AddMsgTemplateAttachments `json:"attachments"` // 附件,最多支持添加9个附件
	// ChatType 群发任务的类型,默认为single,表示发送给客户,group表示发送给客户群
	ChatType string `json:"chat_type"`
	// ExternalUserid 客户的外部联系人id列表,仅在chat_type为single时有效,不可与sender同时为空,最多可传入<strong>1万</strong>个客户
	ExternalUserid []string `json:"external_userid"`
	// Sender 发送企业群发消息的成员userid,当类型为发送给客户群时必填
	Sender string             `json:"sender"`
	Text   AddMsgTemplateText `json:"text"`
	// 是否允许成员在待发送客户列表中重新进行选择,默认为false
	AllowSelect bool `json:"allow_select"`
}

type ReqAddtagusersTag added in v1.2.0

type ReqAddtagusersTag struct {
	// Partylist 企业部门ID列表,注意:userlist、partylist不能同时为空,单次请求个数不超过100
	Partylist []int `json:"partylist,omitempty"`
	// Tagid 标签ID,必填
	Tagid int `json:"tagid"`
	// Userlist 企业成员ID列表,注意:userlist、partylist不能同时为空,单次请求个数不超过1000
	Userlist []string `json:"userlist,omitempty"`
}

ReqAddtagusersTag 增加标签成员请求 文档:https://developer.work.weixin.qq.com/document/path/90350#增加标签成员

type ReqApplyEvent added in v1.1.3

type ReqApplyEvent struct {
	CreatorUserid       string     `json:"creator_userid"`        // 申请人userid,此审批申请将以此员工身份提交,申请人需在应用可见范围内
	TemplateId          string     `json:"template_id"`           // 模板的唯一标识id。可在“获取审批单据详情”、“审批状态变化回调通知”中获得,也可在使用“复制/更新模板到企业”接口回调中获得。注:此id为企业内模板的实例id,非服务商后台对应模板的id。暂不支持通过接口提交[打卡补卡][调班]模板审批单。
	UseTemplateApprover int        `json:"use_template_approver"` // 审批人模式:0-通过接口指定审批人、抄送人(此时approver、notifyer等参数可用); 1-使用此模板在管理后台设置的审批流程,支持条件审批。
	Approver            []Approver `json:"approver"`              // 审批流程信息,用于指定审批申请的审批流程,支持单人审批、多人会签、多人或签,可能有多个审批节点,仅use_template_approver为0时生效。
	Notifyer            []string   `json:"notifyer"`              // 抄送人节点userid列表,仅use_template_approver为0时生效。
	NotifyType          int        `json:"notify_type"`           // 抄送方式:1-提单时抄送(默认值); 2-单据通过后抄送;3-提单和单据通过后抄送。仅use_template_approver为0时生效。
	ApplyData           struct {
		Contents []ApplyDataContent `json:"contents"` // 审批申请详情,由多个表单控件及其内容组成,其中包含需要对控件赋值的信息
	} `json:"apply_data"`
	SummaryList []SummaryList `json:"summary_list"` // 摘要信息,用于显示在审批通知卡片、审批列表的摘要信息,最多3行
}

ReqApplyEvent 提交审批申请 文档:https://developer.work.weixin.qq.com/document/path/92632#提交审批申请

type ReqAuthsuccUser added in v1.2.0

type ReqAuthsuccUser struct {
	// Userid 成员UserID。对应管理端的帐号,必填
	Userid string `json:"userid"`
}

ReqAuthsuccUser 成二次验证请求 文档:https://developer.work.weixin.qq.com/document/path/90339#二次验证

type ReqBatchActiveAccountLicense

type ReqBatchActiveAccountLicense struct {
	ActiveList []struct {
		// ActiveCode 帐号激活码,必填
		// ActiveCode 帐号激活码,必填
		ActiveCode string `json:"active_code"`
		// Userid 待绑定激活的企业成员userid 。只支持加密的userid,必填
		// Userid 本次激活的企业成员的加密userid,必填
		Userid string `json:"userid"`
	} `json:"active_list"` // 需要激活的帐号列表,必填
	// Corpid 待绑定激活的成员所属企业corpid,只支持加密的corpid,必填
	Corpid string `json:"corpid"`
}

ReqBatchActiveAccountLicense 批量激活帐号请求 文档:https://developer.work.weixin.qq.com/document/path/95553#批量激活帐号

type ReqBatchGetActiveInfoByCodeLicense

type ReqBatchGetActiveInfoByCodeLicense struct {
	// ActiveCodeList 激活码列表,最多不超过1000个,必填
	ActiveCodeList []string `json:"active_code_list"`
	// Corpid 要查询的企业的corpid,只支持加密的corpid,必填
	Corpid string `json:"corpid"`
}

ReqBatchGetActiveInfoByCodeLicense 批量获取激活码详情请求 文档:https://developer.work.weixin.qq.com/document/path/95552#批量获取激活码详情

type ReqBatchShareActiveCodeLicense added in v1.2.2

type ReqBatchShareActiveCodeLicense struct {
	// FromCorpid 上游企业corpid。支持明文或者密文的corpid,必填
	FromCorpid string `json:"from_corpid"`
	ShareList  []struct {
		// ActiveCode 分享的激活码,必填
		ActiveCode string `json:"active_code"`
	} `json:"share_list"` // 分享的接口许可列表。单次分享激活码不可超过1000个,累计分享给同一下游企业的激活码总数不可超过上下游通讯录中该下游企业人数的2倍,必填
	// ToCorpid 下游企业corpid。支持明文或者密文的corpid,必填
	ToCorpid string `json:"to_corpid"`
}

ReqBatchShareActiveCodeLicense 分配激活码给下游企业请求 文档:https://developer.work.weixin.qq.com/document/path/96059#分配激活码给下游企业

type ReqBatchTransferLicenseLicense

type ReqBatchTransferLicenseLicense struct {
	// Corpid 待绑定激活的成员所属企业corpid,只支持加密的corpid,必填
	Corpid       string             `json:"corpid"`
	TransferList []TransferListItem `json:"transfer_list"`
}

ReqBatchTransferLicenseLicense 帐号继承请求 文档:https://developer.work.weixin.qq.com/document/path/95673#帐号继承

type ReqBatchsearchContact added in v1.1.4

type ReqBatchsearchContact struct {
	// Agentid 应用id,若非0则只返回应用可见范围内的用户或者部门信息
	Agentid int `json:"agentid,omitempty"`
	// AuthCorpid 查询的企业corpid,必填
	AuthCorpid       string `json:"auth_corpid"`
	QueryRequestList []struct {
		// FullMatchField 如果需要精确匹配用户名称或者部门名称或者英文名,不填则默认为模糊匹配;1:匹配用户名称或者部门名称 2:匹配用户英文名
		FullMatchField int `json:"full_match_field,omitempty"`
		// Limit 查询返回的最大数量,默认为50,最多为200,查询返回的数量可能小于limit指定的值
		Limit int `json:"limit,omitempty"`
		// Offset 查询的偏移量,每次调用的offset在上一次offset基础上加上limit
		Offset int `json:"offset,omitempty"`
		// QueryType 查询类型 1:查询用户,返回用户userid列表 2:查询部门,返回部门id列表。 不填该字段或者填0代表同时查询部门跟用户
		QueryType int `json:"query_type,omitempty"`
		// QueryWord 搜索关键词。当查询用户时应为用户名称、名称拼音或者英文名;当查询部门时应为部门名称或者部门名称拼音,必填
		QueryWord string `json:"query_word"`
	} `json:"query_request_list"` // 搜索请求列表,每次搜索列表数量不超过50,必填
}

ReqBatchsearchContact 通讯录批量搜索请求 文档:https://developer.work.weixin.qq.com/document/path/91844#通讯录批量搜索

type ReqCancelGroupmsgSendExternalcontact added in v1.2.9

type ReqCancelGroupmsgSendExternalcontact struct {
	// Msgid 群发消息的id,通过<a href="#%E8%8E%B7%E5%8F%96%E7%BE%A4%E5%8F%91%E8%AE%B0%E5%BD%95%E5%88%97%E8%A1%A8" rel="nofollow">获取群发记录列表</a>接口返回,必填
	Msgid string `json:"msgid"`
}

ReqCancelGroupmsgSendExternalcontact 停止企业群发请求 文档:https://developer.work.weixin.qq.com/document/path/97611#停止企业群发

type ReqCancelMomentTaskExternalcontact added in v1.2.9

type ReqCancelMomentTaskExternalcontact struct {
	// MomentID 朋友圈id,可通过<a href="#25254/%E8%8E%B7%E5%8F%96%E5%AE%A2%E6%88%B7%E6%9C%8B%E5%8F%8B%E5%9C%88%E4%BC%81%E4%B8%9A%E5%8F%91%E8%A1%A8%E7%9A%84%E5%88%97%E8%A1%A8" rel="nofollow">获取客户朋友圈企业发表的列表</a>接口获取朋友圈企业发表的列表,必填
	MomentID string `json:"moment_id"`
}

ReqCancelMomentTaskExternalcontact 停止发表企业朋友圈请求 文档:https://developer.work.weixin.qq.com/document/path/97612#停止发表企业朋友圈

type ReqCancelOrderLicense added in v1.2.1

type ReqCancelOrderLicense struct {
	Corpid  string `json:"corpid"`
	OrderID string `json:"order_id"`
}

ReqCancelOrderLicense 取消订单请求 文档:https://developer.work.weixin.qq.com/document/path/96106#取消订单

type ReqCheckMemberAuthUser added in v1.2.0

type ReqCheckMemberAuthUser struct {
	// OpenUserid
	OpenUserid string `json:"open_userid,omitempty"`
}

ReqCheckMemberAuthUser 查询成员用户是否已授权请求 文档:https://developer.work.weixin.qq.com/document/path/94514#查询成员用户是否已授权

type ReqCloseOrderPaytool added in v1.3.1

type ReqCloseOrderPaytool struct {
	// NonceStr 随机字符串,长度要求在32字节以内,用于保证签名不可预测及防重放攻击。<br/>需保证15分钟内不能重复,推荐随机字符串生成算法
	NonceStr string `json:"nonce_str,omitempty"`
	// OrderID 收款订单号<br/>不多于64字节
	OrderID string `json:"order_id,omitempty"`
	// Sig 数字签名
	Sig string `json:"sig,omitempty"`
	// Ts unix时间戳(中国时区),精确到秒。<br/>注意业务系统的机器时间与腾讯的时间相差不能超过15分钟
	Ts int `json:"ts,omitempty"`
}

ReqCloseOrderPaytool 取消收款订单请求 文档:https://developer.work.weixin.qq.com/document/path/98046#取消收款订单

type ReqCloseTempChatExternalcontact

type ReqCloseTempChatExternalcontact struct {
	// ExternalUserid 客户的外部联系人userid,必填
	ExternalUserid string `json:"external_userid"`
	// Userid 企业成员的userid,必填
	Userid string `json:"userid"`
}

ReqCloseTempChatExternalcontact 结束临时会话请求 文档:https://developer.work.weixin.qq.com/document/path/92577#结束临时会话

type ReqConvertToOpenidUser added in v1.1.6

type ReqConvertToOpenidUser struct {
	// Userid 企业内的成员id,必填
	Userid string `json:"userid"`
}

ReqConvertToOpenidUser userid转openid请求 文档:https://developer.work.weixin.qq.com/document/path/90338#userid转openid

type ReqConvertToUseridUser added in v1.1.6

type ReqConvertToUseridUser struct {
	// Openid 在使用企业支付之后,返回结果的openid,必填
	Openid string `json:"openid"`
}

ReqConvertToUseridUser openid转userid请求 文档:https://developer.work.weixin.qq.com/document/path/90338#openid转userid

type ReqCopyTemplateApproval added in v1.1.3

type ReqCopyTemplateApproval struct {
	// 服务商审批模板的唯一标识id。可在“获取审批单据详情”、“审批状态变化回调通知”中获得,也可在服务商后台-应用管理-审批模板的模板编辑页面中获得。
	OpenTemplateId string `json:"open_template_id"`
}

ReqCopyTemplateApproval 复制/更新模板到企业请求 文档:https://developer.work.weixin.qq.com/document/path/92630#复制/更新模板到企业

type ReqCorpidToOpencorpidService

type ReqCorpidToOpencorpidService struct {
	// Corpid 待获取的企业ID,必填
	Corpid string `json:"corpid"`
}

ReqCorpidToOpencorpidService 1.4 corpid转换请求 文档:https://developer.work.weixin.qq.com/document/path/95327#1.4 corpid转换

type ReqCreateLinkCustomerAcquisition added in v1.4.0

type ReqCreateLinkCustomerAcquisition struct {
	// LinkName 链接名称,必填
	LinkName string `json:"link_name"`
	Range    struct {
		// DepartmentList 此获客链接关联的部门id列表,部门覆盖总人数最多100个
		DepartmentList []int `json:"department_list,omitempty"`
		// UserList 此获客链接关联的userid列表,最多可关联100个
		UserList []string `json:"user_list,omitempty"`
	} `json:"range"`
	// SkipVerify 是否无需验证,默认为true
	SkipVerify bool `json:"skip_verify,omitempty"`
}

ReqCreateLinkCustomerAcquisition 创建获客链接请求 文档:https://developer.work.weixin.qq.com/document/path/97297#创建获客链接

type ReqCreateMomentStrategy added in v1.2.9

type ReqCreateMomentStrategy struct {
	ParentID     int      `json:"parent_id"`
	StrategyName string   `json:"strategy_name"`
	AdminList    []string `json:"admin_list"`
	Privilege    struct {
		SendMoment               bool `json:"send_moment"`
		ViewMomentList           bool `json:"view_moment_list"`
		ManageMomentCoverAndSign bool `json:"manage_moment_cover_and_sign"`
	} `json:"privilege"`
	Range []struct {
		Type    int    `json:"type"`
		Userid  string `json:"userid,omitempty"`
		Partyid int    `json:"partyid,omitempty"`
	} `json:"range"`
}

ReqCreateMomentStrategy 创建新的规则组请求 文档:https://developer.work.weixin.qq.com/document/path/94890#创建新的规则组

type ReqCreateNewOrderJobLicense added in v1.4.0

type ReqCreateNewOrderJobLicense struct {
	BuyList []struct {
		AccountCount struct {
			// BaseCount 基础帐号个数,最多1000000个。(若企业为服务商测试企业,最多购买1000个)
			BaseCount int `json:"base_count,omitempty"`
			// ExternalContactCount 互通帐号个数,最多1000000个。(若企业为服务商测试企业,最多购买1000个)
			ExternalContactCount int `json:"external_contact_count,omitempty"`
		} `json:"account_count"` // 账号个数详情,基础账号跟互通账号不能同时为0,必填
		AccountDuration struct {
			// Days 购买的天数
			Days int `json:"days,omitempty"`
			// Months 购买的月数,每个月按照31天计算
			Months int `json:"months,omitempty"`
		} `json:"account_duration"` // 帐号购买时长。总购买时长为(months*31+days)天,最少购买1个月(31天),最多购买60个月(1860天),必填
		// AutoActiveStatus 是否开启自动激活,不填<strong>默认开启</strong>。<br/>0:关闭 ,1:开启
		AutoActiveStatus int `json:"auto_active_status,omitempty"`
		// Corpid 企业id,必填
		Corpid string `json:"corpid"`
	} `json:"buy_list"` // 企业新购信息列表,详见<strong>BuyInfo</strong>。每次最多传10个,每个jobid最多关联100000个<strong>BuyInfo</strong>,必填
	// Jobid 多企业新购任务id:<br/><strong>不传</strong>默认创建一个新任务。<br/><strong>有传</strong>必须为第一次调用后返回的jobid,可以通过该接口将该任务关联多个新企业的购买账号信息
	Jobid string `json:"jobid,omitempty"`
}

ReqCreateNewOrderJobLicense 创建多企业新购任务请求 文档:https://developer.work.weixin.qq.com/document/path/98892#创建多企业新购任务

type ReqCreateNewOrderLicense

type ReqCreateNewOrderLicense struct {
	AccountCount    ReqCreateNewOrderLicenseAccountCount `json:"account_count"`    // 账号个数详情,基础账号跟互通账号不能同时为0,必填
	AccountDuration ReqCreateNewOrderLicenseMonths       `json:"account_duration"` // 帐号购买时长,必填
	// BuyerUserid 下单人。服务商企业内成员userid。该userid必须登录过企业微信,并且企业微信已绑定微信。最终也支持由其他人支付,必填
	BuyerUserid string `json:"buyer_userid"`
	// Corpid 企业id,只支持加密的corpid,必填
	Corpid string `json:"corpid"`
}

ReqCreateNewOrderLicense 下单购买帐号请求 文档:https://developer.work.weixin.qq.com/document/path/95644#下单购买帐号

type ReqCreateNewOrderLicenseAccountCount added in v1.1.5

type ReqCreateNewOrderLicenseAccountCount struct {
	// BaseCount 基础帐号个数,最多1000000个。(若企业为服务商测试企业,最多购买1000个)
	BaseCount int `json:"base_count,omitempty"`
	// ExternalContactCount 互通帐号个数,最多1000000个。(若企业为服务商测试企业,最多购买1000个)
	ExternalContactCount int `json:"external_contact_count,omitempty"`
}

ReqCreateNewOrderLicense 下单购买帐号请求 文档:https://developer.work.weixin.qq.com/document/path/95644#下单购买帐号

type ReqCreateNewOrderLicenseMonths added in v1.1.5

type ReqCreateNewOrderLicenseMonths struct {
	// Months 购买的月数,每个月按照31天计算。最多购买36个月。(若企业为服务商测试企业,最多购买1个月),必填
	Months int `json:"months"`
}

ReqCreateNewOrderLicense 下单购买帐号请求 文档:https://developer.work.weixin.qq.com/document/path/95644#下单购买帐号

type ReqCreateRenewOrderJobLicense

type ReqCreateRenewOrderJobLicense struct {
	AccountList []ReqCreateRenewOrderJobLicenseAccountListItem `json:"account_list"` // 续期的帐号列表,每次最多1000个。同一个jobid最多关联1000000个基础账号跟1000000个互通账号,必填
	// Corpid 企业id,只支持加密的corpid,必填
	Corpid string `json:"corpid"`
	// Jobid 任务id,若不传则默认创建一个新任务。若指定第一次调用后拿到jobid,可以通过该接口将jobid关联多个userid
	Jobid string `json:"jobid,omitempty"`
}

ReqCreateRenewOrderJobLicense 创建续期任务请求 文档:https://developer.work.weixin.qq.com/document/path/95646#创建续期任务

type ReqCreateRenewOrderJobLicenseAccountListItem added in v1.1.5

type ReqCreateRenewOrderJobLicenseAccountListItem struct {
	// Type 续期帐号类型。1:基础帐号,2:互通帐号,必填
	Type int `json:"type"`
	// Userid 续期企业的成员userid。只支持加密的userid,必填
	Userid string `json:"userid"`
}

ReqCreateRenewOrderJobLicense 创建续期任务请求 文档:https://developer.work.weixin.qq.com/document/path/95646#创建续期任务

type ReqCreateTag added in v1.2.0

type ReqCreateTag struct {
	// Tagid 标签id,非负整型,指定此参数时新增的标签会生成对应的标签id,不指定时则以目前最大的id自增。
	Tagid int `json:"tagid,omitempty"`
	// Tagname 标签名称,长度限制为32个字以内(汉字或英文字母),标签名不可与其他标签重名。,必填
	Tagname string `json:"tagname"`
}

ReqCreateTag 创建标签请求 文档:https://developer.work.weixin.qq.com/document/path/90346#创建标签

type ReqCustomerAcquisitionQuotaExternalcontact added in v1.4.0

type ReqCustomerAcquisitionQuotaExternalcontact struct{}

ReqCustomerAcquisitionQuotaExternalcontact 查询剩余使用量请求 文档:https://developer.work.weixin.qq.com/document/path/97375#查询剩余使用量

type ReqCustomerCustomerAcquisition added in v1.4.0

type ReqCustomerCustomerAcquisition struct {
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 返回的最大记录数,整型,最大值1000
	Limit int `json:"limit,omitempty"`
	// LinkID 获客链接id,必填
	LinkID string `json:"link_id"`
}

ReqCustomerCustomerAcquisition 获取获客客户列表请求 文档:https://developer.work.weixin.qq.com/document/path/97298#获取获客客户列表

type ReqDelContactWayExternalcontact

type ReqDelContactWayExternalcontact struct {
	// ConfigID 企业联系方式的配置id,必填
	ConfigID string `json:"config_id"`
}

ReqDelContactWayExternalcontact 删除企业已配置的「联系我」方式请求 文档:https://developer.work.weixin.qq.com/document/path/92577#删除企业已配置的「联系我」方式

type ReqDelCorpTagExternalcontact

type ReqDelCorpTagExternalcontact struct {
	// Agentid 授权方安装的应用agentid。<strong>仅旧的第三方多应用套件需要填此参数</strong>
	Agentid int `json:"agentid,omitempty"`
	// GroupID 标签组的id列表
	GroupID []string `json:"group_id,omitempty"`
	// TagID 标签的id列表
	TagID []string `json:"tag_id,omitempty"`
}

type ReqDelGroupWelcomeTemplate added in v1.2.0

type ReqDelGroupWelcomeTemplate struct {
	// Agentid 授权方安装的应用agentid。<strong>仅旧的第三方多应用套件需要填此参数</strong>
	Agentid int `json:"agentid,omitempty"`
	// TemplateID 群欢迎语的素材id,必填
	TemplateID string `json:"template_id"`
}

ReqDelGroupWelcomeTemplate 删除入群欢迎语素材请求 文档:https://developer.work.weixin.qq.com/document/path/93438#删除入群欢迎语素材

type ReqDelMomentStrategy added in v1.2.9

type ReqDelMomentStrategy struct {
	// StrategyID 规则组id,必填
	StrategyID int `json:"strategy_id"`
}

ReqDelMomentStrategy 删除规则组请求 文档:https://developer.work.weixin.qq.com/document/path/94890#删除规则组

type ReqDeleteLinkCustomerAcquisition added in v1.4.0

type ReqDeleteLinkCustomerAcquisition struct {
	// LinkID 获客链接的id,必填
	LinkID string `json:"link_id"`
}

ReqDeleteLinkCustomerAcquisition 删除获客链接请求 文档:https://developer.work.weixin.qq.com/document/path/97297#删除获客链接

type ReqDeleteTag added in v1.2.0

type ReqDeleteTag struct {
	// Tagid 标签ID,必填
	Tagid int `json:"tagid"`
}

ReqDeleteTag 删除标签请求 文档:https://developer.work.weixin.qq.com/document/path/90348#删除标签

type ReqDeltagusersTag added in v1.2.0

type ReqDeltagusersTag struct {
	// Partylist 企业部门ID列表,注意:userlist、partylist不能同时为空,单次请求长度不超过100
	Partylist []int `json:"partylist,omitempty"`
	// Tagid 标签ID,必填
	Tagid int `json:"tagid"`
	// Userlist 企业成员ID列表,注意:userlist、partylist不能同时为空,单次请求长度不超过1000
	Userlist []string `json:"userlist,omitempty"`
}

ReqDeltagusersTag 删除标签成员请求 文档:https://developer.work.weixin.qq.com/document/path/90351#删除标签成员

type ReqEditCorpTagExternalcontact

type ReqEditCorpTagExternalcontact struct {
	// Agentid 授权方安装的应用agentid。<strong>仅旧的第三方多应用套件需要填此参数</strong>
	Agentid int `json:"agentid,omitempty"`
	// ID 标签或标签组的id,必填
	ID string `json:"id"`
	// Name 新的标签或标签组名称,最长为30个<strong>字符</strong>
	Name string `json:"name,omitempty"`
	// Order 标签/标签组的次序值。order值大的排序靠前。有效的值范围是[0, 2^32)
	Order int `json:"order,omitempty"`
}

type ReqEditGroupWelcomeTemplate added in v1.2.0

type ReqEditGroupWelcomeTemplate struct {
	// Agentid 授权方安装的应用agentid。<strong>仅旧的第三方多应用套件需要填此参数</strong>
	Agentid     int                                         `json:"agentid,omitempty"`
	File        ReqSendWelcomeMsgExternalcontactFile        `json:"file"`
	Image       ReqSendWelcomeMsgExternalcontactFile        `json:"image"`
	Link        ReqSendWelcomeMsgExternalcontactLink        `json:"link"`
	Miniprogram ReqSendWelcomeMsgExternalcontactMiniprogram `json:"miniprogram"`
	// TemplateID 欢迎语素材id,必填
	TemplateID string                                `json:"template_id"`
	Text       ReqSendWelcomeMsgExternalcontactText  `json:"text"`
	Video      ReqSendWelcomeMsgExternalcontactVideo `json:"video"`
}

ReqEditGroupWelcomeTemplate 编辑入群欢迎语素材请求 文档:https://developer.work.weixin.qq.com/document/path/93438#编辑入群欢迎语素材

type ReqEditMomentStrategy added in v1.2.9

type ReqEditMomentStrategy struct {
	// AdminList 管理员列表,如果为空则不对负责人做编辑,如果有则<strong>覆盖旧的负责人列表</strong>
	AdminList []string `json:"admin_list,omitempty"`
	Privilege struct {
		ManageMomentCoverAndSign bool `json:"manage_moment_cover_and_sign"`
		SendMoment               bool `json:"send_moment"`
		ViewMomentList           bool `json:"view_moment_list"`
	} `json:"privilege,omitempty"` // 权限配置,如果为空则不对权限做编辑,如果有则<strong>覆盖旧的权限配置</strong>
	RangeAdd []struct {
		// Partyid 向管理范围添加部门的partyid,仅type为2时有效
		Partyid int `json:"partyid,omitempty"`
		// Type 向管理范围添加的节点类型 1-成员 2-部门
		Type int `json:"type,omitempty"`
		// Userid 向管理范围添加成员的userid,仅type为1时有效
		Userid string `json:"userid,omitempty"`
	} `json:"range_add"`
	RangeDel []struct {
		// Partyid 从管理范围删除的部门的partyid,仅type为2时有效
		Partyid int `json:"partyid,omitempty"`
		// Type 从管理范围删除的节点类型 1-成员 2-部门
		Type int `json:"type,omitempty"`
		// Userid 从管理范围删除的成员的userid,仅type为1时有效
		Userid string `json:"userid,omitempty"`
	} `json:"range_del"`
	// StrategyID 规则组id,必填
	StrategyID int `json:"strategy_id"`
	// StrategyName 规则组名称
	StrategyName string `json:"strategy_name,omitempty"`
}

ReqEditMomentStrategy 编辑规则组及其管理范围请求 文档:https://developer.work.weixin.qq.com/document/path/94890#编辑规则组及其管理范围

type ReqExternalcontactToServiceExternalUserid

type ReqExternalcontactToServiceExternalUserid struct {
	// 明文externalUserId
	ExternalUserId string `json:"external_userid"`
}

自建应用代开发external_userid转换 文档:https://developer.work.weixin.qq.com/document/path/95195

type ReqFinishExternalUseridMigration

type ReqFinishExternalUseridMigration struct {
	// 企业corpid,必填
	Corpid string `json:"corpid"`
}

3.3 设置迁移完成 文档:https://developer.work.weixin.qq.com/document/path/95327

type ReqGetActiveInfoByCodeLicense

type ReqGetActiveInfoByCodeLicense struct {
	// ActiveCode 激活码,必填
	ActiveCode string `json:"active_code"`
	// Corpid 要查询的企业的corpid,只支持加密的corpid,必填
	Corpid string `json:"corpid"`
}

ReqGetActiveInfoByCodeLicense 获取激活码详情请求 文档:https://developer.work.weixin.qq.com/document/path/95552#获取激活码详情

type ReqGetActiveInfoByUserLicense

type ReqGetActiveInfoByUserLicense struct {
	// Corpid 企业corpid,只支持加密的corpid,必填
	Corpid string `json:"corpid"`
	// Userid 待查询员工的userid,只支持加密的userid,必填
	Userid string `json:"userid"`
}

ReqGetActiveInfoByUserLicense 获取成员的激活详情请求 文档:https://developer.work.weixin.qq.com/document/path/95555#获取成员的激活详情

type ReqGetAdminListService

type ReqGetAdminListService struct {
	// Agentid 授权方安装的应用agentid,必填
	Agentid int `json:"agentid"`
	// AuthCorpid 授权方corpid,必填
	AuthCorpid string `json:"auth_corpid"`
}

ReqGetAdminListService 获取应用的管理员列表请求 文档:https://developer.work.weixin.qq.com/document/path/90606#获取应用的管理员列表

type ReqGetAgent added in v1.1.2

type ReqGetAgent struct {
	// Agentid 应用id,必填
	Agentid int `json:"agentid"`
}

ReqGetAgent 获取指定的应用详情请求 文档:https://developer.work.weixin.qq.com/document/path/90363#获取指定的应用详情

type ReqGetAppLicenseInfoLicense added in v1.0.11

type ReqGetAppLicenseInfoLicense struct {
	// Appid 旧的多应用套件中的应用id,新开发者请忽略
	Appid int `json:"appid,omitempty"`
	// Corpid 企业id,必填
	Corpid string `json:"corpid"`
	// SuiteID 套件id,必填
	SuiteID string `json:"suite_id"`
}

ReqGetAppLicenseInfoLicense 获取应用的接口许可状态请求 文档:https://developer.work.weixin.qq.com/document/path/95844#获取应用的接口许可状态

type ReqGetAppQrcodeService added in v1.2.0

type ReqGetAppQrcodeService struct {
	// Appid 第三方应用id,单应用不需要该参数,多应用旧套件才需要传该参数。若不传默认为1
	Appid int `json:"appid,omitempty"`
	// ResultType 结果返回方式,默认为返回二维码图片buffer。1:二维码图片buffer,2:二维码图片url
	ResultType int `json:"result_type,omitempty"`
	// State state值,用于区分不同的安装渠道,可以填写a-zA-Z0-9,长度不可超过32个字节,默认为空。扫应用带参二维码授权安装后,获取企业永久授权码接口会返回该state值
	State string `json:"state,omitempty"`
	// Style 二维码样式选项,默认为不带说明外框小尺寸。0:带说明外框的二维码,适合于实体物料,1:带说明外框的二维码,适合于屏幕类,2:不带说明外框(小尺寸),3:不带说明外框(中尺寸),4:不带说明外框(大尺寸)。具体样式与服务商管理端获取到的应用二维码样式一一对应,参见下文二维码样式说明
	Style int `json:"style,omitempty"`
	// SuiteID 第三方应用id(即ww或wx开头的suiteid),必填
	SuiteID string `json:"suite_id"`
}

ReqGetAppQrcodeService 获取应用二维码请求 文档:https://developer.work.weixin.qq.com/document/path/95430#获取应用二维码

type ReqGetApprovalDetailOa added in v1.1.3

type ReqGetApprovalDetailOa struct {
	// SpNo 审批单编号。,必填
	SpNo int `json:"sp_no"`
}

ReqGetApprovalDetailOa 获取审批申请详情请求 文档:https://developer.work.weixin.qq.com/document/path/92634#获取审批申请详情

type ReqGetAuthInfoService

type ReqGetAuthInfoService struct {
	// AuthCorpid 授权方corpid,必填
	AuthCorpid string `json:"auth_corpid"`
	// PermanentCode 永久授权码,通过get_permanent_code获取,必填
	PermanentCode string `json:"permanent_code"`
}

ReqGetAuthInfoService 获取企业授权信息请求 文档:https://developer.work.weixin.qq.com/document/path/90604#获取企业授权信息

type ReqGetAutoActiveStatusLicense added in v1.0.13

type ReqGetAutoActiveStatusLicense struct {
	// Corpid 查询的企业corpid。要求服务商为企业购买过接口许可才有查询结果。,必填
	Corpid string `json:"corpid"`
}

ReqGetAutoActiveStatusLicense 查询企业的许可自动激活状态请求 文档:https://developer.work.weixin.qq.com/document/path/95874#查询企业的许可自动激活状态

type ReqGetBillListExternalpay added in v1.1.7

type ReqGetBillListExternalpay struct {
	// BeginTime 收款记录开始时间,必填
	BeginTime int `json:"begin_time"`
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// EndTime 收款记录结束时间,必填
	EndTime int `json:"end_time"`
	// Limit 返回的最大记录数,整型,最大值1000
	Limit int `json:"limit,omitempty"`
	// PayeeUserid 企业收款成员userid,不填则为全部成员
	PayeeUserid string `json:"payee_userid,omitempty"`
}

ReqGetBillListExternalpay 获取对外收款记录请求 文档:https://developer.work.weixin.qq.com/document/path/93727#获取对外收款记录

type ReqGetByUserBatch

type ReqGetByUserBatch struct {
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor"`
	// Limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取最大值
	Limit int `json:"limit"`
	// UseridList 企业成员的userid列表,字符串类型,最多支持100个,必填
	UseridList []string `json:"userid_list"`
}

ReqGetByUserBatch 批量获取客户详情请求 文档:https://developer.work.weixin.qq.com/document/path/93010#批量获取客户详情

type ReqGetContactWayExternalcontact

type ReqGetContactWayExternalcontact struct {
	// ConfigID 联系方式的配置id,必填
	ConfigID string `json:"config_id"`
}

ReqGetContactWayExternalcontact 获取企业已配置的「联系我」方式请求 文档:https://developer.work.weixin.qq.com/document/path/92577#获取企业已配置的「联系我」方式

type ReqGetCorpQualification

type ReqGetCorpQualification struct{}

type ReqGetCorpTagListExternalcontact

type ReqGetCorpTagListExternalcontact struct {
	// GroupID 要查询的标签组id,返回该标签组以及其下的所有标签信息
	GroupID []string `json:"group_id,omitempty"`
	// TagID 要查询的标签id
	TagID []string `json:"tag_id,omitempty"`
}

ReqGetCorpTagListExternalcontact 获取企业标签库请求 文档:https://developer.work.weixin.qq.com/document/path/92696#获取企业标签库

type ReqGetCorpTokenService

type ReqGetCorpTokenService struct {
	// AuthCorpid 授权方corpid,必填
	AuthCorpid string `json:"auth_corpid"`
	// PermanentCode 永久授权码,通过get_permanent_code获取,必填
	PermanentCode string `json:"permanent_code"`
}

ReqGetCorpTokenService 获取企业凭证请求 文档:https://developer.work.weixin.qq.com/document/path/90605#获取企业凭证

type ReqGetCustomerAcquisition added in v1.4.0

type ReqGetCustomerAcquisition struct {
	// LinkID 获客链接id,必填
	LinkID string `json:"link_id"`
}

ReqGetCustomerAcquisition 获取获客链接详情请求 文档:https://developer.work.weixin.qq.com/document/path/97297#获取获客链接详情

type ReqGetCustomizedCorpTokenService

type ReqGetCustomizedCorpTokenService struct {
	// AuthCorpid 授权方corpid,必填
	Corpid string `json:"corpid"`
	// PermanentCode 永久授权码,通过get_permanent_code获取,必填
	Corpsecret string `json:"corpsecret"`
}

https://developer.work.weixin.qq.com/document/path/91039

type ReqGetDepartment

type ReqGetDepartment struct {
	// ID 部门id,必填
	ID int `json:"id"`
}

ReqGetDepartment 获取单个部门详情请求 文档:https://developer.work.weixin.qq.com/document/path/95407#获取单个部门详情

type ReqGetExternalcontact

type ReqGetExternalcontact struct {
	// AccessToken 调用接口凭证,必填
	AccessToken string `json:"access_token"`
	// Cursor 上次请求返回的<code>next_cursor</code>
	Cursor string `json:"cursor"`
	// ExternalUserid 外部联系人的<code>userid</code>,注意不是企业成员的帐号,必填
	ExternalUserid string `json:"external_userid"`
}

ReqGetExternalcontact 获取客户详情请求 文档:https://developer.work.weixin.qq.com/document/path/92265#获取客户详情

type ReqGetGroupWelcomeTemplate added in v1.2.0

type ReqGetGroupWelcomeTemplate struct {
	// TemplateID 群欢迎语的素材id,必填
	TemplateID string `json:"template_id"`
}

ReqGetGroupWelcomeTemplate 获取入群欢迎语素材请求 文档:https://developer.work.weixin.qq.com/document/path/93438#获取入群欢迎语素材

type ReqGetGroupchat

type ReqGetGroupchat struct {
	// ChatID 客户群ID,必填
	ChatID string `json:"chat_id"`
	// NeedName 是否需要返回群成员的名字<code>group_chat.member_list.name</code>。0-不返回;1-返回。默认不返回
	NeedName int `json:"need_name"`
}

ReqGetGroupchat 获取客户群详情请求 文档:https://developer.work.weixin.qq.com/document/path/92707#获取客户群详情

type ReqGetGroupmsgListV2Externalcontact

type ReqGetGroupmsgListV2Externalcontact struct {
	// ChatType 群发任务的类型,默认为single,表示发送给客户,group表示发送给客户群,必填
	ChatType string `json:"chat_type"`
	// Creator 群发任务创建人企业账号id
	Creator string `json:"creator"`
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor"`
	// EndTime 群发任务记录结束时间,必填
	EndTime int `json:"end_time"`
	// FilterType 创建人类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型
	FilterType int `json:"filter_type"`
	// Limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值
	Limit int `json:"limit"`
	// StartTime 群发任务记录开始时间,必填
	StartTime int `json:"start_time"`
}

ReqGetGroupmsgListV2Externalcontact 获取群发记录列表请求 文档:https://developer.work.weixin.qq.com/document/path/93338#获取群发记录列表

type ReqGetGroupmsgSendResultExternalcontact

type ReqGetGroupmsgSendResultExternalcontact struct {
	Cursor string `json:"cursor"`
	Limit  int    `json:"limit"`
	Msgid  string `json:"msgid"`
	Userid string `json:"userid"`
}

ReqGetGroupmsgSendResultExternalcontact 获取企业群发成员执行结果请求 文档:https://developer.work.weixin.qq.com/document/path/93338#获取企业群发成员执行结果

type ReqGetGroupmsgTaskExternalcontact

type ReqGetGroupmsgTaskExternalcontact struct {
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor"`
	// Limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值
	Limit int `json:"limit"`
	// Msgid 群发消息的id,通过<a href="#%E8%8E%B7%E5%8F%96%E7%BE%A4%E5%8F%91%E8%AE%B0%E5%BD%95%E5%88%97%E8%A1%A8" rel="nofollow">获取群发记录列表</a>接口返回,必填
	Msgid string `json:"msgid"`
}

ReqGetGroupmsgTaskExternalcontact 获取群发成员发送任务列表请求 文档:https://developer.work.weixin.qq.com/document/path/93338#获取群发成员发送任务列表

type ReqGetLoginInfoService added in v1.2.0

type ReqGetLoginInfoService struct {
	// AuthCode oauth2.0授权企业微信管理员登录产生的code,最长为512字节。只能使用一次,5分钟未被使用自动过期,必填
	AuthCode string `json:"auth_code"`
}

ReqGetLoginInfoService 获取登录用户信息请求 文档:https://developer.work.weixin.qq.com/document/path/91125#获取登录用户信息

type ReqGetMomentCommentsExternalcontact added in v1.2.9

type ReqGetMomentCommentsExternalcontact struct {
	// MomentID 朋友圈id,必填
	MomentID string `json:"moment_id"`
	// Userid 企业发表成员userid,如果是企业创建的朋友圈,可以通过<a href="#%E8%8E%B7%E5%8F%96%E5%AE%A2%E6%88%B7%E6%9C%8B%E5%8F%8B%E5%9C%88%E4%BC%81%E4%B8%9A%E5%8F%91%E8%A1%A8%E7%9A%84%E5%88%97%E8%A1%A8" rel="nofollow">获取客户朋友圈企业发表的列表</a>获取已发表成员userid,如果是个人创建的朋友圈,创建人userid就是企业发表成员userid,必填
	Userid string `json:"userid"`
}

ReqGetMomentCommentsExternalcontact 获取客户朋友圈的互动数据请求 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈的互动数据

type ReqGetMomentCustomerListExternalcontact added in v1.2.9

type ReqGetMomentCustomerListExternalcontact struct {
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值
	Limit int `json:"limit,omitempty"`
	// MomentID 朋友圈id,必填
	MomentID string `json:"moment_id"`
	// Userid 企业发表成员userid,如果是企业创建的朋友圈,可以通过<a href="#%E8%8E%B7%E5%8F%96%E5%AE%A2%E6%88%B7%E6%9C%8B%E5%8F%8B%E5%9C%88%E4%BC%81%E4%B8%9A%E5%8F%91%E8%A1%A8%E7%9A%84%E5%88%97%E8%A1%A8" rel="nofollow">获取客户朋友圈企业发表的列表</a>获取已发表成员userid,如果是个人创建的朋友圈,创建人userid就是企业发表成员userid,必填
	Userid string `json:"userid"`
}

ReqGetMomentCustomerListExternalcontact 获取客户朋友圈发表时选择的可见范围请求 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈发表时选择的可见范围

type ReqGetMomentListExternalcontact added in v1.2.9

type ReqGetMomentListExternalcontact struct {
	// Creator 朋友圈创建人的userid
	Creator string `json:"creator,omitempty"`
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// EndTime 朋友圈记录结束时间。Unix时间戳,必填
	EndTime int `json:"end_time"`
	// FilterType 朋友圈类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型
	FilterType int `json:"filter_type,omitempty"`
	// Limit 返回的最大记录数,整型,最大值20,默认值20,超过最大值时取默认值
	Limit int `json:"limit,omitempty"`
	// StartTime 朋友圈记录开始时间。Unix时间戳,必填
	StartTime int `json:"start_time"`
}

ReqGetMomentListExternalcontact 获取企业全部的发表列表请求 文档:https://developer.work.weixin.qq.com/document/path/93333#获取企业全部的发表列表

type ReqGetMomentSendResultExternalcontact added in v1.2.9

type ReqGetMomentSendResultExternalcontact struct {
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 返回的最大记录数,整型,最大值5000,默认值3000,超过最大值时取默认值
	Limit int `json:"limit,omitempty"`
	// MomentID 朋友圈id,必填
	MomentID string `json:"moment_id"`
	// Userid 企业发表成员userid,如果是企业创建的朋友圈,可以通过<a href="#%E8%8E%B7%E5%8F%96%E5%AE%A2%E6%88%B7%E6%9C%8B%E5%8F%8B%E5%9C%88%E4%BC%81%E4%B8%9A%E5%8F%91%E8%A1%A8%E7%9A%84%E5%88%97%E8%A1%A8" rel="nofollow">获取客户朋友圈企业发表的列表</a>获取已发表成员userid,如果是个人创建的朋友圈,创建人userid就是企业发表成员userid,必填
	Userid string `json:"userid"`
}

ReqGetMomentSendResultExternalcontact 获取客户朋友圈发表后的可见客户列表请求 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈发表后的可见客户列表

type ReqGetMomentStrategy added in v1.2.9

type ReqGetMomentStrategy struct {
	// StrategyID 规则组id,必填
	StrategyID int `json:"strategy_id"`
}

ReqGetMomentStrategy 获取规则组详情请求 文档:https://developer.work.weixin.qq.com/document/path/94890#获取规则组详情

type ReqGetMomentTaskExternalcontact added in v1.2.9

type ReqGetMomentTaskExternalcontact struct {
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值
	Limit int `json:"limit,omitempty"`
	// MomentID 朋友圈id,仅支持企业发表的朋友圈id,必填
	MomentID string `json:"moment_id"`
}

ReqGetMomentTaskExternalcontact 获取客户朋友圈企业发表的列表请求 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈企业发表的列表

type ReqGetMomentTaskResultExternalcontact added in v1.2.9

type ReqGetMomentTaskResultExternalcontact struct {
	// Jobid 异步任务id,最大长度为64字节,由<a href="#%E5%88%9B%E5%BB%BA%E5%8F%91%E8%A1%A8%E5%86%85%E5%AE%B9%E5%88%B0%E5%AE%A2%E6%88%B7%E6%9C%8B%E5%8F%8B%E5%9C%88%E4%BB%BB%E5%8A%A1" rel="nofollow">创建发表内容到客户朋友圈任务</a>接口获取,必填
	Jobid string `json:"jobid"`
}

ReqGetMomentTaskResultExternalcontact 获取任务创建结果请求 文档:https://developer.work.weixin.qq.com/document/path/95094#获取任务创建结果

type ReqGetNewExternalUseridExternalcontact

type ReqGetNewExternalUseridExternalcontact struct {
	// 旧外部联系人id列表,最多不超过1000个,必填
	ExternalUseridList []string `json:"external_userid_list"`
}

3.3 转换external_userid 文档:https://developer.work.weixin.qq.com/document/path/95327

type ReqGetOrderDetailPaytool added in v1.3.1

type ReqGetOrderDetailPaytool struct {
	// NonceStr 随机字符串,长度要求在32字节以内,用于保证签名不可预测及防重放攻击。<br/>需保证15分钟内不能重复,推荐<a href="#47107/%E9%9A%8F%E6%9C%BA%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%94%9F%E6%88%90%E7%AE%97%E6%B3%95" rel="nofollow">随机字符串生成算法</a>
	NonceStr string `json:"nonce_str,omitempty"`
	// OrderID 订单号
	OrderID string `json:"order_id,omitempty"`
	// Sig 数字签名。见<a href="#47107/%E8%AE%A2%E5%8D%95%E7%AD%BE%E5%90%8D%E7%AE%97%E6%B3%95" rel="nofollow">签名算法</a>。签名所需密钥获取路径:<br/>工作台-&gt;企业微信服务商助手-&gt;工具-&gt;收银台-&gt;收银台API调用密钥
	Sig string `json:"sig,omitempty"`
	// Ts unix时间戳(中国时区),精确到秒。<br/>注意业务系统的机器时间与腾讯的时间相差不能超过15分钟
	Ts int `json:"ts,omitempty"`
}

ReqGetOrderDetailPaytool 获取收款订单详情请求 文档:https://developer.work.weixin.qq.com/document/path/98054#获取收款订单详情

type ReqGetOrderLicense

type ReqGetOrderLicense struct {
	// OrderID 订单id,必填
	OrderID string `json:"order_id"`
}

ReqGetOrderLicense 获取订单详情请求 文档:https://developer.work.weixin.qq.com/document/path/95648#获取订单详情

type ReqGetOrderListPaytool added in v1.3.1

type ReqGetOrderListPaytool struct {
	// BusinessType 业务类型
	BusinessType int `json:"business_type,omitempty"`
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用不填
	Cursor string `json:"cursor,omitempty"`
	// EndTime 结束时间
	EndTime int `json:"end_time,omitempty"`
	// Limit 分页,预期请求的数据量,取值范围 1 ~ 2000
	Limit int `json:"limit,omitempty"`
	// NonceStr 随机字符串,长度要求在32字节以内,用于保证签名不可预测及防重放攻击。<br/>需保证15分钟内不能重复,推荐随机字符串生成算法
	NonceStr string `json:"nonce_str,omitempty"`
	// Sig 数字签名
	Sig string `json:"sig,omitempty"`
	// StartTime 起始时间
	StartTime int `json:"start_time,omitempty"`
	// Ts unix时间戳(中国时区),精确到秒。<br/>注意业务系统的机器时间与腾讯的时间相差不能超过15分钟
	Ts int `json:"ts,omitempty"`
}

ReqGetOrderListPaytool 获取收款订单列表请求 文档:https://developer.work.weixin.qq.com/document/path/98053#获取收款订单列表

type ReqGetOrderListService added in v1.2.9

type ReqGetOrderListService struct {
	// EndTime 终止时间,UNIX时间戳,必填
	EndTime int `json:"end_time"`
	// StartTime 起始时间,UNIX时间戳,必填
	StartTime int `json:"start_time"`
	// TestMode 指定拉取正式或测试授权的订单。默认值为0,其中 0-正式授权,1-测试授权。
	TestMode int `json:"test_mode,omitempty"`
}

ReqGetOrderListService 获取订单列表请求 文档:https://developer.work.weixin.qq.com/document/path/91910#获取订单列表

type ReqGetOrderService added in v1.2.9

type ReqGetOrderService struct {
	// Orderid 订单号,必填
	Orderid string `json:"orderid"`
}

ReqGetOrderService 获取订单详情请求 文档:https://developer.work.weixin.qq.com/document/path/91909#获取订单详情

type ReqGetPaymentInfoExternalpay added in v1.1.7

type ReqGetPaymentInfoExternalpay struct {
	// PaymentID 收款项目单号。在<a href="#39955" rel="nofollow">发起对外收款</a>中返回。,必填
	PaymentID string `json:"payment_id"`
}

ReqGetPaymentInfoExternalpay 获取收款项目的商户单号请求 文档:https://developer.work.weixin.qq.com/document/path/95936#获取收款项目的商户单号

type ReqGetPermanentCodeService

type ReqGetPermanentCodeService struct {
	// AuthCode <a href="#10974">临时授权码</a>,会在授权成功时附加在redirect_uri中跳转回第三方服务商网站,或通过<a href="#14951">授权成功通知</a>回调推送给服务商。长度为64至512个字节,必填
	AuthCode string `json:"auth_code"`
}

ReqGetPermanentCodeService 获取企业永久授权码请求 文档:https://developer.work.weixin.qq.com/document/path/90603#获取企业永久授权码

type ReqGetPermissionsAgent added in v1.4.0

type ReqGetPermissionsAgent struct{}

文档:https://developer.work.weixin.qq.com/document/path/99052#获取应用权限详情

type ReqGetPreAuthCodeService added in v1.2.0

type ReqGetPreAuthCodeService struct{}

ReqGetPreAuthCodeService 获取预授权码请求 文档:https://developer.work.weixin.qq.com/document/path/90601#获取预授权码

type ReqGetProviderTokenService

type ReqGetProviderTokenService struct {
	// Corpid 服务商的corpid,必填
	Corpid string `json:"corpid"`
	// ProviderSecret 服务商的secret,在服务商管理后台可见,必填
	ProviderSecret string `json:"provider_secret"`
}

ReqGetProviderTokenService 获取服务商凭证请求 文档:https://developer.work.weixin.qq.com/document/path/91200#获取服务商凭证

type ReqGetRangeMomentStrategy added in v1.2.9

type ReqGetRangeMomentStrategy struct {
	// Cursor 分页游标
	Cursor string `json:"cursor,omitempty"`
	// Limit 每个分页的成员/部门节点数,默认为1000,最大为1000
	Limit int `json:"limit,omitempty"`
	// StrategyID 规则组id,必填
	StrategyID int `json:"strategy_id"`
}

ReqGetRangeMomentStrategy 获取规则组管理范围请求 文档:https://developer.work.weixin.qq.com/document/path/94890#获取规则组管理范围

type ReqGetRegisterCodeService

type ReqGetRegisterCodeService struct {
	// AdminMobile 管理员手机号
	AdminMobile string `json:"admin_mobile"`
	// AdminName 管理员姓名
	AdminName string `json:"admin_name"`
	// CorpName 企业名称
	CorpName string `json:"corp_name"`
	// FollowUser 跟进人的userid,必须是服务商所在企业的成员。若配置该值,则由该注册码创建的企业,在服务商管理后台,该企业的报备记录会自动标注跟进人员为指定成员
	FollowUser string `json:"follow_user"`
	// State 用户自定义的状态值。只支持英文字母和数字,最长为128字节。若指定该参数, 接口 <a href="#11729/查询注册状态">查询注册状态</a> 及 <a href="#11729/注册完成回调事件">注册完成回调事件</a> 会相应返回该字段值
	State string `json:"state"`
	// TemplateID 推广包ID,最长为128个字节。在“<a href="https://open.work.weixin.qq.com/wwopen/developer">服务商管理端</a>-应用管理-推广二维码”,创建的推广码详情可查看。,必填
	TemplateID string `json:"template_id"`
}

ReqGetRegisterCodeService 获取注册码请求 文档:https://developer.work.weixin.qq.com/document/path/90581#获取注册码

type ReqGetSuiteTokenService

type ReqGetSuiteTokenService struct {
	// SuiteID 以ww或wx开头应用id(对应于旧的以tj开头的套件id),必填
	SuiteID string `json:"suite_id"`
	// SuiteSecret 应用secret,必填
	SuiteSecret string `json:"suite_secret"`
	// SuiteTicket 企业微信后台推送的ticket,必填
	SuiteTicket string `json:"suite_ticket"`
}

ReqGetSuiteTokenService 获取第三方应用凭证请求 文档:https://developer.work.weixin.qq.com/document/path/90600#获取第三方应用凭证

type ReqGetTag added in v1.2.0

type ReqGetTag struct {
	// Tagid 标签ID,必填
	Tagid int `json:"tagid"`
}

ReqGetTag 获取标签成员请求 文档:https://developer.work.weixin.qq.com/document/path/90349#获取标签成员

type ReqGetTemplateDetail added in v1.1.3

type ReqGetTemplateDetail struct {
	// 服务商审批模板的唯一标识id。可在“获取审批单据详情”、“审批状态变化回调通知”中获得,也可在服务商后台-应用管理-审批模板的模板编辑页面中获得。
	TemplateId string `json:"template_id"`
}

ReqGetTemplateDetail 获取审批模板详情 文档:https://developer.work.weixin.qq.com/document/path/92631#获取审批模板详情

type ReqGetUnassignedListExternalcontact

type ReqGetUnassignedListExternalcontact struct {
	// Cursor 分页查询游标,字符串类型,适用于数据量较大的情况,如果使用该参数则无需填写page_id,该参数由上一次调用返回
	Cursor string `json:"cursor"`
	// PageID 分页查询,要查询页号,从0开始
	PageID int `json:"page_id"`
	// PageSize 每次返回的最大记录数,默认为1000,最大值为1000
	PageSize int `json:"page_size"`
}

ReqGetUnassignedListExternalcontact 获取待分配的离职成员列表请求 文档:https://developer.work.weixin.qq.com/document/path/92273#获取待分配的离职成员列表

type ReqGetUnionOrderLicense added in v1.4.0

type ReqGetUnionOrderLicense struct {
	// Cursor 用于分页查询的游标,字符串类型,填写上一次调用返回的 next_cursor,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 返回的最大记录数,整型,最大值1000,默认值500
	Limit int `json:"limit,omitempty"`
	// OrderID 订单id,必填
	OrderID string `json:"order_id"`
}

ReqGetUnionOrderLicense 获取多企业订单详情请求 文档:https://developer.work.weixin.qq.com/document/path/98893#获取多企业订单详情

type ReqGetUploadByUrlResultMedia added in v1.2.9

type ReqGetUploadByUrlResultMedia struct {
	// Jobid 任务id。最长为128字节,<strong>60分钟内有效</strong>,必填
	Jobid string `json:"jobid"`
}

ReqGetUploadByUrlResultMedia 查询异步任务结果请求 文档:https://developer.work.weixin.qq.com/document/path/96219#查询异步任务结果

type ReqGetUser

type ReqGetUser struct {
	// Userid 成员UserID。对应管理端的帐号,企业内必须唯一。不区分大小写,长度为1~64个字节,必填
	Userid string `json:"userid"`
}

ReqGetUser 读取成员请求 文档:https://developer.work.weixin.qq.com/document/path/90332#读取成员

type ReqGetUseridByEmailUser added in v1.1.6

type ReqGetUseridByEmailUser struct {
	// Email 邮箱,必填
	Email string `json:"email"`
	// EmailType 邮箱类型:1-企业邮箱(默认);2-个人邮箱
	EmailType int `json:"email_type,omitempty"`
}

ReqGetUseridByEmailUser 邮箱获取userid请求 文档:https://developer.work.weixin.qq.com/document/path/95892#邮箱获取userid

type ReqGetcorpconfVacation added in v1.1.3

type ReqGetcorpconfVacation struct {
}

ReqGetcorpconfVacation 获取企业假期管理配置请求 文档:https://developer.work.weixin.qq.com/document/path/94211#获取企业假期管理配置

type ReqGetuserdetail3RdService

type ReqGetuserdetail3RdService struct {
	// UserTicket 成员票据,必填
	UserTicket string `json:"user_ticket"`
}

ReqGetuserdetail3RdService 获取访问用户敏感信息请求 文档:https://developer.work.weixin.qq.com/document/path/91122#获取访问用户敏感信息

type ReqGetuseridUser added in v1.1.6

type ReqGetuseridUser struct {
	// Mobile 用户在企业微信通讯录中的手机号码。长度为5~32个字节,必填
	Mobile string `json:"mobile"`
}

ReqGetuseridUser 手机号获取userid请求 文档:https://developer.work.weixin.qq.com/document/path/91693#手机号获取userid

type ReqGetuserinfo3RdService

type ReqGetuserinfo3RdService struct {
	// Code 通过成员授权获取到的code,最大为512字节。每次成员授权带上的code将不一样,code只能使用一次,5分钟未被使用自动过期。,必填
	Code string `json:"code"`
}

ReqGetuserinfo3RdService 获取访问用户身份请求 文档:https://developer.work.weixin.qq.com/document/path/91121#获取访问用户身份

type ReqGetuservacationquotaVacation added in v1.1.3

type ReqGetuservacationquotaVacation struct {
	Userid string `json:"userid"`
}

ReqGetuservacationquotaVacation 获取成员假期余额请求 文档:https://developer.work.weixin.qq.com/document/path/94212#获取成员假期余额

type ReqGroupchatStatistic

type ReqGroupchatStatistic struct {
	// DayBeginTime 起始日期的时间戳,填当天的0时0分0秒(否则系统自动处理为当天的0分0秒)。取值范围:昨天至前180天。,必填
	DayBeginTime int64 `json:"day_begin_time"`
	// DayEndTime 结束日期的时间戳,填当天的0时0分0秒(否则系统自动处理为当天的0分0秒)。取值范围:昨天至前180天。<br/><strong>如果不填,默认同 day_begin_time(即默认取一天的数据)</strong>
	DayEndTime  int64        `json:"day_end_time,omitempty"`
	OwnerFilter OwnerFilterP `json:"owner_filter"` // 群主过滤。<br/>如果不填,表示获取应用可见范围内全部群主的数据(但是不建议这么用,如果可见范围人数超过1000人,为了防止数据包过大,会报错 81017),必填
}

ReqGroupchatStatistic 按自然日聚合的方式请求 文档:https://developer.work.weixin.qq.com/document/path/93476#按自然日聚合的方式

type ReqImportChainContactCorpgroup added in v1.3.0

type ReqImportChainContactCorpgroup struct {
	// ChainID 上下游id。文件中的联系人将会被导入此上下游中,必填
	ChainID     string `json:"chain_id"`
	ContactList []struct {
		ContactInfoList []struct {
			// IdentityType 联系人身份类型。1:成员,2:负责人。,必填
			IdentityType int `json:"identity_type"`
			// Mobile 手机号。支持国内、国际手机号(国内手机号直接输入手机号即可,格式示例:“138****0001”;国际手机号必须包含加号以及国家地区码,格式示例:“+85259****45”,必填
			Mobile string `json:"mobile"`
			// Name 上下游联系人姓名。长度为1~32个utf8字符,必填
			Name string `json:"name"`
			// UserCustomID 上下游用户自定义 id。类型为字符串,暂时只支持传入64比特无符号整型,取值范围1到2^64-2,必须是全数字,不得传入前置0,且不能为11位或13位数字。
			UserCustomID string `json:"user_custom_id,omitempty"`
		} `json:"contact_info_list"` // 上下游联系人信息列表,必填
		// CorpName 上下游企业名称。长度为1-32个utf8字符。只能由中文、字母、数字和“ -_()()”六种字符组成,必填
		CorpName string `json:"corp_name"`
		// CustomID 上下游企业自定义 id。长度为0~64 个字节,只能由数字和字母组成
		CustomID string `json:"custom_id,omitempty"`
		// GroupPath 导入后企业所在分组。分组为空的企业会放在根分组下。仅针对新导入企业生效,不会修改已导入企业的分组。
		GroupPath string `json:"group_path,omitempty"`
	} `json:"contact_list"` // 上下游联系人列表。这些联系人将会被导入此上下游中,必填
}

ReqImportChainContactCorpgroup 批量导入上下游联系人请求 文档:https://developer.work.weixin.qq.com/document/path/95821

type ReqInviteBatch added in v1.2.0

type ReqInviteBatch struct {
	User  []string `json:"user"`
	Party []int    `json:"party"`
	Tag   []int    `json:"tag"`
}

ReqInviteBatch 成邀请成员请求 文档:https://developer.work.weixin.qq.com/document/path/91127#成邀请成员

type ReqListActivedAccountLicense

type ReqListActivedAccountLicense struct {
	// Corpid 企业corpid ,只支持加密的corpid,必填
	Corpid string `json:"corpid"`
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 返回的最大记录数,整型,最大值1000,默认值500
	Limit int `json:"limit,omitempty"`
}

ReqListActivedAccountLicense 获取企业的帐号列表请求 文档:https://developer.work.weixin.qq.com/document/path/95544#获取企业的帐号列表

type ReqListAgent added in v1.1.2

type ReqListAgent struct{}

ReqListAgent 获取access_token对应的应用列表请求 文档:https://developer.work.weixin.qq.com/document/path/90363#获取access_token对应的应用列表

type ReqListAppShareInfoCorp added in v1.1.7

type ReqListAppShareInfoCorp struct {
	// Agentid 上级/上游企业应用agentid,必填
	Agentid int `json:"agentid"`
	// BusinessType 填0则为企业互联/局校互联,填1则表示上下游企业
	BusinessType int `json:"business_type,omitempty"`
	// Corpid 下级/下游企业corpid,若指定该参数则表示拉取该下级/下游企业的应用共享信息
	Corpid string `json:"corpid,omitempty"`
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 返回的最大记录数,整型,最大值100,默认情况或者值为0表示下拉取全量数据,建议分页拉取或者通过指定corpid参数拉取。
	Limit int `json:"limit,omitempty"`
}

ReqListAppShareInfoCorp 获取应用共享信息请求 文档:https://developer.work.weixin.qq.com/document/path/95324#获取应用共享信息

type ReqListContactWayExternalcontact

type ReqListContactWayExternalcontact struct {
	// Cursor 分页查询使用的游标,为上次请求返回的 <code>next_cursor</code>
	Cursor string `json:"cursor"`
	// EndTime 「联系我」创建结束时间戳, 默认为当前时间
	EndTime int `json:"end_time"`
	// Limit 每次查询的分页大小,默认为100条,最多支持1000条
	Limit int `json:"limit"`
	// StartTime 「联系我」创建起始时间戳, 默认为90天前
	StartTime int `json:"start_time"`
}

ReqListContactWayExternalcontact 获取企业已配置的「联系我」列表请求 文档:https://developer.work.weixin.qq.com/document/path/92577#获取企业已配置的「联系我」列表

type ReqListDepartment

type ReqListDepartment struct {
	// ID 部门id。获取指定部门及其下的子部门(以及子部门的子部门等等,递归)。 如果不填,默认获取全量组织架构
	ID int `json:"id"`
}

ReqListDepartment 获取部门列表请求 文档:https://developer.work.weixin.qq.com/document/path/90344#获取部门列表

type ReqListExternalcontact

type ReqListExternalcontact struct {
	// Userid 企业成员的userid,必填
	Userid string `json:"userid"`
}

ReqListExternalcontact 获取客户列表请求 文档:https://developer.work.weixin.qq.com/document/path/92264#获取客户列表

type ReqListGroupchat

type ReqListGroupchat struct {
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用不填
	Cursor string `json:"cursor"`
	// Limit 分页,预期请求的数据量,取值范围 1 ~ 1000,必填
	Limit       int                  `json:"limit"`
	OwnerFilter GroupchatOwnerFilter `json:"owner_filter"` // 群主过滤。<br/>如果不填,表示获取应用可见范围内全部群主的数据(但是不建议这么用,如果可见范围人数超过1000人,为了防止数据包过大,会报错 81017)
	// StatusFilter 客户群跟进状态过滤。<br/>0 - 所有列表(即不过滤)<br/>1 - 离职待继承<br/>2 - 离职继承中<br/>3 - 离职继承完成<br/><br/>默认为0
	StatusFilter int `json:"status_filter"`
}

type ReqListIdUser added in v1.2.3

type ReqListIdUser struct {
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 分页,预期请求的数据量,取值范围 1 ~ 10000
	Limit int `json:"limit,omitempty"`
}

ReqListIdUser 获取成员ID列表请求 文档:https://developer.work.weixin.qq.com/document/path/96021#获取成员ID列表

type ReqListLinkCustomerAcquisition added in v1.4.0

type ReqListLinkCustomerAcquisition struct {
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 返回的最大记录数,整型,最大值100
	Limit int `json:"limit,omitempty"`
}

ReqListLinkCustomerAcquisition 获取获客链接列表请求 文档:https://developer.work.weixin.qq.com/document/path/97297#获取获客链接列表

type ReqListMemberAuthUser added in v1.2.0

type ReqListMemberAuthUser struct {
	// Cursor 上一次调用时返回的next_cursor,第一次拉取可以不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 每次拉取的数据量,默认值和最大值都为1000
	Limit int `json:"limit,omitempty"`
}

ReqListMemberAuthUser 获取成员授权列表请求 文档:https://developer.work.weixin.qq.com/document/path/94513#获取成员授权列表

type ReqListMomentStrategy added in v1.2.9

type ReqListMomentStrategy struct {
	// Cursor 分页查询游标,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 分页大小,默认为1000,最大不超过1000
	Limit int `json:"limit,omitempty"`
}

ReqListMomentStrategy 获取规则组列表请求 文档:https://developer.work.weixin.qq.com/document/path/94890#获取规则组列表

type ReqListOrderAccountLicense

type ReqListOrderAccountLicense struct {
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
	// Limit 返回的最大记录数,整型,最大值1000,默认值500
	Limit int `json:"limit,omitempty"`
	// OrderID 订单号,必填
	OrderID string `json:"order_id"`
}

ReqListOrderAccountLicense 获取订单中的帐号列表请求 文档:https://developer.work.weixin.qq.com/document/path/95649#获取订单中的帐号列表

type ReqListOrderLicense

type ReqListOrderLicense struct {
	// Corpid 企业id,只支持加密的corpid。若指定corpid且corpid为服务商测试企业,则返回的订单列表为测试订单列表。否则只返回正式订单列表
	Corpid string `json:"corpid,omitempty"`
	// StartTime 开始时间,下单时间。可不填。但是不能单独指定该字段,start_time跟end_time必须同时指定。
	StartTime int `json:"start_time,omitempty"`
	// EndTime 结束时间,下单时间。起始时间跟结束时间不能超过31天。可不填。但是不能单独指定该字段,start_time跟end_time必须同时指定。
	EndTime int `json:"end_time,omitempty"`
	// Limit 返回的最大记录数,整型,最大值1000,默认值500
	Limit int `json:"limit,omitempty"`
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
}

ReqListOrderLicense 获取订单列表请求 文档:https://developer.work.weixin.qq.com/document/path/95647#获取订单列表

type ReqListSelectedTicketUserUser added in v1.2.0

type ReqListSelectedTicketUserUser struct {
	// SelectedTicket <a href="#30288" rel="nofollow">选人jsapi返回的selectedTicket</a>,必填
	SelectedTicket string `json:"selected_ticket"`
}

ReqListSelectedTicketUserUser 成获取选人ticket对应的用户请求 文档:https://developer.work.weixin.qq.com/document/path/94894#成获取选人ticket对应的用户

type ReqListTag added in v1.2.0

type ReqListTag struct{}

ReqListTag 获取标签列表请求 文档:https://developer.work.weixin.qq.com/document/path/90352#获取标签列表

type ReqListUser

type ReqListUser struct {
	// DepartmentID 获取的部门id,必填
	DepartmentID int `json:"department_id"`
	// FetchChild 1/0:是否递归获取子部门下面的成员
	FetchChild int `json:"fetch_child"`
}

ReqListUser 获取部门成员详情请求 文档:https://developer.work.weixin.qq.com/document/path/90337#获取部门成员详情

type ReqMarkTagExternalcontact

type ReqMarkTagExternalcontact struct {
	// AddTag 要标记的标签列表
	AddTag []string `json:"add_tag,omitempty"`
	// ExternalUserid 外部联系人userid,必填
	ExternalUserid string `json:"external_userid"`
	// RemoveTag 要移除的标签列表
	RemoveTag []string `json:"remove_tag,omitempty"`
	// Userid 添加外部联系人的userid,必填
	Userid string `json:"userid"`
}

ReqMarkTagExternalcontact 编辑客户企业标签请求 文档:https://developer.work.weixin.qq.com/document/path/92697#编辑客户企业标签

type ReqNewOrderJobResultLicense added in v1.4.0

type ReqNewOrderJobResultLicense struct {
	// Jobid 多企业新购任务id,必填
	Jobid string `json:"jobid"`
}

ReqNewOrderJobResultLicense 获取多企业新购订单提交结果请求 文档:https://developer.work.weixin.qq.com/document/path/98892#获取多企业新购订单提交结果

type ReqOnjobTransferGroupchat added in v1.0.13

type ReqOnjobTransferGroupchat struct {
	// ChatIDList 需要转群主的客户群ID列表。取值范围: 1 ~ 100,必填
	ChatIDList []string `json:"chat_id_list"`
	// NewOwner 新群主ID,必填
	NewOwner string `json:"new_owner"`
}

ReqOnjobTransferGroupchat 分配在职成员的客户群请求 文档:https://developer.work.weixin.qq.com/document/path/95703#分配在职成员的客户群

type ReqOpenOrderPaytool added in v1.3.1

type ReqOpenOrderPaytool struct {
	BusinessType       int                `json:"business_type"`
	PayType            int                `json:"pay_type"`
	BankReceiptMediaId string             `json:"bank_receipt_media_id,omitempty"`
	Creator            string             `json:"creator,omitempty"`
	CustomCorpid       string             `json:"custom_corpid,omitempty"`
	ProductList        PaytoolProductList `json:"product_list"`
	NonceStr           string             `json:"nonce_str"`
	Ts                 int                `json:"ts"`
	Sig                string             `json:"sig"`
}

type ReqOpengidToChatidExternalcontact added in v1.2.0

type ReqOpengidToChatidExternalcontact struct {
	// Opengid 小程序在微信获取到的群ID,参见<a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/group/wx.getGroupEnterInfo.html" rel="nofollow">wx.getGroupEnterInfo</a>,必填
	Opengid string `json:"opengid"`
}

ReqOpengidToChatidExternalcontact 客户群opengid转换请求 文档:https://developer.work.weixin.qq.com/document/path/94828#客户群opengid转换

type ReqProlongTryService added in v1.2.9

type ReqProlongTryService struct {
	// Appid 仅旧套件需要填此参数
	Appid int `json:"appid,omitempty"`
	// BuyerCorpid 购买方corpid,必填
	BuyerCorpid string `json:"buyer_corpid"`
	// ProlongDays 延长天数,必填
	ProlongDays int `json:"prolong_days"`
}

ReqProlongTryService 延长试用期请求 文档:https://developer.work.weixin.qq.com/document/path/91913#延长试用期

type ReqRecallMessage added in v1.2.9

type ReqRecallMessage struct {
	// Msgid 消息ID。从应用发送消息接口处获得。,必填
	Msgid string `json:"msgid"`
}

ReqRecallMessage 撤回应用消息请求 文档:https://developer.work.weixin.qq.com/document/path/94947#撤回应用消息

type ReqRemarkExternalcontact

type ReqRemarkExternalcontact struct {
	// Description 此用户对外部联系人的描述,最多150个字符
	Description string `json:"description,omitempty"`
	// ExternalUserid 外部联系人userid,必填
	ExternalUserid string `json:"external_userid"`
	// Remark 此用户对外部联系人的备注,最多20个字符
	Remark string `json:"remark,omitempty"`
	// RemarkCompany 此用户对外部联系人备注的所属公司名称,最多20个字符
	RemarkCompany string `json:"remark_company,omitempty"`
	// RemarkMobiles 此用户对外部联系人备注的手机号
	RemarkMobiles []string `json:"remark_mobiles,omitempty"`
	// RemarkPicMediaid 备注图片的mediaid,
	RemarkPicMediaid string `json:"remark_pic_mediaid,omitempty"`
	// Userid 企业成员的userid,必填
	Userid string `json:"userid"`
}

ReqRemarkExternalcontact 修改客户备注信息请求 文档:https://developer.work.weixin.qq.com/document/path/92694#修改客户备注信息

type ReqRemindGroupmsgSendExternalcontact added in v1.2.9

type ReqRemindGroupmsgSendExternalcontact struct {
	// Msgid 群发消息的id,通过获取群发记录列表接口返回,必填
	Msgid string `json:"msgid"`
}

ReqRemindGroupmsgSendExternalcontact 提醒成员群发请求 文档:https://developer.work.weixin.qq.com/document/path/97610#提醒成员群发

type ReqRemoveCorpCorp added in v1.3.0

type ReqRemoveCorpCorp struct {
	// ChainID 上下游id,必填
	ChainID string `json:"chain_id"`
	// Corpid 需要移除的下游企业corpid
	Corpid string `json:"corpid,omitempty"`
	// PendingCorpid 需要移除的未加入下游企业corpid,corpid和pending_corpid至少填一个,都填corpid生效
	PendingCorpid string `json:"pending_corpid,omitempty"`
}

ReqRemoveCorpCorp 移除企业请求 文档:https://developer.work.weixin.qq.com/document/path/95822#移除企业

type ReqSearchContact added in v1.1.4

type ReqSearchContact struct {
	// Agentid 应用id,若非0则只返回应用可见范围内的用户或者部门信息
	Agentid int `json:"agentid,omitempty"`
	// AuthCorpid 查询的企业corpid,必填
	AuthCorpid string `json:"auth_corpid"`
	// FullMatchField 精确匹配的字段。1:匹配用户名称或者部门名称 2:匹配用户英文名。不填则为模糊匹配
	FullMatchField int `json:"full_match_field,omitempty"`
	// Limit 查询返回的最大数量,默认为50,最多为200,查询返回的数量可能小于limit指定的值
	Limit int `json:"limit,omitempty"`
	// Offset 查询的偏移量,每次调用的offset在上一次offset基础上加上limit
	Offset int `json:"offset,omitempty"`
	// QueryType 查询类型 1:查询用户,返回用户userid列表 2:查询部门,返回部门id列表。 不填该字段或者填0代表同时查询部门跟用户
	QueryType int `json:"query_type,omitempty"`
	// QueryWord 搜索关键词。当查询用户时应为用户名称、名称拼音或者英文名;当查询部门时应为部门名称或者部门名称拼音,必填
	QueryWord string `json:"query_word"`
	// QueryRange 查询范围,仅查询类型包含用户时有效。 0:只查询在职用户 1:同时查询在职和离职用户
	QueryRange int `json:"query_range"`
	// Cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填
	Cursor string `json:"cursor,omitempty"`
}

ReqSearchContact 通讯录单个搜索请求 文档:https://developer.work.weixin.qq.com/document/path/91844#通讯录单个搜索

type ReqSendWelcomeMsgExternalcontact added in v1.2.0

type ReqSendWelcomeMsgExternalcontact struct {
	Attachments []struct {
		File        ReqSendWelcomeMsgExternalcontactFile        `json:"file"`
		Image       ReqSendWelcomeMsgExternalcontactImage       `json:"image"`
		Link        ReqSendWelcomeMsgExternalcontactLink        `json:"link"`
		Miniprogram ReqSendWelcomeMsgExternalcontactMiniprogram `json:"miniprogram"`
		// Msgtype 附件类型,可选image、link、miniprogram或者video,必填
		Msgtype string                                `json:"msgtype"`
		Video   ReqSendWelcomeMsgExternalcontactVideo `json:"video"`
	} `json:"attachments,omitempty"` // 附件,最多可添加9个附件
	Text ReqSendWelcomeMsgExternalcontactText `json:"text"`
	// WelcomeCode 通过<a href="#15260/%E6%B7%BB%E5%8A%A0%E5%A4%96%E9%83%A8%E8%81%94%E7%B3%BB%E4%BA%BA%E4%BA%8B%E4%BB%B6" rel="nofollow">添加外部联系人事件</a>推送给企业的发送欢迎语的凭证,有效期为<strong>20秒</strong>,必填
	WelcomeCode string `json:"welcome_code"`
}

type ReqSendWelcomeMsgExternalcontactFile added in v1.2.0

type ReqSendWelcomeMsgExternalcontactFile struct {
	// MediaID 图片的media_id,可以通过素材管理接口获得
	MediaID string `json:"media_id,omitempty"`
}

ReqSendWelcomeMsgExternalcontact 发送新客户欢迎语请求 文档:https://developer.work.weixin.qq.com/document/path/92599#发送新客户欢迎语

type ReqSendWelcomeMsgExternalcontactImage added in v1.2.0

type ReqSendWelcomeMsgExternalcontactImage struct {
	// MediaID 视频的media_id,可以通过素材管理接口获得,必填
	// MediaID 文件的media_id,  可以通过素材管理接口获得,必填
	// MediaID 图片的media_id,可以通过素材管理接口获得
	MediaID string `json:"media_id,omitempty"`
	// PicURL 图片的链接,仅可使用上传图片接口得到的链接
	PicURL string `json:"pic_url,omitempty"`
}

ReqSendWelcomeMsgExternalcontact 发送新客户欢迎语请求 文档:https://developer.work.weixin.qq.com/document/path/92599#发送新客户欢迎语

type ReqSendWelcomeMsgExternalcontactLink struct {
	// Desc 图文消息的描述,最长为512字节
	Desc string `json:"desc,omitempty"`
	// Picurl 图文消息封面的url
	Picurl string `json:"picurl,omitempty"`
	// Title 图文消息标题,最长为128字节,必填
	// Title 小程序消息标题,最长为64字节,必填
	Title string `json:"title"`
	// URL 图文消息的链接,必填
	URL string `json:"url"`
}

ReqSendWelcomeMsgExternalcontact 发送新客户欢迎语请求 文档:https://developer.work.weixin.qq.com/document/path/92599#发送新客户欢迎语

type ReqSendWelcomeMsgExternalcontactMiniprogram added in v1.2.0

type ReqSendWelcomeMsgExternalcontactMiniprogram struct {
	// Appid 小程序appid,必须是关联到企业的小程序应用,必填
	Appid string `json:"appid"`
	// Page 小程序page路径,必填
	Page string `json:"page"`
	// PicMediaID 小程序消息封面的mediaid,封面图建议尺寸为520*416,必填
	PicMediaID string `json:"pic_media_id"`
	// Title 图文消息标题,最长为128字节,必填
	// Title 小程序消息标题,最长为64字节,必填
	Title string `json:"title"`
}

ReqSendWelcomeMsgExternalcontact 发送新客户欢迎语请求 文档:https://developer.work.weixin.qq.com/document/path/92599#发送新客户欢迎语

type ReqSendWelcomeMsgExternalcontactText added in v1.2.0

type ReqSendWelcomeMsgExternalcontactText struct {
	// Content 消息文本内容,最长为4000字节
	Content string `json:"content,omitempty"`
}

ReqSendWelcomeMsgExternalcontact 发送新客户欢迎语请求 文档:https://developer.work.weixin.qq.com/document/path/92599#发送新客户欢迎语

type ReqSendWelcomeMsgExternalcontactVideo added in v1.2.0

type ReqSendWelcomeMsgExternalcontactVideo struct {
	// MediaID 视频的media_id,可以通过素材管理接口获得,必填
	// MediaID 文件的media_id,  可以通过素材管理接口获得,必填
	// MediaID 图片的media_id,可以通过素材管理接口获得
	MediaID string `json:"media_id,omitempty"`
}

ReqSendWelcomeMsgExternalcontact 发送新客户欢迎语请求 文档:https://developer.work.weixin.qq.com/document/path/92599#发送新客户欢迎语

type ReqSentFileBody

type ReqSentFileBody struct {
	MediaId string `json:"media_id"` // 文件id,可以调用上传临时素材接口获取
}

文件消息

type ReqSentImageBody

type ReqSentImageBody struct {
	MediaId string `json:"media_id"` // 图片媒体文件id,可以调用上传临时素材接口获取
}

图片消息

type ReqSentMarkdownBody

type ReqSentMarkdownBody struct {
	Content string `json:"content"` // markdown内容,最长不超过2048个字节,必须是utf8编码
}

markdown消息

type ReqSentMessageCard

type ReqSentMessageCard struct {
	ToUser                 string                     `json:"touser,omitempty"`                   // 成员ID列表(消息接收者,多个接收者用‘|’分隔,最多支持1000个)。特殊情况:指定为@all,则向关注该企业应用的全部成员发送
	ToParty                string                     `json:"toparty,omitempty"`                  // 部门ID列表,多个接收者用‘|’分隔,最多支持100个。当touser为@all时忽略本参数
	ToTag                  string                     `json:"totag,omitempty"`                    // 标签ID列表,多个接收者用‘|’分隔,最多支持100个。当touser为@all时忽略本参数
	MsgType                string                     `json:"msgtype"`                            // 消息类型,如text/image/file
	AgentId                int                        `json:"agentid"`                            // 企业应用的id,整型。企业内部开发,可在应用的设置页面查看;第三方服务商,可通过接口 获取企业授权信息 获取该参数值
	EnableIdTrans          int                        `json:"enable_id_trans,omitempty"`          // 表示是否开启id转译,0表示否,1表示是,默认0
	EnableDuplicateCheck   int                        `json:"enable_duplicate_check,omitempty"`   // 表示是否开启重复消息检查,0表示否,1表示是,默认0
	DuplicateCheckInterval int                        `json:"duplicate_check_interval,omitempty"` // 表示是否重复消息检查的时间间隔,默认1800s,最大不超过4小时
	Safe                   int                        `json:"safe,omitempty"`                     // 表示是否是保密消息,0表示可对外分享,1表示不能分享且内容显示水印,2表示仅限在企业内分享,默认为0;注意仅mpnews类型的消息支持safe值为2,其他消息类型不支持
	Text                   ReqSentTextBody            `json:"text"`
	Image                  ReqSentImageBody           `json:"image"`
	Voice                  ReqSentVoiceBody           `json:"voice"`
	Video                  ReqSentVideoBody           `json:"video"`
	File                   ReqSentFileBody            `json:"file"`
	Textcard               ReqSentMessageCardTextBody `json:"textcard"`
	News                   ReqSentMessageCardNewsBody `json:"news"`
	Mpnews                 ReqSentMpNewsArticle       `json:"mpnews"`
	Markdown               ReqSentMarkdownBody        `json:"markdown"`
}

type ReqSentMessageCardMiniNotice

type ReqSentMessageCardMiniNotice struct {
	ToUser                 string             `json:"touser,omitempty"`                   // 成员ID列表(消息接收者,多个接收者用‘|’分隔,最多支持1000个)。特殊情况:指定为@all,则向关注该企业应用的全部成员发送
	ToParty                string             `json:"toparty,omitempty"`                  // 部门ID列表,多个接收者用‘|’分隔,最多支持100个。当touser为@all时忽略本参数
	ToTag                  string             `json:"totag,omitempty"`                    // 标签ID列表,多个接收者用‘|’分隔,最多支持100个。当touser为@all时忽略本参数
	MsgType                string             `json:"msgtype"`                            // 消息类型,如text/image/file
	EnableIdTrans          string             `json:"enable_id_trans,omitempty"`          // 表示是否开启id转译,0表示否,1表示是,默认0
	EnableDuplicateCheck   string             `json:"enable_duplicate_check,omitempty"`   // 表示是否开启重复消息检查,0表示否,1表示是,默认0
	DuplicateCheckInterval string             `json:"duplicate_check_interval,omitempty"` // 表示是否重复消息检查的时间间隔,默认1800s,最大不超过4小时
	MiniprogramNotice      SentMiniNoticeBody `json:"miniprogram_notice"`
}

type ReqSentMessageCardNewsArticleBody

type ReqSentMessageCardNewsArticleBody struct {
	Title       string `json:"title"`       // 标题,不超过128个字节,超过会自动截断(支持id转译)
	Description string `json:"description"` // 描述,不超过512个字节,超过会自动截断(支持id转译)
	Url         string `json:"url"`         // 点击后跳转的链接。 最长2048字节,请确保包含了协议头(http/https),小程序或者url必须填写一个
	UrlImg      string `json:"picurl"`      // 图文消息的图片链接,支持JPG、PNG格式,较好的效果为大图 1068*455,小图150*150。
	Appid       string `json:"appid"`       // 小程序appid,必须是与当前应用关联的小程序,appid和pagepath必须同时填写,填写后会忽略url字段
	Pagepath    string `json:"pagepath"`    // 点击消息卡片后的小程序页面,仅限本小程序内的页面。appid和pagepath必须同时填写,填写后会忽略url字段
}

图文消息

type ReqSentMessageCardNewsBody

type ReqSentMessageCardNewsBody struct {
	Articles []ReqSentMessageCardNewsArticleBody `json:"articles"`
}

type ReqSentMessageCardTemplateCard

type ReqSentMessageCardTemplateCard struct {
	ToUser                 string               `json:"touser,omitempty"`                   // 成员ID列表(消息接收者,多个接收者用‘|’分隔,最多支持1000个)。特殊情况:指定为@all,则向关注该企业应用的全部成员发送
	ToParty                string               `json:"toparty,omitempty"`                  // 部门ID列表,多个接收者用‘|’分隔,最多支持100个。当touser为@all时忽略本参数
	ToTag                  string               `json:"totag,omitempty"`                    // 标签ID列表,多个接收者用‘|’分隔,最多支持100个。当touser为@all时忽略本参数
	MsgType                string               `json:"msgtype"`                            // 消息类型,如text/image/file
	AgentId                int                  `json:"agentid"`                            // 企业应用的id,整型。企业内部开发,可在应用的设置页面查看;第三方服务商,可通过接口 获取企业授权信息 获取该参数值
	EnableIdTrans          int                  `json:"enable_id_trans,omitempty"`          // 表示是否开启id转译,0表示否,1表示是,默认0
	EnableDuplicateCheck   int                  `json:"enable_duplicate_check,omitempty"`   // 表示是否开启重复消息检查,0表示否,1表示是,默认0
	DuplicateCheckInterval int                  `json:"duplicate_check_interval,omitempty"` // 表示是否重复消息检查的时间间隔,默认1800s,最大不超过4小时
	TemplateCard           SentTemplateCardBody `json:"template_card"`
}

type ReqSentMessageCardTemplateMsg

type ReqSentMessageCardTemplateMsg struct {
	ToUser             string          `json:"touser,omitempty"`          // 成员ID列表(消息接收者,多个接收者用‘|’分隔,最多支持1000个)。特殊情况:指定为@all,则向关注该企业应用的全部成员发送
	ToParty            string          `json:"toparty,omitempty"`         // 部门ID列表,多个接收者用‘|’分隔,最多支持100个。当touser为@all时忽略本参数
	ToTag              string          `json:"totag,omitempty"`           // 标签ID列表,多个接收者用‘|’分隔,最多支持100个。当touser为@all时忽略本参数
	MsgType            string          `json:"msgtype"`                   // 消息类型,如text/image/file
	AgentId            int             `json:"agentid"`                   // 企业应用的id,整型。企业内部开发,可在应用的设置页面查看;第三方服务商,可通过接口 获取企业授权信息 获取该参数值
	EnableIdTrans      int             `json:"enable_id_trans,omitempty"` // 表示是否开启id转译,0表示否,1表示是,默认0
	SelectedTicketList []string        `json:"selected_ticket_list"`      // 选人sdk或者选人jsapi返回的ticket列表,列表不超过10个。接收者不包含selected_tikcet的操作者,若要发送给操作者,可将操作者填到touser字段。
	TemplateMsg        SentTemplateMsg `json:"template_msg"`
	OnlyUnauth         bool            `json:"only_unauth"` // 仅向selected_ticket_list中未授权的用户发送模板消息,仅当selected_ticket_list存在时该字段生效。如果该字段为true,则自动忽略touser,toparty,totag
}

type ReqSentMessageCardTextBody

type ReqSentMessageCardTextBody struct {
	Title       string `json:"title"`       // 标题,不超过128个字节,超过会自动截断
	Description string `json:"description"` // 描述,不超过512个字节,超过会自动截断
	Url         string `json:"url"`         // 点击后跳转的链接。 最长2048字节,请确保包含了协议头(http/https),小程序或者url必须填写一个
	BtnTxt      string `json:"btntxt"`      // 按钮文字。 默认为“详情”, 不超过4个文字,超过自动截断。
}

文本卡片

type ReqSentMpNewsArticle

type ReqSentMpNewsArticle struct {
	Title            string `json:"title"`              // 标题,不超过128个字节,超过会自动截断(支持id转译)
	ThumbMediaId     string `json:"thumb_media_id"`     // 图文消息缩略图的media_id, 可以通过素材管理接口获得。此处thumb_media_id即上传接口返回的media_id
	Author           string `json:"author"`             // 图文消息的作者,不超过64个字节
	ContentSourceUrl string `json:"content_source_url"` // 图文消息点击“阅读原文”之后的页面链接
	Content          string `json:"content"`            // 图文消息的内容,支持html标签,不超过666 K个字节(支持id转译)
	Digest           string `json:"digest"`             // 图文消息的描述,不超过512个字节,超过会自动截断(支持id转译)
}

图文消息(mpnews)

type ReqSentMpNewsBody

type ReqSentMpNewsBody struct {
	Articles []ReqSentMpNewsArticle `json:"articles"`
}

type ReqSentTextBody

type ReqSentTextBody struct {
	Content string `json:"content"` // 消息内容,最长不超过2048个字节,超过将截断(支持id转译)
}

文本消息

type ReqSentVideoBody

type ReqSentVideoBody struct {
	MediaId     string `json:"media_id"`    // 视频媒体文件id,可以调用上传临时素材接口获取
	Title       string `json:"title"`       // 视频消息的标题,不超过128个字节,超过会自动截断
	Description string `json:"description"` // 视频消息的描述,不超过512个字节,超过会自动截断
}

视频消息

type ReqSentVoiceBody

type ReqSentVoiceBody struct {
	MediaId string `json:"media_id"` // 语音文件id,可以调用上传临时素材接口获取
}

语音消息

type ReqSetAutoActiveStatusLicense added in v1.0.13

type ReqSetAutoActiveStatusLicense struct {
	// AutoActiveStatus 许可自动激活状态。0:关闭,1:打开,必填
	AutoActiveStatus int `json:"auto_active_status"`
	// Corpid 企业corpid,要求服务商为企业购买过接口许可,购买指支付完成,购买并退款成功包括在内,必填
	Corpid string `json:"corpid"`
}

ReqSetAutoActiveStatusLicense 设置企业的许可自动激活状态请求 文档:https://developer.work.weixin.qq.com/document/path/95873#设置企业的许可自动激活状态

type ReqSetSessionInfoService added in v1.2.0

type ReqSetSessionInfoService struct {
	// PreAuthCode 预授权码,必填
	PreAuthCode string `json:"pre_auth_code"`
	SessionInfo struct {
		// Appid 允许进行授权的应用id,如1、2、3, 不填或者填空数组都表示允许授权套件内所有应用(仅旧的多应用套件可传此参数,新开发者可忽略)
		Appid []int `json:"appid,omitempty"`
		// AuthType 授权类型:0 正式授权, 1 测试授权。 默认值为0。<font data-color="red" color="red">注意,请确保应用在正式发布后的授权类型为“正式授权”<font></font></font>
		AuthType int `json:"auth_type,omitempty"`
	} `json:"session_info"` // 本次授权过程中需要用到的会话信息,必填
}

ReqSetSessionInfoService 设置授权配置请求 文档:https://developer.work.weixin.qq.com/document/path/90602#设置授权配置

type ReqSetoneuserquotaVacation added in v1.1.3

type ReqSetoneuserquotaVacation struct {
	Leftduration int    `json:"leftduration"`
	Remarks      string `json:"remarks"`
	TimeAttr     int    `json:"time_attr"`
	Userid       string `json:"userid"`
	VacationID   int    `json:"vacation_id"`
}

ReqSetoneuserquotaVacation 修改成员假期余额请求 文档:https://developer.work.weixin.qq.com/document/path/94213#修改成员假期余额

type ReqSimplelistDepartment

type ReqSimplelistDepartment struct {
	// ID 部门id。获取指定部门及其下的子部门(以及子部门的子部门等等,递归)。 如果不填,默认获取全量组织架构
	ID int `json:"id"`
}

ReqSimplelistDepartment 获取子部门ID列表请求 文档:https://developer.work.weixin.qq.com/document/path/95406#获取子部门ID列表

type ReqSimplelistUser

type ReqSimplelistUser struct {
	// DepartmentID 获取的部门id,必填
	DepartmentID int `json:"department_id"`
	// FetchChild 是否递归获取子部门下面的成员:1-递归获取,0-只获取本部门
	FetchChild int `json:"fetch_child"`
}

ReqSimplelistUser 获取部门成员请求 文档:https://developer.work.weixin.qq.com/document/path/90336#获取部门成员

type ReqSortContact added in v1.2.9

type ReqSortContact struct {
	// AuthCorpid 查询的企业corpid,必填
	AuthCorpid  string `json:"auth_corpid"`
	SortOptions []struct {
		// SortField 排序属性。0:  根据姓名拼音排序,1: 根据别名排序
		SortField int `json:"sort_field,omitempty"`
		// SortType 排序方式。0:  升序排列,1: 降序排列
		SortType int `json:"sort_type,omitempty"`
	} `json:"sort_options,omitempty"` // 排序选项列表。如果指定多个,将根据优先级排序。如示例参数,先根据姓名拼音降序排列,如果姓名拼音相同,再根据别名升序排列
	// Useridlist 要排序的userid列表,最多支持1000个,必填
	Useridlist []string `json:"useridlist"`
}

ReqSortContact 通讯录userid排序请求 文档:https://developer.work.weixin.qq.com/document/path/92093#通讯录userid排序

type ReqStatisticGroupchat added in v1.2.3

type ReqStatisticGroupchat struct {
	// DayBeginTime 起始日期的时间戳,填当天的0时0分0秒(否则系统自动处理为当天的0分0秒)。取值范围:昨天至前180天。,必填
	DayBeginTime int `json:"day_begin_time"`
	// DayEndTime 结束日期的时间戳,填当天的0时0分0秒(否则系统自动处理为当天的0分0秒)。取值范围:昨天至前180天。<br/><strong>如果不填,默认同 day_begin_time(即默认取一天的数据)</strong>
	DayEndTime int `json:"day_end_time,omitempty"`
	// Limit 分页,预期请求的数据量,默认为500,取值范围 1 ~ 1000
	Limit int `json:"limit,omitempty"`
	// Offset 分页,偏移量, 默认为0
	Offset int `json:"offset,omitempty"`
	// OrderAsc 是否升序。0-否;1-是。默认降序
	OrderAsc int `json:"order_asc,omitempty"`
	// OrderBy 排序方式。<br/>1 - 新增群的数量<br/>2 - 群总数<br/>3 - 新增群人数<br/>4 - 群总人数<br/><br/>默认为1
	OrderBy     int          `json:"order_by,omitempty"`
	OwnerFilter OwnerFilterP `json:"owner_filter"` // 群主过滤。<br/>如果不填,表示获取应用可见范围内全部群主的数据(但是不建议这么用,如果可见范围人数超过1000人,为了防止数据包过大,会报错 81017),必填
}

ReqStatisticGroupchat 按群主聚合的方式请求 文档:https://developer.work.weixin.qq.com/document/path/93476#按群主聚合的方式

type ReqSubmitNewOrderJobLicense added in v1.4.0

type ReqSubmitNewOrderJobLicense struct {
	// BuyerUserid 下单人。服务商企业内成员userid。该userid必须登录过企业微信,并且企业微信已绑定微信,必填
	BuyerUserid string `json:"buyer_userid"`
	// Jobid 多企业新购任务id,必填
	Jobid string `json:"jobid"`
}

ReqSubmitNewOrderJobLicense 提交多企业新购订单请求 文档:https://developer.work.weixin.qq.com/document/path/98892#提交多企业新购订单

type ReqSubmitOrderJobLicense

type ReqSubmitOrderJobLicense struct {
	AccountDuration struct {
		// Months 购买的月数,每个月按照31天计算。最多购买36个月。(若企业为服务商测试企业,每次续期只能续期1个月),必填
		Months int `json:"months"`
	} `json:"account_duration"` // 账号购买时长,必填
	// BuyerUserid 下单人。服务商企业内成员userid。该userid必须登录过企业微信,并且企业微信已绑定微信,必填
	BuyerUserid string `json:"buyer_userid"`
	// Jobid 任务id,必填
	Jobid string `json:"jobid"`
}

ReqSubmitOrderJobLicense 提交续期订单请求 文档:https://developer.work.weixin.qq.com/document/path/95646#提交续期订单

type ReqTransferCustomerExternalcontact

type ReqTransferCustomerExternalcontact struct {
	// ExternalUserid 客户的external_userid列表,每次最多分配100个客户,必填
	ExternalUserid []string `json:"external_userid"`
	// HandoverUserid 原跟进成员的userid,必填
	HandoverUserid string `json:"handover_userid"`
	// TakeoverUserid 接替成员的userid,必填
	TakeoverUserid string `json:"takeover_userid"`
	// TransferSuccessMsg 转移成功后发给客户的消息,最多200个字符,不填则使用默认文案
	TransferSuccessMsg string `json:"transfer_success_msg"`
}

ReqTransferCustomerExternalcontact 分配在职成员的客户请求 文档:https://developer.work.weixin.qq.com/document/path/94096#分配在职成员的客户

type ReqTransferCustomerResigned

type ReqTransferCustomerResigned struct {
	// ExternalUserid 客户的external_userid列表,最多一次转移100个客户,必填
	ExternalUserid []string `json:"external_userid"`
	// HandoverUserid 原跟进成员的userid,必填
	HandoverUserid string `json:"handover_userid"`
	// TakeoverUserid 接替成员的userid,必填
	TakeoverUserid string `json:"takeover_userid"`
}

ReqTransferCustomerResigned 分配离职成员的客户请求 文档:https://developer.work.weixin.qq.com/document/path/94100#分配离职成员的客户

type ReqTransferGroupchat

type ReqTransferGroupchat struct {
	// ChatIDList 需要转群主的客户群ID列表。取值范围: 1 ~ 100,必填
	ChatIDList []string `json:"chat_id_list"`
	// NewOwner 新群主ID,必填
	NewOwner string `json:"new_owner"`
}

ReqTransferGroupchat 分配离职成员的客户群请求 文档:https://developer.work.weixin.qq.com/document/path/93242#分配离职成员的客户群

type ReqTransferResultExternalcontact

type ReqTransferResultExternalcontact struct {
	// Cursor 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页;
	Cursor string `json:"cursor"`
	// HandoverUserid 原添加成员的<code>userid</code>,必填
	HandoverUserid string `json:"handover_userid"`
	// TakeoverUserid 接替成员的<code>userid</code>,必填
	TakeoverUserid string `json:"takeover_userid"`
}

ReqTransferResultExternalcontact 查询客户接替状态请求 文档:https://developer.work.weixin.qq.com/document/path/94097#查询客户接替状态

type ReqTransferResultResigned

type ReqTransferResultResigned struct {
	// Cursor 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页
	Cursor string `json:"cursor"`
	// HandoverUserid 原添加成员的<code>userid</code>,必填
	HandoverUserid string `json:"handover_userid"`
	// TakeoverUserid 接替成员的<code>userid</code>,必填
	TakeoverUserid string `json:"takeover_userid"`
}

ReqTransferResultResigned 查询客户接替状态请求 文档:https://developer.work.weixin.qq.com/document/path/94101#查询客户接替状态

type ReqUnionidToExternalUserid3RdExternalcontact

type ReqUnionidToExternalUserid3RdExternalcontact struct {
	// 微信用户的unionid,必填
	Unionid string `json:"unionid"`
	// 微信用户的openid,必填
	Openid string `json:"openid"`
	// 需要换取的企业corpid,不填则拉取所有企业
	Corpid string `json:"corpid"`
}

ReqUnionidToExternalUserid3RdExternalcontact 4.2 unionid查询external_userid请求 文档:https://developer.work.weixin.qq.com/document/path/95327#4.2 unionid查询external_userid

type ReqUpdateContactWayExternalcontact

type ReqUpdateContactWayExternalcontact struct {
	// ChatExpiresIn 临时会话有效期,以秒为单位,该参数仅在临时会话模式下有效
	ChatExpiresIn int                      `json:"chat_expires_in"`
	Conclusions   AddContactWayConclusions `json:"conclusions"` // 结束语,会话结束时自动发送给客户,可参考“<a href="#15645/结束语定义">结束语定义</a>”,仅临时会话模式(is_temp为true)可设置
	// ConfigID 企业联系方式的配置id,必填
	ConfigID string `json:"config_id"`
	// ExpiresIn 临时会话二维码有效期,以秒为单位,该参数仅在临时会话模式下有效
	ExpiresIn int `json:"expires_in"`
	// Party 使用该联系方式的部门列表,将覆盖原有部门列表,只在配置的type为2时有效
	Party []int `json:"party"`
	// Remark 联系方式的备注信息,不超过30个字符,将覆盖之前的备注
	Remark string `json:"remark"`
	// SkipVerify 外部客户添加时是否无需验证
	SkipVerify bool `json:"skip_verify"`
	// State 企业自定义的state参数,用于区分不同的添加渠道,在调用“<a href="#13878">获取外部联系人详情</a>”时会返回该参数值
	State string `json:"state"`
	// Style 样式,只针对“在小程序中联系”的配置生效
	Style int `json:"style"`
	// Unionid 可进行临时会话的客户unionid,该参数仅在临时会话模式有效,如不指定则不进行限制
	Unionid string `json:"unionid"`
	// User 使用该联系方式的用户列表,将覆盖原有用户列表
	User []string `json:"user"`
}

type ReqUpdateLinkCustomerAcquisition added in v1.4.0

type ReqUpdateLinkCustomerAcquisition struct {
	// LinkID 获客链接的id,必填
	LinkID string `json:"link_id"`
	// LinkName 更新的链接名称
	LinkName string `json:"link_name,omitempty"`
	Range    struct {
		// DepartmentList 此获客链接关联的部门id列表,部门覆盖总人数最多100个
		DepartmentList []int `json:"department_list,omitempty"`
		// UserList 此获客链接关联的userid列表,最多可关联100个
		UserList []string `json:"user_list,omitempty"`
	} `json:"range"`
	// SkipVerify 是否无需验证,默认为true
	SkipVerify bool `json:"skip_verify,omitempty"`
}

ReqUpdateLinkCustomerAcquisition 编辑获客链接请求 文档:https://developer.work.weixin.qq.com/document/path/97297#编辑获客链接

type ReqUpdateTag added in v1.2.0

type ReqUpdateTag struct {
	// Tagid 标签ID,必填
	Tagid int `json:"tagid"`
	// Tagname 标签名称,长度限制为32个字(汉字或英文字母),标签不可与其他标签重名。,必填
	Tagname string `json:"tagname"`
}

ReqUpdateTag 更新标签名字请求 文档:https://developer.work.weixin.qq.com/document/path/90347#更新标签名字

type ReqUpdateTemplateCardMessage

type ReqUpdateTemplateCardMessage struct {
	Userids      []string                           `json:"userids"`       // 企业的成员ID列表(最多支持1000个)
	Partyids     []int                              `json:"partyids"`      // 企业的部门ID列表(最多支持100个)
	Tagids       []int                              `json:"tagids"`        // 企业的标签ID列表(最多支持100个)
	Atall        int                                `json:"atall"`         // 更新整个任务接收人员
	Agentid      int                                `json:"agentid"`       // 应用的agentid
	ResponseCode string                             `json:"response_code"` // 更新卡片所需要消费的code,可通过发消息接口和回调接口返回值获取,一个code只能调用一次该接口,且只能在24小时内调用
	Button       ReqUpdateTemplateCardMessageButton `json:"button"`
}

type ReqUpdateTemplateCardMessageButton

type ReqUpdateTemplateCardMessageButton struct {
	ReplaceName string `json:"replace_name"` // 需要更新的按钮的文案
}

type ReqUploadByUrlMedia added in v1.2.9

type ReqUploadByUrlMedia struct {
	// Filename 文件名,标识文件展示的名称。比如,使用该media_id发消息时,展示的文件名由该字段控制。<br/>不超过128字节。必填
	Filename string `json:"filename"`
	// Md5 文件md5。对比从url下载下来的文件md5是否一致。<br/>不超过32字节。必填
	Md5 string `json:"md5"`
	// Scene 场景值。1-客户联系入群欢迎语素材(目前仅支持1)。<br/>注意:每个场景值有对应的使用范围,详见上面的「使用场景说明」,必填
	Scene int `json:"scene"`
	// Type 媒体文件类型。目前仅支持video-视频,file-普通文件<br/>不超过32字节。必填
	Type string `json:"type"`
	// URL 文件cdn url。url要求支持Range分块下载<br/>不超过1024字节。必填
	URL string `json:"url"`
}

ReqUploadByUrlMedia 生成异步上传任务请求 文档:https://developer.work.weixin.qq.com/document/path/96219#生成异步上传任务

type ReqUploadMedia

type ReqUploadMedia struct {
	// 媒体文件类型,分别有图片(image)、语音(voice)、视频(video),普通文件(file)
	Type  string `json:"type"`
	Media *Media `json:"media"`
}

ReqUploadMedia 上传临时素材请求 文档:https://developer.work.weixin.qq.com/document/path/90389#上传临时素材

type ReqUserBehaviorData

type ReqUserBehaviorData struct {
	// EndTime 数据结束时间,必填
	EndTime int64 `json:"end_time"`
	// Partyid 部门ID列表,最多100个
	Partyid []int `json:"partyid,omitempty"`
	// StartTime 数据起始时间,必填
	StartTime int64 `json:"start_time"`
	// Userid 成员ID列表,最多100个
	Userid []string `json:"userid,omitempty"`
}

ReqUserBehaviorData 获取「联系客户统计」数据请求 文档:https://developer.work.weixin.qq.com/document/path/92275#获取「联系客户统计」数据

type ReqUseridToOpenuseridBatch

type ReqUseridToOpenuseridBatch struct {
	// UseridList 获取到的成员ID,必填
	UseridList []string `json:"userid_list"`
}

ReqUseridToOpenuseridBatch 2.4 userid的转换请求 文档:https://developer.work.weixin.qq.com/document/path/95327#2.4 userid的转换

type RespActiveAccountLicense

type RespActiveAccountLicense struct {
	CommonResp
}

RespActiveAccountLicense 激活帐号响应 文档:https://developer.work.weixin.qq.com/document/path/95553#激活帐号

type RespAddContactWayExternalcontact

type RespAddContactWayExternalcontact struct {
	ConfigID string `json:"config_id"`
	CommonResp
	QrCode string `json:"qr_code"`
}

RespAddContactWayExternalcontact 配置客户联系「联系我」方式响应 文档:https://developer.work.weixin.qq.com/document/path/92577#配置客户联系「联系我」方式

type RespAddCorpTagExternalcontact

type RespAddCorpTagExternalcontact struct {
	CommonResp
	TagGroup struct {
		// CreateTime 标签组创建时间
		// CreateTime 标签创建时间
		// CreateTime 标签组创建时间
		// CreateTime 标签创建时间
		CreateTime int `json:"create_time"`
		// GroupID 标签组id
		GroupID string `json:"group_id"`
		// GroupName 标签组名称
		GroupName string `json:"group_name"`
		// Order 标签组次序值。order值大的排序靠前。有效的值范围是[0, 2^32)
		// Order 标签次序值。order值大的排序靠前。有效的值范围是[0, 2^32)
		// Order 标签组次序值。order值大的排序靠前。有效的值范围是[0, 2^32)
		// Order 标签次序值。order值大的排序靠前。有效的值范围是[0, 2^32)
		Order int `json:"order"`
		Tag   []struct {
			CreateTime int `json:"create_time"`
			// ID 新建标签id
			ID string `json:"id"`
			// Name 新建标签名称
			Name  string `json:"name"`
			Order int    `json:"order"`
		} `json:"tag"` // 标签组内的标签列表
	} `json:"tag_group"`
}

type RespAddGroupWelcomeTemplate added in v1.2.0

type RespAddGroupWelcomeTemplate struct {
	CommonResp
	// TemplateID 欢迎语素材id
	TemplateID string `json:"template_id"`
}

RespAddGroupWelcomeTemplate 添加入群欢迎语素材响应 文档:https://developer.work.weixin.qq.com/document/path/93438#添加入群欢迎语素材

type RespAddMomentTaskExternalcontact added in v1.2.9

type RespAddMomentTaskExternalcontact struct {
	CommonResp
	// Jobid 异步任务id,最大长度为64字节,24小时有效;可使用<a href="#%E8%8E%B7%E5%8F%96%E5%8F%91%E8%A1%A8%E6%9C%8B%E5%8F%8B%E5%9C%88%E4%BB%BB%E5%8A%A1%E7%BB%93%E6%9E%9C" rel="nofollow">获取发表朋友圈任务结果</a>查询任务状态
	Jobid string `json:"jobid"`
}

RespAddMomentTaskExternalcontact 创建发表任务响应 文档:https://developer.work.weixin.qq.com/document/path/95094#创建发表任务

type RespAddMsgTemplateExternalcontact

type RespAddMsgTemplateExternalcontact struct {
	CommonResp
	FailList []string `json:"fail_list"`
	Msgid    string   `json:"msgid"`
}

RespAddMsgTemplateExternalcontact 创建企业群发响应 文档:https://developer.work.weixin.qq.com/document/path/92698#创建企业群发

type RespAddtagusersTag added in v1.2.0

type RespAddtagusersTag struct {
	CommonResp
}

RespAddtagusersTag 增加标签成员响应 文档:https://developer.work.weixin.qq.com/document/path/90350#增加标签成员

type RespApplyEvent added in v1.1.3

type RespApplyEvent struct {
	CommonResp
	SpNo string `json:"sp_no"` // 表单提交成功后,返回的表单编号
}

RespApplyEvent 提交审批申请 文档:https://developer.work.weixin.qq.com/document/path/92632#提交审批申请

type RespAuthsuccUser added in v1.2.0

type RespAuthsuccUser struct {
	CommonResp
}

RespAuthsuccUser 成二次验证响应 文档:https://developer.work.weixin.qq.com/document/path/90339#成二次验证

type RespBatchActiveAccountLicense

type RespBatchActiveAccountLicense struct {
	ActiveResult []struct {
		ActiveCode string `json:"active_code"`
		Errcode    int    `json:"errcode"`
		Userid     string `json:"userid"`
	} `json:"active_result"`
	CommonResp
}

RespBatchActiveAccountLicense 批量激活帐号响应 文档:https://developer.work.weixin.qq.com/document/path/95553#批量激活帐号

type RespBatchGetActiveInfoByCodeLicense

type RespBatchGetActiveInfoByCodeLicense struct {
	ActiveInfoList []struct {
		// ActiveCode 帐号激活码
		ActiveCode string `json:"active_code"`
		// ActiveTime 首次激活绑定用户的时间,未激活则不返回该字段
		ActiveTime int `json:"active_time"`
		// CreateTime 创建时间,订单支付成功后立即创建。激活码必须在创建时间后的365天内激活
		CreateTime int `json:"create_time"`
		// ExpireTime 过期时间。为首次激活绑定的时间加上购买时长。未激活则不返回该字段
		ExpireTime int `json:"expire_time"`
		MergeInfo  struct {
			// FromActiveCode 合并信息,合并的激活码或者被合并的激活码才返回该字段。功能灰度中,目前仅通过api新续期过的才一定返回
			FromActiveCode string `json:"from_active_code"`
			// ToActiveCode 该激活码合并到的新激活码信息
			ToActiveCode string `json:"to_active_code"`
		} `json:"merge_info"` // 合并信息。功能灰度中,目前仅通过api新续期过的才一定返回
		// Status 帐号状态:1:未绑定,2:已绑定且有效,3:已过期,4:待转移,5:已合并(激活码本身激活了userid,后续使用新的激活码重新激活了该userid,则该码变为已合并状态。若被合并时,该激活码未过期则合并后会重置expire_time为合并时间。若被合并时,激活码已过期则不重置expire_time)
		Status int `json:"status"`
		// Type 帐号类型:1:基础帐号,2:互通帐号
		Type int `json:"type"`
		// Userid 帐号绑定激活的企业成员userid,未激活则不返回该字段。返回加密的userid
		Userid string `json:"userid"`
	} `json:"active_info_list"` // 帐号码信息列表
	CommonResp
	InvalidActiveCodeList []string `json:"invalid_active_code_list"`
}

RespBatchGetActiveInfoByCodeLicense 批量获取激活码详情响应 文档:https://developer.work.weixin.qq.com/document/path/95552#批量获取激活码详情

type RespBatchShareActiveCodeLicense added in v1.2.2

type RespBatchShareActiveCodeLicense struct {
	// Errcode 错误码说明
	CommonResp
	Errmsg      string `json:"errmsg"`
	ShareResult []struct {
		// ActiveCode 分享的激活码
		ActiveCode string `json:"active_code"`
		// Errcode 错误码说明
		CommonResp
		Errmsg string `json:"errmsg"`
	} `json:"share_result"` // 分享结果
}

RespBatchShareActiveCodeLicense 分配激活码给下游企业响应 文档:https://developer.work.weixin.qq.com/document/path/96059#分配激活码给下游企业

type RespBatchTransferLicenseLicense

type RespBatchTransferLicenseLicense struct {
	CommonResp
	TransferResult []struct {
		Errcode int `json:"errcode"`
		// HandoverUserid 转移成员加密的userid
		HandoverUserid string `json:"handover_userid"`
		// TakeoverUserid 接收成员加密的userid
		TakeoverUserid string `json:"takeover_userid"`
	} `json:"transfer_result"`
}

RespBatchTransferLicenseLicense 帐号继承响应 文档:https://developer.work.weixin.qq.com/document/path/95673#帐号继承

type RespBatchsearchContact added in v1.1.4

type RespBatchsearchContact struct {
	CommonResp
	QueryResultList []struct {
		// IsLast 根据该字段判断是否是最后一页,若为false,开发者需要使用offset+limit继续调用
		IsLast       bool `json:"is_last"`
		QueryRequest struct {
			Limit     int    `json:"limit"`
			Offset    int    `json:"offset"`
			QueryType int    `json:"query_type"`
			QueryWord string `json:"query_word"`
		} `json:"query_request"` // 原搜索请求报文
		QueryResult struct {
			Party struct {
				// DepartmentID 返回的部门id
				DepartmentID []int `json:"department_id"`
			} `json:"party"` // 返回的部门信息 (通过部门名称,拼音匹配)
			User struct {
				// OpenUserid 查询到的用户open_userid
				OpenUserid []string `json:"open_userid"`
				// Userid 查询到的用户userid
				Userid []string `json:"userid"`
			} `json:"user"` // 返回的用户信息(通过用户名称,拼音匹配)
		} `json:"query_result"` // 搜索请求对应的查询结果
	} `json:"query_result_list"` // 搜索结果列表
}

RespBatchsearchContact 通讯录批量搜索响应 文档:https://developer.work.weixin.qq.com/document/path/91844#通讯录批量搜索

type RespCancelGroupmsgSendExternalcontact added in v1.2.9

type RespCancelGroupmsgSendExternalcontact struct {
	CommonResp
}

RespCancelGroupmsgSendExternalcontact 停止企业群发响应 文档:https://developer.work.weixin.qq.com/document/path/97611#停止企业群发

type RespCancelMomentTaskExternalcontact added in v1.2.9

type RespCancelMomentTaskExternalcontact struct {
	CommonResp
}

RespCancelMomentTaskExternalcontact 停止发表企业朋友圈响应 文档:https://developer.work.weixin.qq.com/document/path/97612#停止发表企业朋友圈

type RespCancelOrderLicense added in v1.2.1

type RespCancelOrderLicense struct {
	CommonResp
}

RespCancelOrderLicense 取消订单响应 文档:https://developer.work.weixin.qq.com/document/path/96106#取消订单

type RespCheckMemberAuthUser added in v1.2.0

type RespCheckMemberAuthUser struct {
	CommonResp
	// IsMemberAuth <a href="#30245" rel="nofollow">成员授权模式</a>下,该成员已授权
	IsMemberAuth bool `json:"is_member_auth"`
}

RespCheckMemberAuthUser 查询成员用户是否已授权响应 文档:https://developer.work.weixin.qq.com/document/path/94514#查询成员用户是否已授权

type RespCloseOrderPaytool added in v1.3.1

type RespCloseOrderPaytool struct {
	CommonResp
}

RespCloseOrderPaytool 取消收款订单响应 文档:https://developer.work.weixin.qq.com/document/path/98046#取消收款订单

type RespCloseTempChatExternalcontact

type RespCloseTempChatExternalcontact struct {
	CommonResp
}

RespCloseTempChatExternalcontact 结束临时会话响应 文档:https://developer.work.weixin.qq.com/document/path/92577#结束临时会话

type RespConvertToOpenidUser added in v1.1.6

type RespConvertToOpenidUser struct {
	CommonResp
	// Openid 企业微信成员userid对应的openid
	Openid string `json:"openid"`
}

RespConvertToOpenidUser userid转openid响应 文档:https://developer.work.weixin.qq.com/document/path/90338#userid转openid

type RespConvertToUseridUser added in v1.1.6

type RespConvertToUseridUser struct {
	CommonResp
	// Userid 该openid在企业微信对应的成员userid
	Userid string `json:"userid"`
}

RespConvertToUseridUser openid转userid响应 文档:https://developer.work.weixin.qq.com/document/path/90338#openid转userid

type RespCopyTemplateApproval added in v1.1.3

type RespCopyTemplateApproval struct {
	CommonResp
	// 服务商审批模板的唯一标识id。可在“获取审批单据详情”、“审批状态变化回调通知”中获得,也可在服务商后台-应用管理-审批模板的模板编辑页面中获得。
	TemplateId string `json:"template_id"`
}

RespCopyTemplateApproval 复制/更新模板到企业响应 文档:https://developer.work.weixin.qq.com/document/path/92630#复制/更新模板到企业

type RespCorpidToOpencorpidService

type RespCorpidToOpencorpidService struct {
	CommonResp
	OpenCorpid string `json:"open_corpid"`
}

RespCorpidToOpencorpidService 1.4 corpid转换响应 文档:https://developer.work.weixin.qq.com/document/path/95327#1.4 corpid转换

type RespCreateLinkCustomerAcquisition added in v1.4.0

type RespCreateLinkCustomerAcquisition struct {
	CommonResp
	Link struct {
		// CreateTime 获客链接创建时间
		CreateTime int `json:"create_time"`
		// LinkID 获客链接的id
		LinkID string `json:"link_id"`
		// LinkName 获客链接名称
		LinkName string `json:"link_name"`
		// URL 获客链接
		URL string `json:"url"`
	} `json:"link"`
}

RespCreateLinkCustomerAcquisition 创建获客链接响应 文档:https://developer.work.weixin.qq.com/document/path/97297#创建获客链接

type RespCreateMomentStrategy added in v1.2.9

type RespCreateMomentStrategy struct {
	CommonResp
	StrategyID int `json:"strategy_id"`
}

RespCreateMomentStrategy 创建新的规则组响应 文档:https://developer.work.weixin.qq.com/document/path/94890#创建新的规则组

type RespCreateNewOrderJobLicense added in v1.4.0

type RespCreateNewOrderJobLicense struct {
	CommonResp
	InvalidList []struct {
		// Corpid 不合法的企业 ID
		Corpid string `json:"corpid"`
		CommonResp
	} `json:"invalid_list"` // 不合法的新购信息列表,详见<strong>InvalidInfo</strong>
	// Jobid 多企业新购任务id,当请求包中未指定jobid时,会生成一个新的jobid返回
	Jobid string `json:"jobid"`
}

RespCreateNewOrderJobLicense 创建多企业新购任务响应 文档:https://developer.work.weixin.qq.com/document/path/98892#创建多企业新购任务

type RespCreateNewOrderLicense

type RespCreateNewOrderLicense struct {
	CommonResp
	// OrderID 订单号
	OrderID string `json:"order_id"`
}

RespCreateNewOrderLicense 下单购买帐号响应 文档:https://developer.work.weixin.qq.com/document/path/95644#下单购买帐号

type RespCreateRenewOrderJobLicense

type RespCreateRenewOrderJobLicense struct {
	// Errcode 账号不合法相关错误码
	CommonResp
	Errmsg             string `json:"errmsg"`
	InvalidAccountList []struct {
		// Errcode 账号不合法相关错误码
		CommonResp
		Errmsg string `json:"errmsg"`
		Type   int    `json:"type"`
		Userid string `json:"userid"`
	} `json:"invalid_account_list"` // 不合法的续期账号列表
	// Jobid 任务id,请求包中未指定jobid时,会生成一个新的jobid返回
	Jobid string `json:"jobid"`
}

RespCreateRenewOrderJobLicense 创建续期任务响应 文档:https://developer.work.weixin.qq.com/document/path/95646#创建续期任务

type RespCreateTag added in v1.2.0

type RespCreateTag struct {
	CommonResp
	// Tagid 标签id
	Tagid int `json:"tagid"`
}

RespCreateTag 创建标签响应 文档:https://developer.work.weixin.qq.com/document/path/90346#创建标签

type RespCustomerAcquisitionQuotaExternalcontact added in v1.4.0

type RespCustomerAcquisitionQuotaExternalcontact struct {
	// Balance 剩余使用量
	Balance int `json:"balance"`
	CommonResp
	// Total 历史累计使用量
	Total int `json:"total"`
	// QuotaList 过期额度
	QuotaList []struct {
		ExpireDate int `json:"expire_date"`
		Balance    int `json:"balance"`
	} `json:"quota_list"`
}

RespCustomerAcquisitionQuotaExternalcontact 查询剩余使用量响应 文档:https://developer.work.weixin.qq.com/document/path/97375#查询剩余使用量

type RespCustomerCustomerAcquisition added in v1.4.0

type RespCustomerCustomerAcquisition struct {
	CustomerList []struct {
		// ChatStatus 会话状态,0-客户未发消息 1-客户已发送消息
		ChatStatus int `json:"chat_status"`
		// ExternalUserid 客户external_userid
		ExternalUserid string `json:"external_userid"`
		// State 用于区分客户具体是通过哪个获客链接进行添加,用户可在获客链接后拼接<code>customer_channel=自定义字符串</code>,字符串不超过64字节,超过会被截断。通过点击带有customer_channel参数的链接获取到的客户,调用获客信息接口或<a href="#13878" rel="nofollow">获取客户详情接口</a>时,返回的state参数即为链接后拼接自定义字符串
		State string `json:"state"`
		// Userid 通过获客链接添加此客户的跟进人userid
		Userid string `json:"userid"`
	} `json:"customer_list"`
	CommonResp
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
}

RespCustomerCustomerAcquisition 获取获客客户列表响应 文档:https://developer.work.weixin.qq.com/document/path/97298#获取获客客户列表

type RespDelContactWayExternalcontact

type RespDelContactWayExternalcontact struct {
	CommonResp
}

RespDelContactWayExternalcontact 删除企业已配置的「联系我」方式响应 文档:https://developer.work.weixin.qq.com/document/path/92577#删除企业已配置的「联系我」方式

type RespDelCorpTagExternalcontact

type RespDelCorpTagExternalcontact struct {
	CommonResp
}

type RespDelGroupWelcomeTemplate added in v1.2.0

type RespDelGroupWelcomeTemplate struct {
	CommonResp
}

RespDelGroupWelcomeTemplate 删除入群欢迎语素材响应 文档:https://developer.work.weixin.qq.com/document/path/93438#删除入群欢迎语素材

type RespDelMomentStrategy added in v1.2.9

type RespDelMomentStrategy struct {
	CommonResp
}

RespDelMomentStrategy 删除规则组响应 文档:https://developer.work.weixin.qq.com/document/path/94890#删除规则组

type RespDeleteLinkCustomerAcquisition added in v1.4.0

type RespDeleteLinkCustomerAcquisition struct {
	CommonResp
}

RespDeleteLinkCustomerAcquisition 删除获客链接响应 文档:https://developer.work.weixin.qq.com/document/path/97297#删除获客链接

type RespDeleteTag added in v1.2.0

type RespDeleteTag struct {
	CommonResp
}

RespDeleteTag 删除标签响应 文档:https://developer.work.weixin.qq.com/document/path/90348#删除标签

type RespDeltagusersTag added in v1.2.0

type RespDeltagusersTag struct {
	CommonResp
}

RespDeltagusersTag 删除标签成员响应 文档:https://developer.work.weixin.qq.com/document/path/90351#删除标签成员

type RespEditCorpTagExternalcontact

type RespEditCorpTagExternalcontact struct {
	CommonResp
}

type RespEditGroupWelcomeTemplate added in v1.2.0

type RespEditGroupWelcomeTemplate struct {
	CommonResp
}

RespEditGroupWelcomeTemplate 编辑入群欢迎语素材响应 文档:https://developer.work.weixin.qq.com/document/path/93438#编辑入群欢迎语素材

type RespEditMomentStrategy added in v1.2.9

type RespEditMomentStrategy struct {
	CommonResp
}

RespEditMomentStrategy 编辑规则组及其管理范围响应 文档:https://developer.work.weixin.qq.com/document/path/94890#编辑规则组及其管理范围

type RespExternalcontactToServiceExternalUserid

type RespExternalcontactToServiceExternalUserid struct {
	CommonResp
	// 密文externalUserId
	ExternalUserid string `json:"external_userid"`
}

type RespFinishExternalUseridMigration

type RespFinishExternalUseridMigration struct {
	CommonResp
	Items []struct {
		ExternalUserid    string `json:"external_userid"`
		NewExternalUserid string `json:"new_external_userid"`
	} `json:"items"`
}

type RespGetActiveInfoByCodeLicense

type RespGetActiveInfoByCodeLicense struct {
	ActiveInfo struct {
		// ActiveCode 帐号激活码
		ActiveCode string `json:"active_code"`
		// ActiveTime 首次激活绑定用户的时间,未激活则不返回该字段
		ActiveTime int `json:"active_time"`
		// CreateTime 创建时间,订单支付成功后立即创建。激活码必须在创建时间后的365天内激活。
		CreateTime int `json:"create_time"`
		// ExpireTime 过期时间。为首次激活绑定的时间加上购买时长。未激活则不返回该字段
		ExpireTime int `json:"expire_time"`
		MergeInfo  struct {
			// FromActiveCode 激活码激活userid时,若userid原来已经绑定了一个激活码,则会返回该字段
			FromActiveCode string `json:"from_active_code"`
			// ToActiveCode 该激活码合并到的新激活码信息
			ToActiveCode string `json:"to_active_code"`
		} `json:"merge_info"` // 合并信息,合并的激活码或者被合并的激活码才返回该字段。功能灰度中,目前仅通过api新续期过的才一定返回
		// Status 帐号状态:1:未绑定,2:已绑定且有效,3:已过期,4:待转移,5:已合并(激活码本身激活了userid,后续使用新的激活码重新激活了该userid,则该码变为已合并状态。若被合并时,该激活码未过期则合并后会重置expire_time为合并时间。若被合并时,激活码已过期则不重置expire_time)
		Status int `json:"status"`
		// Type 帐号类型:1:基础帐号,2:互通帐号
		Type int `json:"type"`
		// Userid 帐号绑定激活的企业成员userid,未激活则不返回该字段。返回加密的userid
		Userid string `json:"userid"`
	} `json:"active_info"` // 帐号码信息
	CommonResp
}

RespGetActiveInfoByCodeLicense 获取激活码详情响应 文档:https://developer.work.weixin.qq.com/document/path/95552#获取激活码详情

type RespGetActiveInfoByUserLicense

type RespGetActiveInfoByUserLicense struct {
	ActiveInfoList []struct {
		// ActiveCode 帐号激活码
		ActiveCode string `json:"active_code"`
		// ActiveTime 激活时间
		ActiveTime int `json:"active_time"`
		// ExpireTime 过期时间
		ExpireTime int `json:"expire_time"`
		// Type 帐号类型:1:基础帐号,2:互通帐号
		Type int `json:"type"`
		// Userid 帐号绑定激活的成员userid。返回加密的userid
		Userid string `json:"userid"`
	} `json:"active_info_list"` // 帐号列表,同一个userid最多有两个帐号:一个基础帐号与一个互通帐号
	// ActiveStatus 帐号激活状态。0:未激活、 1:已激活
	ActiveStatus int `json:"active_status"`
	CommonResp
}

RespGetActiveInfoByUserLicense 获取成员的激活详情响应 文档:https://developer.work.weixin.qq.com/document/path/95555#获取成员的激活详情

type RespGetAdminListService

type RespGetAdminListService struct {
	Admin []struct {
		AuthType   int    `json:"auth_type"`
		OpenUserid string `json:"open_userid"`
		Userid     string `json:"userid"`
	} `json:"admin"`
	CommonResp
}

RespGetAdminListService 获取应用的管理员列表响应 文档:https://developer.work.weixin.qq.com/document/path/90606#获取应用的管理员列表

type RespGetAgent added in v1.1.2

type RespGetAgent struct {
	// Agentid 企业应用id
	Agentid     int `json:"agentid"`
	AllowPartys struct {
		Partyid []int `json:"partyid"`
	} `json:"allow_partys"` // 企业应用可见范围(部门)
	AllowTags struct {
		Tagid []int `json:"tagid"`
	} `json:"allow_tags"` // 企业应用可见范围(标签)
	AllowUserinfos struct {
		User []struct {
			Userid string `json:"userid"`
		} `json:"user"`
	} `json:"allow_userinfos"` // 企业应用可见范围(人员),其中包括userid
	// Close 企业应用是否被停用
	Close int `json:"close"`
	// CustomizedPublishStatus 代开发自建应用返回该字段,表示代开发发布状态。0:待开发(企业已授权,服务商未创建应用);1:开发中(服务商已创建应用,未上线);2:已上线(服务商已上线应用且不存在未上线版本);3:存在未上线版本(服务商已上线应用但存在未上线版本)
	CustomizedPublishStatus int `json:"customized_publish_status"`
	// Description 企业应用详情
	Description string `json:"description"`
	CommonResp
	// HomeURL 应用主页url
	HomeURL string `json:"home_url"`
	// Isreportenter 是否上报用户进入应用事件。0:不接收;1:接收
	Isreportenter int `json:"isreportenter"`
	// Name 企业应用名称
	Name string `json:"name"`
	// RedirectDomain 企业应用可信域名
	RedirectDomain string `json:"redirect_domain"`
	// ReportLocationFlag 企业应用是否打开地理位置上报 0:不上报;1:进入会话上报;
	ReportLocationFlag int `json:"report_location_flag"`
	// SquareLogoURL 企业应用方形头像
	SquareLogoURL string `json:"square_logo_url"`
}

RespGetAgent 获取指定的应用详情响应 文档:https://developer.work.weixin.qq.com/document/path/90363#获取指定的应用详情

type RespGetAppLicenseInfoLicense added in v1.0.11

type RespGetAppLicenseInfoLicense struct {
	CommonResp
	// LicenseStatus license检查开启状态。<br/>0:未开启license检查状态(<a href="#38519" rel="nofollow">未迁移的历史授权应用</a>一般是这种状态) <br/>1:已开启license检查状态。若开启且已过试用期,则需要为企业购买license帐号才可以使用
	LicenseStatus int `json:"license_status"`
	TrailInfo     struct {
		// EndTime 接口许可试用到期时间。若企业多次安装卸载同一个第三方应用,以第一次安装的时间为试用期开始时间,第一次安装完90天后为结束试用时间
		EndTime int `json:"end_time"`
		// StartTime 接口许可试用开始时间
		StartTime int `json:"start_time"`
	} `json:"trail_info"` // 应用license试用期信息。仅当license_status为1时返回该字段
}

RespGetAppLicenseInfoLicense 获取应用的接口许可状态响应 文档:https://developer.work.weixin.qq.com/document/path/95844#获取应用的接口许可状态

type RespGetAppQrcodeService added in v1.2.0

type RespGetAppQrcodeService struct {
	CommonResp
	Qrcode string `json:"qrcode"`
}

RespGetAppQrcodeService 获取应用二维码响应 文档:https://developer.work.weixin.qq.com/document/path/95430#获取应用二维码

type RespGetApprovalDetailOa added in v1.1.3

type RespGetApprovalDetailOa struct {
	CommonResp
	Info struct {
		ApplyData struct {
			Contents []struct {
				Control string `json:"control"`
				ID      string `json:"id"`
				Title   []struct {
					Lang string `json:"lang"`
					// Text 文本内容,即申请人在此控件填写的文本内容
					Text string `json:"text"`
				} `json:"title"`
				Value struct {
					Children    []interface{} `json:"children"`    // 明细内容,一个明细控件可能包含多个子明细
					Departments []interface{} `json:"departments"` // 部门内容,即申请人在此控件选择的部门,多选模式下可能有多个
					Files       []interface{} `json:"files"`       // 文件内容,即申请人在此控件上传的文件内容,可能有多个
					Members     []interface{} `json:"members"`     // 成员内容,即申请人在此控件选择的成员,多选模式下可能有多个
					StatField   []interface{} `json:"stat_field"`
					// Text 文本内容,即申请人在此控件填写的文本内容
					Text string        `json:"text"`
					Tips []interface{} `json:"tips"`
				} `json:"value"`
			} `json:"contents"`
		} `json:"apply_data"`
		ApplyTime int `json:"apply_time"`
		Applyer   struct {
			Partyid string `json:"partyid"`
			Userid  string `json:"userid"`
		} `json:"applyer"`
		Comments []struct {
			CommentUserInfo struct {
				Userid string `json:"userid"`
			} `json:"commentUserInfo"`
			Commentcontent string   `json:"commentcontent"`
			Commentid      string   `json:"commentid"`
			Commenttime    int      `json:"commenttime"`
			MediaID        []string `json:"media_id"`
		} `json:"comments"`
		Notifyer []struct {
			Userid string `json:"userid"`
		} `json:"notifyer"`
		SpName   string `json:"sp_name"`
		SpNo     string `json:"sp_no"`
		SpRecord []struct {
			Approverattr int `json:"approverattr"`
			Details      []struct {
				Approver struct {
					Userid string `json:"userid"`
				} `json:"approver"`
				MediaID  []interface{} `json:"media_id"`
				SpStatus int           `json:"sp_status"`
				Speech   string        `json:"speech"`
				Sptime   int           `json:"sptime"`
			} `json:"details"`
			SpStatus int `json:"sp_status"`
		} `json:"sp_record"`
		SpStatus   int    `json:"sp_status"`
		TemplateID string `json:"template_id"`
	} `json:"info"`
}

RespGetApprovalDetailOa 获取审批申请详情响应 文档:https://developer.work.weixin.qq.com/document/path/92634#获取审批申请详情

type RespGetAuthInfoService

type RespGetAuthInfoService struct {
	CommonResp
	AuthCorpInfo   AuthCorpInfo   `json:"auth_corp_info"`
	AuthInfo       AuthInfo       `json:"auth_info"`
	DealerCorpInfo DealerCorpInfo `json:"dealer_corp_info"`
	// 收银台获取企业授权信息额外返回字段:https://developer.work.weixin.qq.com/document/path/91912
	EditionInfo EditionInfo `json:"edition_info"`
}

RespGetAuthInfoService 获取企业授权信息响应 文档:https://developer.work.weixin.qq.com/document/path/90604#获取企业授权信息

type RespGetAutoActiveStatusLicense added in v1.0.13

type RespGetAutoActiveStatusLicense struct {
	// AutoActiveStatus 许可自动激活状态。0:关闭,1:打开
	AutoActiveStatus int `json:"auto_active_status"`
	CommonResp
}

RespGetAutoActiveStatusLicense 查询企业的许可自动激活状态响应 文档:https://developer.work.weixin.qq.com/document/path/95874#查询企业的许可自动激活状态

type RespGetBillListExternalpay added in v1.1.7

type RespGetBillListExternalpay struct {
	BillList []struct {
		CommodityList []struct {
			// Amount 商品数量
			Amount int `json:"amount"`
			// Description 商品描述
			Description string `json:"description"`
		} `json:"commodity_list"` // 商品信息详情列表,商品信息结构参考commodity
		// ExternalUserid 付款人的userid
		ExternalUserid string `json:"external_userid"`
		// MchID 收款商户号id
		MchID string `json:"mch_id"`
		// OutTradeNo 商户单号
		OutTradeNo string `json:"out_trade_no"`
		// PayTime 交易时间
		PayTime int `json:"pay_time"`
		// PayeeUserid 收款人企业内账号userid
		PayeeUserid string `json:"payee_userid"`
		PayerInfo   struct {
			// Address 联系地址
			Address string `json:"address"`
			// Name 联系人姓名
			Name string `json:"name"`
			// Phone 联系人手机号
			Phone string `json:"phone"`
		} `json:"payer_info"`
		// PaymentType 收款方式。0:在聊天中收款 1:收款码收款 2:在直播间收款 3:用产品图册收款
		PaymentType int `json:"payment_type"`
		RefundList  []struct {
			// OutRefundNo 退款单号
			OutRefundNo string `json:"out_refund_no"`
			// RefundComment 退款备注
			RefundComment string `json:"refund_comment"`
			// RefundFee 退款金额
			RefundFee int `json:"refund_fee"`
			// RefundReqtime 退款发起时间
			RefundReqtime int `json:"refund_reqtime"`
			// RefundStatus 退款状态。0:已申请退款;1:退款处理中;2:退款成功;3:退款关闭;4:退款异常;5:审批中;6:审批失败;7:审批取消
			RefundStatus int `json:"refund_status"`
			// RefundUserid 退款发起人ID
			RefundUserid string `json:"refund_userid"`
		} `json:"refund_list"` // 退款单据详情列表,退款单据详情参考refund
		// Remark 收款备注
		Remark string `json:"remark"`
		// TotalFee 收款总金额,单位为分
		TotalFee int `json:"total_fee"`
		// TotalRefundFee 退款总金额
		TotalRefundFee int `json:"total_refund_fee"`
		// TradeState 交易状态。1:已完成 3:已完成有退款
		TradeState int `json:"trade_state"`
		// TransactionID 交易单号
		TransactionID string `json:"transaction_id"`
	} `json:"bill_list"` // 交易单详情列表
	CommonResp
	// NextCursor 分页游标,在下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
}

RespGetBillListExternalpay 获取对外收款记录响应 文档:https://developer.work.weixin.qq.com/document/path/93727#获取对外收款记录

type RespGetByUserBatch

type RespGetByUserBatch struct {
	CommonResp
	ExternalContactList []struct {
		ExternalContact struct {
			Avatar          string `json:"avatar"`
			CorpFullName    string `json:"corp_full_name"`
			CorpName        string `json:"corp_name"`
			ExternalProfile struct {
				ExternalAttr []struct {
					Miniprogram struct {
						Appid    string `json:"appid"`
						Pagepath string `json:"pagepath"`
						Title    string `json:"title"`
					} `json:"miniprogram"`
					Name string `json:"name"`
					Text struct {
						Value string `json:"value"`
					} `json:"text"`
					Type int `json:"type"`
					Web  struct {
						Title string `json:"title"`
						URL   string `json:"url"`
					} `json:"web"`
				} `json:"external_attr"`
			} `json:"external_profile"`
			ExternalUserid string `json:"external_userid"`
			Gender         int    `json:"gender"`
			Name           string `json:"name"`
			Position       string `json:"position"`
			Type           int    `json:"type"`
			Unionid        string `json:"unionid"`
		} `json:"external_contact"`
		FollowInfo struct {
			AddWay         int      `json:"add_way"`
			Createtime     int      `json:"createtime"`
			Description    string   `json:"description"`
			OperUserid     string   `json:"oper_userid"`
			Remark         string   `json:"remark"`
			RemarkCorpName string   `json:"remark_corp_name"`
			RemarkMobiles  []string `json:"remark_mobiles"`
			State          string   `json:"state"`
			TagID          []string `json:"tag_id"`
			Userid         string   `json:"userid"`
			WechatChannels struct {
				Nickname string `json:"nickname"`
			} `json:"wechat_channels"`
		} `json:"follow_info"`
	} `json:"external_contact_list"`
	NextCursor string `json:"next_cursor"`
}

RespGetByUserBatch 批量获取客户详情响应 文档:https://developer.work.weixin.qq.com/document/path/93010#批量获取客户详情

type RespGetContactWayExternalcontact

type RespGetContactWayExternalcontact struct {
	ContactWay struct {
		ChatExpiresIn int `json:"chat_expires_in"`
		Conclusions   struct {
			Image struct {
				PicURL string `json:"pic_url"`
			} `json:"image"`
			Link struct {
				Desc   string `json:"desc"`
				Picurl string `json:"picurl"`
				Title  string `json:"title"`
				URL    string `json:"url"`
			} `json:"link"`
			Miniprogram struct {
				Appid      string `json:"appid"`
				Page       string `json:"page"`
				PicMediaID string `json:"pic_media_id"`
				Title      string `json:"title"`
			} `json:"miniprogram"`
			Text struct {
				Content string `json:"content"`
			} `json:"text"`
		} `json:"conclusions"`
		ConfigID   string   `json:"config_id"`
		ExpiresIn  int      `json:"expires_in"`
		IsTemp     bool     `json:"is_temp"`
		Party      []int    `json:"party"`
		QrCode     string   `json:"qr_code"`
		Remark     string   `json:"remark"`
		Scene      int      `json:"scene"`
		SkipVerify bool     `json:"skip_verify"`
		State      string   `json:"state"`
		Style      int      `json:"style"`
		Type       int      `json:"type"`
		Unionid    string   `json:"unionid"`
		User       []string `json:"user"`
	} `json:"contact_way"`
	CommonResp
}

RespGetContactWayExternalcontact 获取企业已配置的「联系我」方式响应 文档:https://developer.work.weixin.qq.com/document/path/92577#获取企业已配置的「联系我」方式

type RespGetCorpQualification

type RespGetCorpQualification struct {
	CommonResp
	WechatChannelsBinding bool `json:"wechat_channels_binding"` // 当企业具有绑定成功的视频号时,返回true,否则返回false。
}

type RespGetCorpTagListExternalcontact

type RespGetCorpTagListExternalcontact struct {
	CommonResp
	TagGroup []struct {
		// CreateTime 标签组创建时间
		// CreateTime 标签创建时间
		// CreateTime 标签组创建时间
		// CreateTime 标签创建时间
		CreateTime int `json:"create_time"`
		// Deleted 标签组是否已经被删除,只在指定tag_id进行查询时返回
		// Deleted 标签是否已经被删除,只在指定tag_id/group_id进行查询时返回
		// Deleted 标签组是否已经被删除,只在指定tag_id进行查询时返回
		// Deleted 标签是否已经被删除,只在指定tag_id/group_id进行查询时返回
		Deleted bool `json:"deleted"`
		// GroupID 标签组id
		GroupID string `json:"group_id"`
		// GroupName 标签组名称
		GroupName string `json:"group_name"`
		// Order 标签组排序的次序值,order值大的排序靠前。有效的值范围是[0, 2^32)
		// Order 标签排序的次序值,order值大的排序靠前。有效的值范围是[0, 2^32)
		// Order 标签组排序的次序值,order值大的排序靠前。有效的值范围是[0, 2^32)
		// Order 标签排序的次序值,order值大的排序靠前。有效的值范围是[0, 2^32)
		Order int `json:"order"`
		Tag   []struct {
			CreateTime int  `json:"create_time"`
			Deleted    bool `json:"deleted"`
			// ID 标签id
			ID string `json:"id"`
			// Name 标签名称
			Name  string `json:"name"`
			Order int    `json:"order"`
		} `json:"tag"` // 标签组内的标签列表
	} `json:"tag_group"` // 标签组列表
}

RespGetCorpTagListExternalcontact 获取企业标签库响应 文档:https://developer.work.weixin.qq.com/document/path/92696#获取企业标签库

type RespGetCorpTokenService

type RespGetCorpTokenService struct {
	AccessToken string `json:"access_token"`
	CommonResp
	ExpiresIn int `json:"expires_in"`
}

RespGetCorpTokenService 获取企业凭证响应 文档:https://developer.work.weixin.qq.com/document/path/90605#获取企业凭证

type RespGetCustomerAcquisition added in v1.4.0

type RespGetCustomerAcquisition struct {
	CommonResp
	Link struct {
		// CreateTime 创建时间
		CreateTime int `json:"create_time"`
		// LinkID 获客链接的id
		LinkID string `json:"link_id"`
		// LinkName 获客链接的名称
		LinkName string `json:"link_name"`
		// URL 获客链接实际的url
		URL string `json:"url"`
	} `json:"link"`
	Range struct {
		// DepartmentList 该获客链接使用范围的部门列表
		DepartmentList []int `json:"department_list"`
		// UserList 该获客链接使用范围成员列表
		UserList []string `json:"user_list"`
	} `json:"range"`
	// SkipVerify 是否无需验证,默认为true
	SkipVerify bool `json:"skip_verify"`
}

RespGetCustomerAcquisition 获取获客链接详情响应 文档:https://developer.work.weixin.qq.com/document/path/97297#获取获客链接详情

type RespGetCustomizedCorpTokenService

type RespGetCustomizedCorpTokenService struct {
	CommonResp
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

https://developer.work.weixin.qq.com/document/path/91039

type RespGetDepartment

type RespGetDepartment struct {
	Department struct {
		// DepartmentLeader 部门负责人的UserID,返回在应用可见范围内的部门负责人列表;第三方仅通讯录应用或者授权了“组织架构信息-应用可获取企业的部门组织架构信息-部门负责人”的第三方应用可获取
		DepartmentLeader []string `json:"department_leader"`
		// ID 部门id
		ID int `json:"id"`
		// Name 部门名称,代开发自建应用需要管理员授权才返回;第三方不可获取,需要通过<a href="#17172" rel="nofollow">通讯录展示组件</a>来展示部门名称
		Name string `json:"name"`
		// NameEn 部门英文名称,代开发自建应用需要管理员授权才返回;第三方不可获取,需要通过<a href="#17172" rel="nofollow">通讯录展示组件</a>来展示部门名称
		NameEn string `json:"name_en"`
		// Order 在父部门中的次序值。order值大的排序靠前。值范围是[0, 2^32)
		Order int `json:"order"`
		// Parentid 父部门id。根部门为1。
		Parentid int `json:"parentid"`
	} `json:"department"` // 部门详情。
	CommonResp
}

RespGetDepartment 获取单个部门详情响应 文档:https://developer.work.weixin.qq.com/document/path/95407#获取单个部门详情

type RespGetExternalcontact

type RespGetExternalcontact struct {
	CommonResp
	ExternalContact struct {
		// Avatar 外部联系人头像,代开发自建应用需要管理员授权才可以获取,第三方不可获取,上游企业不可获取下游企业客户该字段
		Avatar string `json:"avatar"`
		// CorpFullName 外部联系人所在企业的主体名称,<font data-color="#DC143C" color="#DC143C">仅当联系人类型是企业微信用户时有此字段</font>
		CorpFullName string `json:"corp_full_name"`
		// CorpName 外部联系人所在企业的简称,<font data-color="#DC143C" color="#DC143C">仅当联系人类型是企业微信用户时有此字段</font>
		CorpName        string `json:"corp_name"`
		ExternalProfile struct {
			ExternalAttr []struct {
				Miniprogram struct {
					Appid    string `json:"appid"`
					Pagepath string `json:"pagepath"`
					Title    string `json:"title"`
				} `json:"miniprogram"`
				// Name 外部联系人的名称<sup>[注1]</sup>
				Name string `json:"name"`
				Text struct {
					Value string `json:"value"`
				} `json:"text"`
				// Type 外部联系人的类型,1表示该外部联系人是微信用户,2表示该外部联系人是企业微信用户
				// Type 该成员添加此外部联系人所打标签类型, 1-企业设置,2-用户自定义,3-规则组标签(<strong>仅系统应用返回</strong>)
				Type int `json:"type"`
				Web  struct {
					Title string `json:"title"`
					URL   string `json:"url"`
				} `json:"web"`
			} `json:"external_attr"`
		} `json:"external_profile"` // 外部联系人的自定义展示信息,可以有多个字段和多种类型,包括文本,网页和小程序,<font data-color="#DC143C" color="#DC143C">仅当联系人类型是企业微信用户时有此字段</font>,字段详情见<a href="#13450" rel="nofollow">对外属性</a>;
		// ExternalUserid 外部联系人的userid
		ExternalUserid string `json:"external_userid"`
		// Gender 外部联系人性别 0-未知 1-男性 2-女性。<strong>第三方不可获取</strong>,上游企业不可获取下游企业客户该字段,返回值为0,表示未定义
		Gender int `json:"gender"`
		// Name 外部联系人的名称<sup>[注1]</sup>
		Name string `json:"name"`
		// Position 外部联系人的职位,如果外部企业或用户选择隐藏职位,则不返回,<font data-color="#DC143C" color="#DC143C">仅当联系人类型是企业微信用户时有此字段</font>
		Position string `json:"position"`
		// Type 外部联系人的类型,1表示该外部联系人是微信用户,2表示该外部联系人是企业微信用户
		// Type 该成员添加此外部联系人所打标签类型, 1-企业设置,2-用户自定义,3-规则组标签(<strong>仅系统应用返回</strong>)
		Type int `json:"type"`
		// Unionid 外部联系人在微信开放平台的唯一身份标识(微信unionid),通过此字段企业可将外部联系人与公众号/小程序用户关联起来。<font data-color="#DC143C" color="#DC143C">仅当联系人类型是微信用户,且企业绑定了微信开发者ID有此字段</font>。<a href="#%E5%A6%82%E4%BD%95%E7%BB%91%E5%AE%9A%E5%BE%AE%E4%BF%A1%E5%BC%80%E5%8F%91%E8%80%85id" rel="nofollow">查看绑定方法</a>。<strong>第三方不可获取</strong>,上游企业不可获取下游企业客户的unionid字段
		Unionid string `json:"unionid"`
	} `json:"external_contact"`
	FollowUser []struct {
		// AddWay 该成员添加此客户的来源,具体含义详见<a href="#13878/%E6%9D%A5%E6%BA%90%E5%AE%9A%E4%B9%89" rel="nofollow">来源定义</a>
		AddWay int `json:"add_way"`
		// Createtime 该成员添加此外部联系人的时间
		Createtime int `json:"createtime"`
		// Description 该成员对此外部联系人的描述
		Description string `json:"description"`
		// OperUserid 发起添加的userid,如果成员主动添加,为成员的userid;如果是客户主动添加,则为客户的外部联系人userid;如果是内部成员共享/管理员分配,则为对应的成员/管理员userid
		OperUserid string `json:"oper_userid"`
		// Remark 该成员对此外部联系人的备注
		Remark string `json:"remark"`
		// RemarkCorpName 该成员对此微信客户备注的企业名称(仅微信客户有该字段)
		RemarkCorpName string `json:"remark_corp_name"`
		// RemarkMobiles 该成员对此客户备注的手机号码,代开发自建应用需要管理员授权才可以获取,<strong>第三方不可获取</strong>,上游企业不可获取下游企业客户该字段
		RemarkMobiles []string `json:"remark_mobiles"`
		// State 企业自定义的state参数,用于区分客户具体是通过哪个「联系我」添加,由企业通过<a href="#15645/%E9%85%8D%E7%BD%AE%E5%AE%A2%E6%88%B7%E8%81%94%E7%B3%BB%E3%80%8C%E8%81%94%E7%B3%BB%E6%88%91%E3%80%8D%E6%96%B9%E5%BC%8F" rel="nofollow">创建「联系我」方式</a>指定
		State string `json:"state"`
		Tags  []struct {
			// GroupName 该成员添加此外部联系人所打标签的分组名称(标签功能需要企业微信升级到2.7.5及以上版本)
			GroupName string `json:"group_name"`
			// TagID 该成员添加此外部联系人所打<strong>企业标签</strong>的id,<strong>用户自定义类型标签(type=2)不返回</strong>
			TagID string `json:"tag_id"`
			// TagName 该成员添加此外部联系人所打标签名称
			TagName string `json:"tag_name"`
			// Type 外部联系人的类型,1表示该外部联系人是微信用户,2表示该外部联系人是企业微信用户
			// Type 该成员添加此外部联系人所打标签类型, 1-企业设置,2-用户自定义,3-规则组标签(<strong>仅系统应用返回</strong>)
			Type int `json:"type"`
		} `json:"tags"`
		// Userid 添加了此外部联系人的企业成员userid
		Userid         string `json:"userid"`
		WechatChannels struct {
			// Nickname 视频号名称
			Nickname string `json:"nickname"`
		} `json:"wechat_channels"` // 该成员添加此客户的来源add_way为10时,对应的视频号信息
	} `json:"follow_user"`
	// NextCursor 分页的cursor,当跟进人多于500人时返回
	NextCursor string `json:"next_cursor"`
}

RespGetExternalcontact 获取客户详情响应 文档:https://developer.work.weixin.qq.com/document/path/92265#获取客户详情

type RespGetGroupWelcomeTemplate added in v1.2.0

type RespGetGroupWelcomeTemplate struct {
	CommonResp
	File        ReqSendWelcomeMsgExternalcontactFile        `json:"file"`
	Image       ReqSendWelcomeMsgExternalcontactImage       `json:"image"`
	Link        ReqSendWelcomeMsgExternalcontactLink        `json:"link"`
	Miniprogram ReqSendWelcomeMsgExternalcontactMiniprogram `json:"miniprogram"`
	Text        ReqSendWelcomeMsgExternalcontactText        `json:"text"`
	Video       ReqSendWelcomeMsgExternalcontactVideo       `json:"video"`
}

RespGetGroupWelcomeTemplate 获取入群欢迎语素材响应 文档:https://developer.work.weixin.qq.com/document/path/93438#获取入群欢迎语素材

type RespGetGroupchat

type RespGetGroupchat struct {
	CommonResp
	GroupChat struct {
		AdminList []struct {
			Userid string `json:"userid"`
		} `json:"admin_list"`
		ChatID     string `json:"chat_id"`
		CreateTime int    `json:"create_time"`
		MemberList []struct {
			GroupNickname string `json:"group_nickname"`
			Invitor       struct {
				Userid string `json:"userid"`
			} `json:"invitor"`
			JoinScene int    `json:"join_scene"`
			JoinTime  int    `json:"join_time"`
			Name      string `json:"name"`
			Type      int    `json:"type"`
			Unionid   string `json:"unionid"`
			Userid    string `json:"userid"`
		} `json:"member_list"`
		Name   string `json:"name"`
		Notice string `json:"notice"`
		Owner  string `json:"owner"`
	} `json:"group_chat"`
}

RespGetGroupchat 获取客户群详情响应 文档:https://developer.work.weixin.qq.com/document/path/92707#获取客户群详情

type RespGetGroupmsgListV2Externalcontact

type RespGetGroupmsgListV2Externalcontact struct {
	CommonResp
	GroupMsgList []struct {
		Attachments []struct {
			File struct {
				// MediaID 图片的media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
				// MediaID 视频的media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
				// MediaID 文件的media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
				// MediaID 图片的media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
				// MediaID 视频的media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
				// MediaID 文件的media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
				// MediaID 图片的media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
				// MediaID 视频的media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
				// MediaID 文件的media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
				MediaID string `json:"media_id"`
			} `json:"file"`
			Image struct {
				MediaID string `json:"media_id"`
				// PicURL 图片的url,与图片的media_id不能共存优先吐出media_id
				PicURL string `json:"pic_url"`
			} `json:"image"`
			Link struct {
				// Desc 图文消息的描述,最多512个<strong>字节</strong>
				Desc string `json:"desc"`
				// Picurl 图文消息封面的url
				Picurl string `json:"picurl"`
				// Title 图文消息标题
				// Title 小程序消息标题,最多64个<strong>字节</strong>
				Title string `json:"title"`
				// URL 图文消息的链接
				URL string `json:"url"`
			} `json:"link"`
			Miniprogram struct {
				// Appid 小程序appid,必须是<strong>关联到企业的小程序应用</strong>
				Appid string `json:"appid"`
				// Page 小程序page路径
				Page       string `json:"page"`
				PicMediaID string `json:"pic_media_id"`
				// Title 图文消息标题
				// Title 小程序消息标题,最多64个<strong>字节</strong>
				Title string `json:"title"`
			} `json:"miniprogram"`
			// Msgtype 值必须是image
			// Msgtype 值必须是link
			// Msgtype 值必须是miniprogram
			// Msgtype 值必须是video
			// Msgtype 值必须是file
			Msgtype string `json:"msgtype"`
			Video   struct {
				MediaID string `json:"media_id"`
			} `json:"video"`
		} `json:"attachments"`
		// CreateTime 创建时间
		CreateTime string `json:"create_time"`
		// CreateType 群发消息创建来源。0:企业 1:个人
		CreateType int `json:"create_type"`
		// Creator 群发消息创建者userid,<a href="#15836" rel="nofollow">API接口</a>创建的群发消息不返回该字段
		Creator string `json:"creator"`
		// Msgid 企业群发消息的id,可用于<a href="" rel="nofollow">获取企业群发成员执行结果</a>
		Msgid string `json:"msgid"`
		Text  struct {
			// Content 消息文本内容,最多4000个<strong>字节</strong>
			Content string `json:"content"`
		} `json:"text"`
	} `json:"group_msg_list"` // 群发记录列表
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
}

RespGetGroupmsgListV2Externalcontact 获取群发记录列表响应 文档:https://developer.work.weixin.qq.com/document/path/93338#获取群发记录列表

type RespGetGroupmsgSendResultExternalcontact

type RespGetGroupmsgSendResultExternalcontact struct {
	CommonResp
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
	SendList   []struct {
		// ChatID 外部客户群id,群发消息到客户不返回该字段
		ChatID string `json:"chat_id"`
		// ExternalUserid 外部联系人userid,群发消息到企业的客户群不返回该字段
		ExternalUserid string `json:"external_userid"`
		// SendTime 发送时间,发送状态为1时返回
		SendTime int `json:"send_time"`
		// Status 发送状态:0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败
		Status int `json:"status"`
		// Userid 企业服务人员的userid
		Userid string `json:"userid"`
	} `json:"send_list"` // 群成员发送结果列表
}

RespGetGroupmsgSendResultExternalcontact 获取企业群发成员执行结果响应 文档:https://developer.work.weixin.qq.com/document/path/93338#获取企业群发成员执行结果

type RespGetGroupmsgTaskExternalcontact

type RespGetGroupmsgTaskExternalcontact struct {
	CommonResp
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
	TaskList   []struct {
		// SendTime 发送时间,未发送时不返回
		SendTime int `json:"send_time"`
		// Status 发送状态:0-未发送 2-已发送
		Status int `json:"status"`
		// Userid 企业服务人员的userid
		Userid string `json:"userid"`
	} `json:"task_list"` // 群发成员发送任务列表
}

RespGetGroupmsgTaskExternalcontact 获取群发成员发送任务列表响应 文档:https://developer.work.weixin.qq.com/document/path/93338#获取群发成员发送任务列表

type RespGetLoginInfoService added in v1.2.0

type RespGetLoginInfoService struct {
	CommonResp
	Usertype int `json:"usertype"`
	UserInfo struct {
		Userid     string `json:"userid"`
		OpenUserid string `json:"open_userid"`
		Name       string `json:"name"`
		Avatar     string `json:"avatar"`
	} `json:"user_info"`
	CorpInfo struct {
		Corpid string `json:"corpid"`
	} `json:"corp_info"`
	Agent []struct {
		Agentid  int `json:"agentid"`
		AuthType int `json:"auth_type"`
	} `json:"agent"`
	AuthInfo struct {
		Department []struct {
			ID       int  `json:"id"`
			Writable bool `json:"writable"`
		} `json:"department"`
	} `json:"auth_info"`
}

RespGetLoginInfoService 获取登录用户信息响应 文档:https://developer.work.weixin.qq.com/document/path/91125#获取登录用户信息

type RespGetMomentCommentsExternalcontact added in v1.2.9

type RespGetMomentCommentsExternalcontact struct {
	CommentList []struct {
		// CreateTime 评论时间
		// CreateTime 点赞时间
		// CreateTime 评论时间
		// CreateTime 点赞时间
		CreateTime int `json:"create_time"`
		// ExternalUserid 评论的外部联系人userid
		// ExternalUserid 点赞的外部联系人userid
		// ExternalUserid 评论的外部联系人userid
		// ExternalUserid 点赞的外部联系人userid
		ExternalUserid string `json:"external_userid"`
		// Userid 评论的企业成员userid,userid与external_userid不会同时出现
		// Userid 点赞的企业成员userid,userid与external_userid不会同时出现
		// Userid 评论的企业成员userid,userid与external_userid不会同时出现
		// Userid 点赞的企业成员userid,userid与external_userid不会同时出现
		Userid string `json:"userid"`
	} `json:"comment_list"` // 评论列表
	CommonResp
	LikeList []struct {
		CreateTime     int    `json:"create_time"`
		ExternalUserid string `json:"external_userid"`
		Userid         string `json:"userid"`
	} `json:"like_list"` // 点赞列表
}

RespGetMomentCommentsExternalcontact 获取客户朋友圈的互动数据响应 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈的互动数据

type RespGetMomentCustomerListExternalcontact added in v1.2.9

type RespGetMomentCustomerListExternalcontact struct {
	CustomerList []struct {
		// ExternalUserid 发送成功的外部联系人userid
		ExternalUserid string `json:"external_userid"`
		// Userid 发表成员用户userid
		Userid string `json:"userid"`
	} `json:"customer_list"` // 成员可见客户列表
	CommonResp
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
}

RespGetMomentCustomerListExternalcontact 获取客户朋友圈发表时选择的可见范围响应 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈发表时选择的可见范围

type RespGetMomentListExternalcontact added in v1.2.9

type RespGetMomentListExternalcontact struct {
	CommonResp
	MomentList []struct {
		// CreateTime 创建时间
		CreateTime int `json:"create_time"`
		// CreateType 朋友圈创建来源。0:企业 1:个人
		CreateType int `json:"create_type"`
		// Creator 朋友圈创建者userid,<a href="#34646" rel="nofollow">企业发表内容到客户的朋友圈</a>接口创建的朋友圈不再返回该字段
		Creator string `json:"creator"`
		Image   []struct {
			// MediaID 图片的media_id列表,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
			// MediaID 视频media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
			MediaID string `json:"media_id"`
		} `json:"image"`
		Link struct {
			// Title 网页链接标题
			Title string `json:"title"`
			// URL 网页链接url
			URL string `json:"url"`
		} `json:"link"`
		Location struct {
			// Latitude 地理位置纬度
			Latitude string `json:"latitude"`
			// Longitude 地理位置经度
			Longitude string `json:"longitude"`
			// Name 地理位置名称
			Name string `json:"name"`
		} `json:"location"`
		// MomentID 朋友圈id
		MomentID string `json:"moment_id"`
		Text     struct {
			// Content 文本消息结构
			Content string `json:"content"`
		} `json:"text"`
		Video struct {
			// MediaID 图片的media_id列表,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
			// MediaID 视频media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
			MediaID string `json:"media_id"`
			// ThumbMediaID 视频封面media_id,可以通过<a href="#10115" rel="nofollow">获取临时素材</a>下载资源
			ThumbMediaID string `json:"thumb_media_id"`
		} `json:"video"`
		// VisibleType 可见范围类型。0:部分可见 1:公开
		VisibleType int `json:"visible_type"`
	} `json:"moment_list"` // 朋友圈列表
	// NextCursor 分页游标,下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
}

RespGetMomentListExternalcontact 获取企业全部的发表列表响应 文档:https://developer.work.weixin.qq.com/document/path/93333#获取企业全部的发表列表

type RespGetMomentSendResultExternalcontact added in v1.2.9

type RespGetMomentSendResultExternalcontact struct {
	CustomerList []struct {
		// ExternalUserid 成员发送成功的外部联系人userid
		ExternalUserid string `json:"external_userid"`
	} `json:"customer_list"` // 成员发送成功客户列表
	CommonResp
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
}

RespGetMomentSendResultExternalcontact 获取客户朋友圈发表后的可见客户列表响应 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈发表后的可见客户列表

type RespGetMomentStrategy added in v1.2.9

type RespGetMomentStrategy struct {
	CommonResp
	Strategy struct {
		// AdminList 规则组管理员userid列表
		AdminList []string `json:"admin_list"`
		// CreateTime 规则组创建时间戳
		CreateTime int `json:"create_time"`
		// ParentID 父规则组id, 如果当前规则组没父规则组,则为0
		ParentID  int `json:"parent_id"`
		Privilege struct {
			// ManageMomentCoverAndSign 配置封面和签名,默认为true
			ManageMomentCoverAndSign bool `json:"manage_moment_cover_and_sign"`
			// SendMoment 允许成员发表客户朋友圈,默认为true
			SendMoment bool `json:"send_moment"`
			// ViewMomentList 允许查看成员的全部客户朋友圈发表
			ViewMomentList bool `json:"view_moment_list"`
		} `json:"privilege"`
		// StrategyID 规则组id
		StrategyID int `json:"strategy_id"`
		// StrategyName 规则组名称
		StrategyName string `json:"strategy_name"`
	} `json:"strategy"`
}

RespGetMomentStrategy 获取规则组详情响应 文档:https://developer.work.weixin.qq.com/document/path/94890#获取规则组详情

type RespGetMomentTaskExternalcontact added in v1.2.9

type RespGetMomentTaskExternalcontact struct {
	CommonResp
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
	TaskList   []struct {
		// PublishStatus 成员发表状态。0:未发表 1:已发表
		PublishStatus int `json:"publish_status"`
		// Userid 发表成员用户userid
		Userid string `json:"userid"`
	} `json:"task_list"` // 发表任务列表
}

RespGetMomentTaskExternalcontact 获取客户朋友圈企业发表的列表响应 文档:https://developer.work.weixin.qq.com/document/path/93333#获取客户朋友圈企业发表的列表

type RespGetMomentTaskResultExternalcontact added in v1.2.9

type RespGetMomentTaskResultExternalcontact struct {
	CommonResp
	// 任务状态,整型,1表示开始创建任务,2表示正在创建任务中,3表示创建任务已完成
	Status int `json:"status"`
	// 操作类型,字节串,此处固定为add_moment_task
	Type string `json:"type"`
	// 详细的处理结果。当任务完成后此字段有效
	Result struct {
		Errcode           int    `json:"errcode"`
		Errmsg            string `json:"errmsg"`
		MomentID          string `json:"moment_id"`
		InvalidSenderList struct {
			UserList       []string `json:"user_list"`
			DepartmentList []int    `json:"department_list"`
		} `json:"invalid_sender_list"`
		InvalidExternalContactList struct {
			TagList []string `json:"tag_list"`
		} `json:"invalid_external_contact_list"`
	} `json:"result"`
}

RespGetMomentTaskResultExternalcontact 获取任务创建结果响应 文档:https://developer.work.weixin.qq.com/document/path/95094#获取任务创建结果

type RespGetNewExternalUseridExternalcontact

type RespGetNewExternalUseridExternalcontact struct {
	CommonResp
	Items []struct {
		ExternalUserid    string `json:"external_userid"`
		NewExternalUserid string `json:"new_external_userid"`
	} `json:"items"`
}

type RespGetOrderDetailPaytool added in v1.3.1

type RespGetOrderDetailPaytool struct {
	CommonResp
	PayOrder struct {
		OrderId        string `json:"order_id"`
		CreateTime     int    `json:"create_time"`
		CustomCorpid   string `json:"custom_corpid"`
		BuyContent     string `json:"buy_content"`
		OriginPrice    int    `json:"origin_price"`
		PaidPrice      int    `json:"paid_price"`
		OrderStatus    int    `json:"order_status"`
		OrderFrom      int    `json:"order_from"`
		Creator        string `json:"creator"`
		CustomCorpName string `json:"custom_corp_name"`
		PayChannel     int    `json:"pay_channel"`
		ChannelOrderId string `json:"channel_order_id"`
		PaidTime       int    `json:"paid_time"`
		BusinessType   int    `json:"business_type"`
		IncomeType     int    `json:"income_type"`
		IncomeTime     int    `json:"income_time"`
		IncomeAmount   int    `json:"income_amount"`
		ProductList    struct {
			ThirdApp struct {
				OrderType   int `json:"order_type"`
				BuyInfoList []struct {
					Suiteid          string `json:"suiteid"`
					Appid            int    `json:"appid"`
					EditionId        string `json:"edition_id"`
					UserCount        int    `json:"user_count"`
					DurationDays     int    `json:"duration_days"`
					OriginPrice      int    `json:"origin_price"`
					PaidPrice        int    `json:"paid_price"`
					GiftDurationDays int    `json:"gift_duration_days"`
				} `json:"buy_info_list"`
			} `json:"third_app"`
			CustomizedApp struct {
				OrderType   int `json:"order_type"`
				BuyInfoList []struct {
					Suiteid          string `json:"suiteid"`
					UserCount        int    `json:"user_count"`
					DurationDays     int    `json:"duration_days"`
					OriginPrice      int    `json:"origin_price"`
					PaidPrice        int    `json:"paid_price"`
					GiftDurationDays int    `json:"gift_duration_days"`
				} `json:"buy_info_list"`
			} `json:"customized_app"`
			PromotionCase struct {
				OrderType            int    `json:"order_type"`
				CaseId               string `json:"case_id"`
				PromotionEditionName string `json:"promotion_edition_name"`
				BuyInfoList          []struct {
					Suiteid          string `json:"suiteid"`
					Appid            int    `json:"appid"`
					UserCount        int    `json:"user_count"`
					OriginPrice      int    `json:"origin_price"`
					PaidPrice        int    `json:"paid_price"`
					GiftDurationDays int    `json:"gift_duration_days"`
				} `json:"buy_info_list"`
			} `json:"promotion_case"`
		} `json:"product_list"`
	} `json:"pay_order"`
}

RespGetOrderDetailPaytool 获取收款订单详情响应 文档:https://developer.work.weixin.qq.com/document/path/98054#获取收款订单详情

type RespGetOrderLicense

type RespGetOrderLicense struct {
	CommonResp
	Order struct {
		AccountCount struct {
			// BaseCount 基础帐号个数
			BaseCount int `json:"base_count"`
			// ExternalContactCount 互通帐号个数
			ExternalContactCount int `json:"external_contact_count"`
		} `json:"account_count"` // 订单的帐号数详情
		AccountDuration struct {
			// Months 购买的月数,每个月按照31天计算
			Months int `json:"months"`
		} `json:"account_duration"` // 帐号购买时长
		// Corpid 客户企业id,返回加密的corpid
		Corpid string `json:"corpid"`
		// CreateTime 创建时间
		CreateTime int `json:"create_time"`
		// OrderID 订单号
		OrderID string `json:"order_id"`
		// OrderStatus 订单状态,0:待支付,1:已支付,2:未支付,订单已关闭,3:未支付,订单已过期,4:申请退款中,5:退款成功,6:退款被拒绝
		OrderStatus int `json:"order_status"`
		// OrderType 订单类型,1:购买帐号,2:续期帐号 5:历史企业迁移订单
		OrderType int `json:"order_type"`
		// PayTime 支付时间。迁移订单不返回该字段
		PayTime int `json:"pay_time"`
		// Price 订单金额,单位分
		Price int `json:"price"`
	} `json:"order"` // 订单详情
}

RespGetOrderLicense 获取订单详情响应 文档:https://developer.work.weixin.qq.com/document/path/95648#获取订单详情

type RespGetOrderListPaytool added in v1.3.1

type RespGetOrderListPaytool struct {
	CommonResp
	// HasMore 是否还有更多数据
	HasMore int `json:"has_more"`
	// NextCursor 分页游标,下次请求时填写以获取之后分页的记录
	NextCursor   string `json:"next_cursor"`
	PayOrderList []struct {
		// BuyContent 购买内容
		BuyContent string `json:"buy_content"`
		// CreateTime 订单创建时间
		CreateTime int `json:"create_time"`
		// Creator 订单创建人
		Creator string `json:"creator"`
		// CustomCorpid 客户企业的corpid
		CustomCorpid string `json:"custom_corpid"`
		// OrderFrom 订单来源。取值范围为:<br/> 1 - 客户下单<br/> 2 - 服务商创建
		OrderFrom int `json:"order_from"`
		// OrderID 订单号
		OrderID string `json:"order_id"`
		// OrderStatus 订单状态。取值范围为:<br/>1 - 待支付 <br/> 2 - 已支付<br/> 3 - 订单取消<br/> 4 - 支付过期<br/> 5 - 退款申请中<br/> 6 - 已退款<br/> 7 - 交易完成
		OrderStatus int `json:"order_status"`
		// OriginPrice 原价金额
		OriginPrice int `json:"origin_price"`
		// PaidPrice 实付金额
		PaidPrice int `json:"paid_price"`
	} `json:"pay_order_list"` // 订单列表
}

RespGetOrderListPaytool 获取收款订单列表响应 文档:https://developer.work.weixin.qq.com/document/path/98053#获取收款订单列表

type RespGetOrderListService added in v1.2.9

type RespGetOrderListService struct {
	CommonResp
	OrderList []struct {
		// Appid 套件应用id(仅旧套件有该字段)
		Appid int `json:"appid"`
		// BeginTime 购买生效期的开始时间(UNIX时间戳)
		BeginTime      int `json:"begin_time"`
		DealerCorpInfo struct {
			// CorpName 代理商的企业简称
			CorpName string `json:"corp_name"`
			// Corpid 代理商corpid
			Corpid string `json:"corpid"`
		} `json:"dealer_corp_info"` // 代理商信息(仅当有渠道商报备后才会有此字段)
		// DealerShareAmount 代理商分成金额,单位分
		DealerShareAmount int `json:"dealer_share_amount"`
		// EditionID 购买版本ID
		EditionID string `json:"edition_id"`
		// EditionName 购买版本名字
		EditionName string `json:"edition_name"`
		// EndTime 购买生效期的结束时间(UNIX时间戳)
		EndTime int `json:"end_time"`
		// OperatorCorpid 下单方corpid
		OperatorCorpid string `json:"operator_corpid"`
		// OperatorID 下单操作人员userid。如果是服务商代下单,没有该字段。
		OperatorID string `json:"operator_id"`
		// OrderFrom 下单来源。0-企业下单;1-服务商代下单;2-代理商代下单
		OrderFrom int `json:"order_from"`
		// OrderPeriod 购买的时长,单位天
		OrderPeriod int `json:"order_period"`
		// OrderStatus 订单状态。订单状态。0-待支付,1-已支付,2-已取消, 3-支付过期, 4-申请退款中, 5-退款成功, 6-退款被拒绝
		OrderStatus int `json:"order_status"`
		// OrderTime 下单时间(UNIX时间戳)
		OrderTime int `json:"order_time"`
		// OrderType 订单类型。0-新购应用,1-扩容应用人数,2-续期应用时间,3-变更版本
		OrderType int `json:"order_type"`
		// Orderid 订单号
		Orderid string `json:"orderid"`
		// PaidCorpid 客户企业的corpid
		PaidCorpid string `json:"paid_corpid"`
		// PaidTime 付款时间(UNIX时间戳)
		PaidTime int `json:"paid_time"`
		// PlatformShareAmount 平台分成金额,单位分
		PlatformShareAmount int `json:"platform_share_amount"`
		// Price 应付价格,单位分
		Price int `json:"price"`
		// ServiceShareAmount 服务商分成金额,单位分
		ServiceShareAmount int `json:"service_share_amount"`
		// Suiteid 应用id
		Suiteid string `json:"suiteid"`
		// UserCount 购买的人数
		UserCount int `json:"user_count"`
	} `json:"order_list"` // 订单列表
}

RespGetOrderListService 获取订单列表响应 文档:https://developer.work.weixin.qq.com/document/path/91910#获取订单列表

type RespGetOrderService added in v1.2.9

type RespGetOrderService struct {
	// Appid 套件应用id(仅旧套件有该字段)
	Appid int `json:"appid"`
	// BeginTime 购买生效期的开始时间(UNIX时间戳)
	BeginTime      int `json:"begin_time"`
	DealerCorpInfo struct {
		// CorpName 代理商的企业简称
		CorpName string `json:"corp_name"`
		// Corpid 代理商corpid
		Corpid string `json:"corpid"`
	} `json:"dealer_corp_info"` // 渠道商信息(仅当有渠道商报备后才会有此字段)
	// DealerShareAmount 代理商分成金额,单位分
	DealerShareAmount int `json:"dealer_share_amount"`
	// EditionID 购买版本ID
	EditionID string `json:"edition_id"`
	// EditionName 购买版本名字
	EditionName string `json:"edition_name"`
	// EndTime 购买生效期的结束时间(UNIX时间戳)
	EndTime int `json:"end_time"`
	CommonResp
	// OperatorCorpid 下单方corpid
	OperatorCorpid string `json:"operator_corpid"`
	// OperatorID 下单操作人员userid。如果是服务商代下单,没有该字段。
	OperatorID string `json:"operator_id"`
	// OrderFrom 下单来源。0-企业下单;1-服务商代下单;2-代理商代下单
	OrderFrom int `json:"order_from"`
	// OrderPeriod 购买的时长,单位为天
	OrderPeriod int `json:"order_period"`
	// OrderStatus 订单状态。0-待支付,1-已支付,2-已取消, 3-支付过期, 4-申请退款中, 5-退款成功, 6-退款被拒绝
	OrderStatus int `json:"order_status"`
	// OrderTime 下单时间(UNIX时间戳)
	OrderTime int `json:"order_time"`
	// OrderType 订单类型。0-新购应用,1-扩容应用人数,2-续期应用时间,3-变更版本
	OrderType int `json:"order_type"`
	// Orderid 订单号
	Orderid string `json:"orderid"`
	// PaidCorpid 客户企业的corpid
	PaidCorpid string `json:"paid_corpid"`
	// PaidTime 付款时间(UNIX时间戳)
	PaidTime int `json:"paid_time"`
	// PlatformShareAmount 平台分成金额,单位分
	PlatformShareAmount int `json:"platform_share_amount"`
	// Price 应付价格,单位分
	Price int `json:"price"`
	// ServiceShareAmount 服务商分成金额,单位分
	ServiceShareAmount int `json:"service_share_amount"`
	// Suiteid 应用id
	Suiteid string `json:"suiteid"`
	// UserCount 本次订单扩容之后的人数
	UserCount int `json:"user_count"`
}

RespGetOrderService 获取订单详情响应 文档:https://developer.work.weixin.qq.com/document/path/91909#获取订单详情

type RespGetPaymentInfoExternalpay added in v1.1.7

type RespGetPaymentInfoExternalpay struct {
	BillList []struct {
		OutTradeNo string `json:"out_trade_no"`
	} `json:"bill_list"`
	CommonResp
}

RespGetPaymentInfoExternalpay 获取收款项目的商户单号响应 文档:https://developer.work.weixin.qq.com/document/path/95936#获取收款项目的商户单号

type RespGetPermanentCodeService

type RespGetPermanentCodeService struct {
	AccessToken  string       `json:"access_token"`
	AuthCorpInfo AuthCorpInfo `json:"auth_corp_info"`
	AuthInfo     AuthInfo     `json:"auth_info"`
	AuthUserInfo struct {
		Avatar     string `json:"avatar"`
		Name       string `json:"name"`
		OpenUserid string `json:"open_userid"`
		Userid     string `json:"userid"`
	} `json:"auth_user_info"`
	DealerCorpInfo DealerCorpInfo `json:"dealer_corp_info"`
	CommonResp
	ExpiresIn        int    `json:"expires_in"`
	PermanentCode    string `json:"permanent_code"`
	RegisterCodeInfo struct {
		RegisterCode string `json:"register_code"`
		State        string `json:"state"`
		TemplateID   string `json:"template_id"`
	} `json:"register_code_info"`
	// 收银台获取企业永久授权码额外返回字段:https://developer.work.weixin.qq.com/document/path/91911
	EditionInfo EditionInfo `json:"edition_info"`
}

RespGetPermanentCodeService 获取企业永久授权码响应 文档:https://developer.work.weixin.qq.com/document/path/90603#获取企业永久授权码

type RespGetPermissionsAgent added in v1.4.0

type RespGetPermissionsAgent struct {
	CommonResp
	AppPermissions []string `json:"app_permissions"`
}

文档:https://developer.work.weixin.qq.com/document/path/99052#获取应用权限详情

type RespGetPreAuthCodeService added in v1.2.0

type RespGetPreAuthCodeService struct {
	CommonResp
	// ExpiresIn 有效期(秒)
	ExpiresIn int `json:"expires_in"`
	// PreAuthCode 预授权码,最长为512字节
	PreAuthCode string `json:"pre_auth_code"`
}

RespGetPreAuthCodeService 获取预授权码响应 文档:https://developer.work.weixin.qq.com/document/path/90601#获取预授权码

type RespGetProviderTokenService

type RespGetProviderTokenService struct {
	CommonResp

	ExpiresIn           int    `json:"expires_in"`
	ProviderAccessToken string `json:"provider_access_token"`
}

RespGetProviderTokenService 获取服务商凭证响应 文档:https://developer.work.weixin.qq.com/document/path/91200#获取服务商凭证

type RespGetRangeMomentStrategy added in v1.2.9

type RespGetRangeMomentStrategy struct {
	CommonResp
	// NextCursor 分页游标,用于查询下一个分页的数据,无更多数据时不返回
	NextCursor string `json:"next_cursor"`
	Range      []struct {
		// Partyid 管理范围内配置的部门partyid,仅<code>type</code>为2时返回
		Partyid int `json:"partyid"`
		// Type 节点类型,1-成员 2-部门
		Type int `json:"type"`
		// Userid 管理范围内配置的成员userid,仅<code>type</code>为1时返回
		Userid string `json:"userid"`
	} `json:"range"`
}

RespGetRangeMomentStrategy 获取规则组管理范围响应 文档:https://developer.work.weixin.qq.com/document/path/94890#获取规则组管理范围

type RespGetRegisterCodeService

type RespGetRegisterCodeService struct {
	CommonResp
	ExpiresIn    int    `json:"expires_in"`
	RegisterCode string `json:"register_code"`
}

RespGetRegisterCodeService 获取注册码响应 文档:https://developer.work.weixin.qq.com/document/path/90581#获取注册码

type RespGetSuiteTokenService

type RespGetSuiteTokenService struct {
	CommonResp
	ExpiresIn        int    `json:"expires_in"`
	SuiteAccessToken string `json:"suite_access_token"`
}

RespGetSuiteTokenService 获取第三方应用凭证响应 文档:https://developer.work.weixin.qq.com/document/path/90600#获取第三方应用凭证

type RespGetTag added in v1.2.0

type RespGetTag struct {
	CommonResp
	// Partylist 标签中包含的部门id列表
	Partylist []int `json:"partylist"`
	// Tagname 标签名
	Tagname  string `json:"tagname"`
	Userlist []struct {
		// Name 成员名称,代开发自建应用需要管理员授权才返回该字段;此字段从2019年12月30日起,对新创建第三方应用不再返回,2020年6月30日起,对所有历史第三方应用不再返回,后续第三方仅通讯录应用可获取,未返回名称的情况需要通过<a href="#17172" rel="nofollow">通讯录展示组件</a>来展示名字
		Name string `json:"name"`
		// Userid 成员帐号
		Userid string `json:"userid"`
	} `json:"userlist"` // 标签中包含的成员列表
}

RespGetTag 获取标签成员响应 文档:https://developer.work.weixin.qq.com/document/path/90349#获取标签成员

type RespGetTemplateDetail added in v1.1.3

type RespGetTemplateDetail struct {
	CommonResp
	TemplateNames []struct {
		Text string `json:"text"`
		Lang string `json:"lang"`
	} `json:"template_names"`
	TemplateContent struct {
		Controls []struct {
			Property Property `json:"property"`
			Config   struct {
				Date         Date         `json:"date"`
				Selector     Selector     `json:"selector"`
				Contact      Contact      `json:"contact"`
				Table        Table        `json:"table"`
				Attendance   Attendance   `json:"attendance"`
				VacationList VacationList `json:"vacation_list"`
			} `json:"config"`
		} `json:"controls"`
	} `json:"template_content"`
}

type RespGetUnassignedListExternalcontact

type RespGetUnassignedListExternalcontact struct {
	CommonResp
	Info []struct {
		// DimissionTime 成员离职时间
		DimissionTime int `json:"dimission_time"`
		// ExternalUserid 外部联系人userid
		ExternalUserid string `json:"external_userid"`
		// HandoverUserid 离职成员的userid
		HandoverUserid string `json:"handover_userid"`
	} `json:"info"`
	// IsLast 是否是最后一条记录
	IsLast bool `json:"is_last"`
	// NextCursor 分页查询游标,已经查完则返回空(&#34;&#34;),使用<code>page_id</code>作为查询参数时不返回
	NextCursor string `json:"next_cursor"`
}

RespGetUnassignedListExternalcontact 获取待分配的离职成员列表响应 文档:https://developer.work.weixin.qq.com/document/path/92273#获取待分配的离职成员列表

type RespGetUnionOrderLicense added in v1.4.0

type RespGetUnionOrderLicense struct {
	BuyList []struct {
		AccountCount struct {
			// BaseCount 基础帐号个数
			BaseCount int `json:"base_count"`
			// ExternalContactCount 互通帐号个数
			ExternalContactCount int `json:"external_contact_count"`
		} `json:"account_count"` // 订单的帐号数详情
		AccountDuration struct {
			// Days 购买的天数
			Days int `json:"days"`
			// Months 购买的月数,每个月按照31天计算
			Months int `json:"months"`
		} `json:"account_duration"` // 帐号购买时长
		// Corpid 客户企业id,返回加密的corpid
		Corpid string `json:"corpid"`
		// SubOrderID 子订单id,可以调用<a href="#38201" rel="nofollow">获取订单中的帐号列表接口</a>以获取帐号列表
		SubOrderID string `json:"sub_order_id"`
	} `json:"buy_list"` // 多企业购买信息列表
	CommonResp
	// HasMore 是否有更多。 0: 没有, 1: 有
	HasMore int `json:"has_more"`
	// NextCursor 分页游标,下次请求时填写到 cursor 以获取之后分页的记录
	NextCursor string `json:"next_cursor"`
	Order      struct {
		// CreateTime 创建时间,Unix时间戳
		CreateTime int `json:"create_time"`
		// OrderID 订单号
		OrderID string `json:"order_id"`
		// OrderStatus 订单状态<br/>0:待支付<br/>1:已支付<br/>2:已取消(未支付,订单已关闭)<br/>3:未支付,订单已过期
		OrderStatus int `json:"order_status"`
		// OrderType 订单类型<br/>8:多企业新购订单
		OrderType int `json:"order_type"`
		// PayTime 支付时间,Unix时间戳
		PayTime int `json:"pay_time"`
		// Price 订单金额,单位分
		Price int `json:"price"`
	} `json:"order"` // 订单详情
}

RespGetUnionOrderLicense 获取多企业订单详情响应 文档:https://developer.work.weixin.qq.com/document/path/98893#获取多企业订单详情

type RespGetUploadByUrlResultMedia added in v1.2.9

type RespGetUploadByUrlResultMedia struct {
	CommonResp
	Detail struct {
		CommonResp
		// CreatedAt 媒体文件创建的时间戳。当status为<code>2</code>时返回。
		CreatedAt string `json:"created_at"`
		// MediaID 媒体文件上传后获取的唯一标识,3天内有效。当status为<code>2</code>时返回。
		MediaID string `json:"media_id"`
	} `json:"detail"` // 结果明细
	// Status 任务状态。1-处理中,2-完成,3-异常失败
	Status int `json:"status"`
}

RespGetUploadByUrlResultMedia 查询异步任务结果响应 文档:https://developer.work.weixin.qq.com/document/path/96219#查询异步任务结果

type RespGetUser

type RespGetUser struct {
	Address    string `json:"address"`
	Alias      string `json:"alias"`
	Avatar     string `json:"avatar"`
	Department []int  `json:"department"`
	Email      string `json:"email"`
	CommonResp
	Extattr struct {
		Attrs []struct {
			Name string `json:"name"`
			Text struct {
				Value string `json:"value"`
			} `json:"text"`
			Type int `json:"type"`
			Web  struct {
				Title string `json:"title"`
				URL   string `json:"url"`
			} `json:"web"`
		} `json:"attrs"`
	} `json:"extattr"`
	ExternalPosition string `json:"external_position"`
	ExternalProfile  struct {
		ExternalAttr []struct {
			Miniprogram struct {
				Appid    string `json:"appid"`
				Pagepath string `json:"pagepath"`
				Title    string `json:"title"`
			} `json:"miniprogram"`
			Name string `json:"name"`
			Text struct {
				Value string `json:"value"`
			} `json:"text"`
			Type int `json:"type"`
			Web  struct {
				Title string `json:"title"`
				URL   string `json:"url"`
			} `json:"web"`
		} `json:"external_attr"`
		ExternalCorpName string `json:"external_corp_name"`
		WechatChannels   struct {
			Nickname string `json:"nickname"`
			Status   int    `json:"status"`
		} `json:"wechat_channels"`
	} `json:"external_profile"`
	Gender         string `json:"gender"`
	IsLeaderInDept []int  `json:"is_leader_in_dept"`
	MainDepartment int    `json:"main_department"`
	Mobile         string `json:"mobile"`
	Name           string `json:"name"`
	OpenUserid     string `json:"open_userid"`
	Order          []int  `json:"order"`
	Position       string `json:"position"`
	QrCode         string `json:"qr_code"`
	Status         int    `json:"status"`
	Telephone      string `json:"telephone"`
	ThumbAvatar    string `json:"thumb_avatar"`
	Userid         string `json:"userid"`
}

RespGetUser 读取成员响应 文档:https://developer.work.weixin.qq.com/document/path/90332#读取成员

type RespGetUseridByEmailUser added in v1.1.6

type RespGetUseridByEmailUser struct {
	CommonResp
	// Userid 成员UserID。注意:已升级openid的代开发或第三方,获取的是密文userid
	Userid string `json:"userid"`
}

RespGetUseridByEmailUser 邮箱获取userid响应 文档:https://developer.work.weixin.qq.com/document/path/95892#邮箱获取userid

type RespGetcorpconfVacation added in v1.1.3

type RespGetcorpconfVacation struct {
	CommonResp
	Lists []struct {
		DurationType   int    `json:"duration_type"`
		ID             int    `json:"id"`
		Name           string `json:"name"`
		PerdayDuration int    `json:"perday_duration"`
		QuotaAttr      struct {
			AutoresetDuration int `json:"autoreset_duration"`
			AutoresetTime     int `json:"autoreset_time"`
			Type              int `json:"type"`
		} `json:"quota_attr"`
		TimeAttr int `json:"time_attr"`
	} `json:"lists"`
}

RespGetcorpconfVacation 获取企业假期管理配置响应 文档:https://developer.work.weixin.qq.com/document/path/94211#获取企业假期管理配置

type RespGetuserdetail3RdService

type RespGetuserdetail3RdService struct {
	Avatar string `json:"avatar"`
	Corpid string `json:"corpid"`
	CommonResp
	Gender string `json:"gender"`
	Name   string `json:"name"`
	QrCode string `json:"qr_code"`
	Userid string `json:"userid"`
}

RespGetuserdetail3RdService 获取访问用户敏感信息响应 文档:https://developer.work.weixin.qq.com/document/path/91122#获取访问用户敏感信息

type RespGetuseridUser added in v1.1.6

type RespGetuseridUser struct {
	CommonResp
	// Userid 成员UserID。对应管理端的帐号,企业内必须唯一。不区分大小写,长度为1~64个字节。注意:第三方应用获取的值是密文的userid
	Userid string `json:"userid"`
}

RespGetuseridUser 手机号获取userid响应 文档:https://developer.work.weixin.qq.com/document/path/91693#手机号获取userid

type RespGetuserinfo3RdService

type RespGetuserinfo3RdService struct {
	CommonResp
	CorpID     string `json:"CorpId"`
	UserID     string `json:"UserId"`
	DeviceID   string `json:"DeviceId"`
	UserTicket string `json:"user_ticket"`
	ExpiresIn  int    `json:"expires_in"`
	OpenUserID string `json:"open_userid"`
}

RespGetuserinfo3RdService 获取访问用户身份响应 文档:https://developer.work.weixin.qq.com/document/path/91121#获取访问用户身份

type RespGetuservacationquotaVacation added in v1.1.3

type RespGetuservacationquotaVacation struct {
	CommonResp
	Lists []struct {
		Assignduration int    `json:"assignduration"`
		ID             int    `json:"id"`
		Leftduration   int    `json:"leftduration"`
		Usedduration   int    `json:"usedduration"`
		Vacationname   string `json:"vacationname"`
	} `json:"lists"`
}

RespGetuservacationquotaVacation 获取成员假期余额响应 文档:https://developer.work.weixin.qq.com/document/path/94212#获取成员假期余额

type RespGroupchatStatistic

type RespGroupchatStatistic struct {
	CommonResp
	Items []struct {
		Data struct {
			// ChatHasMsg 截至当天有发过消息的客户群数量
			ChatHasMsg uint64 `json:"chat_has_msg"`
			// ChatTotal 截至当天客户群总数量
			ChatTotal uint64 `json:"chat_total"`
			// MemberHasMsg 截至当天有发过消息的群成员数
			MemberHasMsg uint64 `json:"member_has_msg"`
			// MemberTotal 截至当天客户群总人数
			MemberTotal uint64 `json:"member_total"`
			// MigrateTraineeChatCnt 截至当天新增迁移群数(仅教培行业返回)
			MigrateTraineeChatCnt uint64 `json:"migrate_trainee_chat_cnt"`
			// MsgTotal 截至当天客户群消息总数
			MsgTotal uint64 `json:"msg_total"`
			// NewChatCnt 新增客户群数量
			NewChatCnt uint64 `json:"new_chat_cnt"`
			// NewMemberCnt 客户群新增群人数。
			NewMemberCnt uint64 `json:"new_member_cnt"`
		} `json:"data"` // 详情
		// StatTime 数据日期,为当日0点的时间戳
		StatTime int64 `json:"stat_time"`
	} `json:"items"` // 记录列表。表示某个自然日客户群的统计数据
}

RespGroupchatStatistic 按自然日聚合的方式响应 文档:https://developer.work.weixin.qq.com/document/path/93476#按自然日聚合的方式

type RespImportChainContactCorpgroup added in v1.3.0

type RespImportChainContactCorpgroup struct {
	CommonResp
	// Jobid 异步任务id,最大长度为64字节
	Jobid string `json:"jobid"`
}

RespImportChainContactCorpgroup 批量导入上下游联系人响应 文档:https://developer.work.weixin.qq.com/document/path/95821

type RespInviteBatch added in v1.2.0

type RespInviteBatch struct {
	CommonResp
	// 非法成员列表
	InvalidUser []string `json:"invaliduser"`
	// 非法部门列表
	InvalidParty []int `json:"invalidparty"`
	// 非法标签列表
	InvalidTag []int `json:"invalidtag"`
}

RespInviteBatch 成邀请成员响应 文档:https://developer.work.weixin.qq.com/document/path/91127#成邀请成员

type RespListActivedAccountLicense

type RespListActivedAccountLicense struct {
	AccountList []struct {
		// ActiveTime 激活时间
		ActiveTime int `json:"active_time"`
		// ExpireTime 过期时间
		ExpireTime int `json:"expire_time"`
		// Type 激活码帐号类型:1:基础帐号,2:互通帐号
		Type int `json:"type"`
		// Userid 企业的成员userid。返回加密的userid
		Userid string `json:"userid"`
	} `json:"account_list"` // 已激活成员列表,已激活过期的也会返回
	CommonResp
	// HasMore 是否结束
	HasMore int `json:"has_more"`
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
}

RespListActivedAccountLicense 获取企业的帐号列表响应 文档:https://developer.work.weixin.qq.com/document/path/95544#获取企业的帐号列表

type RespListAgent added in v1.1.2

type RespListAgent struct {
	Agentlist []struct {
		Agentid       int    `json:"agentid"`
		Name          string `json:"name"`
		SquareLogoURL string `json:"square_logo_url"`
	} `json:"agentlist"`
	CommonResp
}

RespListAgent 获取access_token对应的应用列表响应 文档:https://developer.work.weixin.qq.com/document/path/90363#获取access_token对应的应用列表

type RespListAppShareInfoCorp added in v1.1.7

type RespListAppShareInfoCorp struct {
	CorpList []struct {
		// Agentid 下级/下游企业应用id
		Agentid int `json:"agentid"`
		// CorpName 下级/下游企业名称
		CorpName string `json:"corp_name"`
		// Corpid 下级/下游企业corpid
		Corpid string `json:"corpid"`
	} `json:"corp_list"` // 应用共享信息
	// Ending 1表示拉取完毕,0表示数据没有拉取完
	Ending int `json:"ending"`
	CommonResp
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录,如果已经没有更多的数据则返回空
	NextCursor string `json:"next_cursor"`
}

RespListAppShareInfoCorp 获取应用共享信息响应 文档:https://developer.work.weixin.qq.com/document/path/95324#获取应用共享信息

type RespListContactWayExternalcontact

type RespListContactWayExternalcontact struct {
	ContactWay []struct {
		ConfigID string `json:"config_id"`
	} `json:"contact_way"`
	CommonResp
	NextCursor string `json:"next_cursor"`
}

RespListContactWayExternalcontact 获取企业已配置的「联系我」列表响应 文档:https://developer.work.weixin.qq.com/document/path/92577#获取企业已配置的「联系我」列表

type RespListDepartment

type RespListDepartment struct {
	Department []struct {
		// DepartmentLeader 部门负责人的UserID;第三方仅通讯录应用可获取
		DepartmentLeader []string `json:"department_leader"`
		// ID 创建的部门id
		ID int `json:"id"`
		// Name 部门名称,代开发自建应用需要管理员授权才返回;此字段从2019年12月30日起,对新创建第三方应用不再返回,2020年6月30日起,对所有历史第三方应用不再返回name,返回的name字段使用id代替,后续第三方仅通讯录应用可获取,未返回名称的情况需要通过<a href="#17172" rel="nofollow">通讯录展示组件</a>来展示部门名称
		Name string `json:"name"`
		// NameEn 英文名称,此字段从2019年12月30日起,对新创建第三方应用不再返回,2020年6月30日起,对所有历史第三方应用不再返回该字段
		NameEn string `json:"name_en"`
		// Order 在父部门中的次序值。order值大的排序靠前。值范围是[0, 2^32)
		Order int `json:"order"`
		// Parentid 父部门id。根部门为1
		Parentid int `json:"parentid"`
	} `json:"department"` // 部门列表数据。
	CommonResp
}

RespListDepartment 获取部门列表响应 文档:https://developer.work.weixin.qq.com/document/path/90344#获取部门列表

type RespListExternalcontact

type RespListExternalcontact struct {
	CommonResp
	ExternalUserid []string `json:"external_userid"`
}

RespListExternalcontact 获取客户列表响应 文档:https://developer.work.weixin.qq.com/document/path/92264#获取客户列表

type RespListGroupchat

type RespListGroupchat struct {
	CommonResp
	GroupChatList []struct {
		ChatID string `json:"chat_id"`
		Status int    `json:"status"`
	} `json:"group_chat_list"`
	NextCursor string `json:"next_cursor"`
}

RespListGroupchat 获取客户群列表响应 文档:https://developer.work.weixin.qq.com/document/path/93414#获取客户群列表

type RespListIdUser added in v1.2.3

type RespListIdUser struct {
	CommonResp
	NextCursor string `json:"next_cursor"`
	DeptUser   []struct {
		OpenUserid string `json:"open_userid"`
		Department int    `json:"department"`
	} `json:"dept_user"`
}

RespListIdUser 获取成员ID列表响应 文档:https://developer.work.weixin.qq.com/document/path/96021#获取成员ID列表

type RespListLinkCustomerAcquisition added in v1.4.0

type RespListLinkCustomerAcquisition struct {
	CommonResp
	// LinkIDList link_id列表
	LinkIDList []string `json:"link_id_list"`
	// NextCursor 分页游标,在下次请求时填写以获取之后分页的记录
	NextCursor string `json:"next_cursor"`
}

RespListLinkCustomerAcquisition 获取获客链接列表响应 文档:https://developer.work.weixin.qq.com/document/path/97297#获取获客链接列表

type RespListMemberAuthUser added in v1.2.0

type RespListMemberAuthUser struct {
	CommonResp
	MemberAuthList []struct {
		// OpenUserid 当用户为某个企业内部成员时返回。全局唯一,对于同一个服务商不同的应用open_userid是相同的;同一用户,对于不同服务商open_userid是不同的
		OpenUserid string `json:"open_userid"`
	} `json:"member_auth_list"` // 成员授权列表
	// NextCursor 当前数据最后一个key值,如果下次调用带上该值则从该key值往后拉,用于实现分页拉取,返回空字符串代表已经是最后一页
	NextCursor string `json:"next_cursor"`
}

RespListMemberAuthUser 获取成员授权列表响应 文档:https://developer.work.weixin.qq.com/document/path/94513#获取成员授权列表

type RespListMomentStrategy added in v1.2.9

type RespListMomentStrategy struct {
	CommonResp
	// NextCursor 分页游标,用于查询下一个分页的数据,无更多数据时不返回
	NextCursor string `json:"next_cursor"`
	Strategy   []struct {
		// StrategyID 规则组id
		StrategyID int `json:"strategy_id"`
	} `json:"strategy"`
}

RespListMomentStrategy 获取规则组列表响应 文档:https://developer.work.weixin.qq.com/document/path/94890#获取规则组列表

type RespListOrderAccountLicense

type RespListOrderAccountLicense struct {
	AccountList []struct {
		// ActiveCode 帐号码,订单类型为购买帐号时,返回该字段
		ActiveCode string `json:"active_code"`
		// Type 帐号类型:1:基础帐号,2:互通帐号
		Type int `json:"type"`
		// Userid 企业续期成员userid,订单类型为续期帐号时,返回该字段。返回加密的userid
		Userid string `json:"userid"`
	} `json:"account_list"` // 帐号列表
	CommonResp
	// HasMore 是否结束
	HasMore int `json:"has_more"`
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录
	NextCursor string `json:"next_cursor"`
}

RespListOrderAccountLicense 获取订单中的帐号列表响应 文档:https://developer.work.weixin.qq.com/document/path/95649#获取订单中的帐号列表

type RespListOrderLicense

type RespListOrderLicense struct {
	CommonResp
	// HasMore 是否结束
	HasMore int `json:"has_more"`
	// NextCursor 分页游标,再下次请求时填写以获取之后分页的记录
	NextCursor string `json:"next_cursor"`
	OrderList  []struct {
		// OrderID 订单id
		OrderID string `json:"order_id"`
		// OrderType 订单类型,1:购买帐号,2:续期帐号,5:历史企业迁移订单
		OrderType int `json:"order_type"`
	} `json:"order_list"` // 订单列表
}

RespListOrderLicense 获取订单列表响应 文档:https://developer.work.weixin.qq.com/document/path/95647#获取订单列表

type RespListSelectedTicketUserUser added in v1.2.0

type RespListSelectedTicketUserUser struct {
	CommonResp
	// OpenUseridList 此次选人操作中,在应用可见范围内的open_userid列表
	OpenUseridList []string `json:"open_userid_list"`
	// OperatorOpenUserid 选人用户的open_userid
	OperatorOpenUserid string `json:"operator_open_userid"`
	// Total 用户选择的总人数
	Total int `json:"total"`
	// UnauthOpenUseridList 此次选人操作中,不在应用可见范围内的open_userid列表
	UnauthOpenUseridList []string `json:"unauth_open_userid_list"`
}

RespListSelectedTicketUserUser 成获取选人ticket对应的用户响应 文档:https://developer.work.weixin.qq.com/document/path/94894#成获取选人ticket对应的用户

type RespListTag added in v1.2.0

type RespListTag struct {
	CommonResp
	Taglist []struct {
		// Tagid 标签id
		Tagid int `json:"tagid"`
		// Tagname 标签名
		Tagname string `json:"tagname"`
	} `json:"taglist"` // 标签列表
}

RespListTag 获取标签列表响应 文档:https://developer.work.weixin.qq.com/document/path/90352#获取标签列表

type RespListUser

type RespListUser struct {
	CommonResp
	Userlist []struct {
		// Address 地址。代开发自建应用需要管理员授权才返回;第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		Address string `json:"address"`
		// Alias 别名;第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		Alias string `json:"alias"`
		// Avatar 头像url。 第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		Avatar string `json:"avatar"`
		// BizMail 企业邮箱,代开发自建应用不返回;第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		BizMail string `json:"biz_mail"`
		// Department 成员所属部门id列表,仅返回该应用有查看权限的部门id。对授权了“组织架构信息”的第三方应用,返回成员所属的全部部门id列表
		Department []int `json:"department"`
		// DirectLeader 直属上级UserID,返回在应用可见范围内的直属上级列表,最多有五个直属上级;第三方通讯录应用或者授权了“组织架构信息-应用可获取可见范围内成员组织架构信息-直属上级”权限的第三方应用可获取;对于非第三方创建的成员,第三方通讯录应用不可获取;上游企业不可获取下游企业成员该字段
		DirectLeader []string `json:"direct_leader"`
		// Email 邮箱,代开发自建应用需要管理员授权才返回;第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		Email       string `json:"email"`
		EnglishName string `json:"english_name"`
		Extattr     struct {
			Attrs []struct {
				// Name 成员名称;第三方不可获取,调用时返回userid以代替name;代开发自建应用需要管理员授权才返回;对于非第三方创建的成员,第三方通讯录应用也不可获取;未返回名称的情况需要通过<a href="#17172" rel="nofollow">通讯录展示组件</a>来展示名字
				// Name 成员名称;第三方不可获取,调用时返回userid以代替name;代开发自建应用需要管理员授权才返回;对于非第三方创建的成员,第三方通讯录应用也不可获取;未返回名称的情况需要通过<a href="#17172" rel="nofollow">通讯录展示组件</a>来展示名字
				Name string `json:"name"`
				Text struct {
					Value string `json:"value"`
				} `json:"text"`
				Type int `json:"type"`
				Web  struct {
					Title string `json:"title"`
					URL   string `json:"url"`
				} `json:"web"`
			} `json:"attrs"`
		} `json:"extattr"` // 扩展属性,代开发自建应用需要管理员授权才返回;第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		// ExternalPosition 对外职务,如果设置了该值,则以此作为对外展示的职务,否则以position来展示。代开发自建应用需要管理员授权才返回;第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		ExternalPosition string `json:"external_position"`
		ExternalProfile  struct {
			ExternalAttr []struct {
				Miniprogram struct {
					Appid    string `json:"appid"`
					Pagepath string `json:"pagepath"`
					Title    string `json:"title"`
				} `json:"miniprogram"`
				Name string `json:"name"`
				Text struct {
					Value string `json:"value"`
				} `json:"text"`
				Type int `json:"type"`
				Web  struct {
					Title string `json:"title"`
					URL   string `json:"url"`
				} `json:"web"`
			} `json:"external_attr"`
			ExternalCorpName string `json:"external_corp_name"`
			WechatChannels   struct {
				Nickname string `json:"nickname"`
				// Status 激活状态: 1=已激活,2=已禁用,4=未激活,5=退出企业。<br/>已激活代表已激活企业微信或已关注微信插件(原企业号)。未激活代表既未激活企业微信又未关注微信插件(原企业号)。
				Status int `json:"status"`
			} `json:"wechat_channels"`
		} `json:"external_profile"` // 成员对外属性,字段详情见<a href="#13450" rel="nofollow">对外属性</a>;代开发自建应用需要管理员授权才返回;第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		// Gender 性别。0表示未定义,1表示男性,2表示女性。第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段。注:不可获取指返回值为0
		Gender string `json:"gender"`
		// IsLeaderInDept 表示在所在的部门内是否为部门负责人。0-否;1-是。是一个列表,数量必须与department一致。第三方通讯录应用或者授权了“组织架构信息-应用可获取企业的部门组织架构信息-部门负责人”权限的第三方应用可获取;对于非第三方创建的成员,第三方通讯录应用不可获取;上游企业不可获取下游企业成员该字段
		IsLeaderInDept []int `json:"is_leader_in_dept"`
		// MainDepartment 主部门,仅当应用对主部门有查看权限时返回。
		MainDepartment int `json:"main_department"`
		// Mobile 手机号码,代开发自建应用需要管理员授权才返回;第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		Mobile string `json:"mobile"`
		// Name 成员名称;第三方不可获取,调用时返回userid以代替name;代开发自建应用需要管理员授权才返回;对于非第三方创建的成员,第三方通讯录应用也不可获取;未返回名称的情况需要通过<a href="#17172" rel="nofollow">通讯录展示组件</a>来展示名字
		Name string `json:"name"`
		// OpenUserid 全局唯一。对于同一个服务商,不同应用获取到企业内同一个成员的open_userid是相同的,最多64个字节。仅第三方应用可获取
		OpenUserid string `json:"open_userid"`
		// Order 部门内的排序值,默认为0。数量必须和department一致,数值越大排序越前面。值范围是[0, 2^32)
		Order []int `json:"order"`
		// Position 职务信息;代开发自建应用需要管理员授权才返回;第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		Position string `json:"position"`
		// QrCode 员工个人二维码,扫描可添加为外部联系人(注意返回的是一个url,可在浏览器上打开该url以展示二维码);第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		QrCode string `json:"qr_code"`
		// Status 激活状态: 1=已激活,2=已禁用,4=未激活,5=退出企业。<br/>已激活代表已激活企业微信或已关注微信插件(原企业号)。未激活代表既未激活企业微信又未关注微信插件(原企业号)。
		Status int `json:"status"`
		// Telephone 座机。代开发自建应用需要管理员授权才返回;第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		Telephone string `json:"telephone"`
		// ThumbAvatar 头像缩略图url。第三方仅通讯录应用可获取;对于非第三方创建的成员,第三方通讯录应用也不可获取;上游企业不可获取下游企业成员该字段
		ThumbAvatar string `json:"thumb_avatar"`
		// Userid 成员UserID。对应管理端的帐号
		Userid string `json:"userid"`
	} `json:"userlist"` // 成员列表
}

RespListUser 获取部门成员详情响应 文档:https://developer.work.weixin.qq.com/document/path/90337#获取部门成员详情

type RespMarkTagExternalcontact

type RespMarkTagExternalcontact struct {
	CommonResp
}

RespMarkTagExternalcontact 编辑客户企业标签响应 文档:https://developer.work.weixin.qq.com/document/path/92697#编辑客户企业标签

type RespNewOrderJobResultLicense added in v1.4.0

type RespNewOrderJobResultLicense struct {
	CommonResp
	FailList []struct {
		// Corpid 下单失败的企业 ID
		Corpid string `json:"corpid"`
		CommonResp
	} `json:"fail_list"` // 下单失败的企业及原因。详见<strong>FailInfo</strong>
	// OrderID 订单号。创建完成后返回
	OrderID string `json:"order_id"`
	// Status 订单创建结果。<br/> 1:创建完成 <br/>2:创建中,稍后再试<br/>3:创建失败
	Status int `json:"status"`
}

RespNewOrderJobResultLicense 获取多企业新购订单提交结果响应 文档:https://developer.work.weixin.qq.com/document/path/98892#获取多企业新购订单提交结果

type RespOnjobTransferGroupchat added in v1.0.13

type RespOnjobTransferGroupchat struct {
	// Errcode 没能成功继承的群,错误码
	CommonResp
	Errmsg         string `json:"errmsg"`
	FailedChatList []struct {
		// ChatID 没能成功继承的群ID
		ChatID string `json:"chat_id"`
		// Errcode 没能成功继承的群,错误码
		CommonResp
		Errmsg string `json:"errmsg"`
	} `json:"failed_chat_list"` // 没能成功继承的群
}

RespOnjobTransferGroupchat 分配在职成员的客户群响应 文档:https://developer.work.weixin.qq.com/document/path/95703#分配在职成员的客户群

type RespOpenOrderPaytool added in v1.3.1

type RespOpenOrderPaytool struct {
	CommonResp
	OrderId     string `json:"order_id"`
	OrderUrl    string `json:"order_url"`
	OriginPrice int    `json:"origin_price"`
	PaidPrice   int    `json:"paid_price"`
}

type RespOpengidToChatidExternalcontact added in v1.2.0

type RespOpengidToChatidExternalcontact struct {
	CommonResp
	ChatId string `json:"chat_id"`
}

RespOpengidToChatidExternalcontact 客户群opengid转换响应 文档:https://developer.work.weixin.qq.com/document/path/94828#客户群opengid转换

type RespProlongTryService added in v1.2.9

type RespProlongTryService struct {
	CommonResp
	// TryEndTime 延长后的试用到期时间(UNIX时间戳)
	TryEndTime int `json:"try_end_time"`
}

RespProlongTryService 延长试用期响应 文档:https://developer.work.weixin.qq.com/document/path/91913#延长试用期

type RespRecallMessage added in v1.2.9

type RespRecallMessage struct {
	CommonResp
}

RespRecallMessage 撤回应用消息响应 文档:https://developer.work.weixin.qq.com/document/path/94947#撤回应用消息

type RespRemarkExternalcontact

type RespRemarkExternalcontact struct {
	CommonResp
}

RespRemarkExternalcontact 修改客户备注信息响应 文档:https://developer.work.weixin.qq.com/document/path/92694#修改客户备注信息

type RespRemindGroupmsgSendExternalcontact added in v1.2.9

type RespRemindGroupmsgSendExternalcontact struct {
	CommonResp
}

RespRemindGroupmsgSendExternalcontact 提醒成员群发响应 文档:https://developer.work.weixin.qq.com/document/path/97610#提醒成员群发

type RespRemoveCorpCorp added in v1.3.0

type RespRemoveCorpCorp struct {
	CommonResp
}

RespRemoveCorpCorp 移除企业响应 文档:https://developer.work.weixin.qq.com/document/path/95822#移除企业

type RespSearchContact added in v1.1.4

type RespSearchContact struct {
	CommonResp
	// IsLast 根据该字段判断是否是最后一页,若为false,开发者需要使用offset+limit继续调用
	IsLast      bool `json:"is_last"`
	QueryResult struct {
		Party struct {
			// DepartmentID 返回的部门id
			DepartmentID []int `json:"department_id"`
		} `json:"party"` // 返回的部门信息 (通过部门名称,拼音匹配)
		User struct {
			// OpenUserid 查询到的用户open_userid
			OpenUserid []string `json:"open_userid"`
			// Userid 查询到的用户userid
			Userid []string `json:"userid"`
		} `json:"user"` // 返回的用户信息(通过用户名称,拼音匹配)
	} `json:"query_result"` // 查询结果
}

RespSearchContact 通讯录单个搜索响应 文档:https://developer.work.weixin.qq.com/document/path/91844#通讯录单个搜索

type RespSendWelcomeMsgExternalcontact added in v1.2.0

type RespSendWelcomeMsgExternalcontact struct {
	CommonResp
}

RespSendWelcomeMsgExternalcontact 发送新客户欢迎语响应 文档:https://developer.work.weixin.qq.com/document/path/92599#发送新客户欢迎语

type RespSentMessageCard

type RespSentMessageCard struct {
	CommonResp
	InvalidUser  string `json:"invaliduser"`   // 不合法的userid
	InvalidParty string `json:"invalidparty"`  // 不合法的partyid
	InvalidTag   string `json:"invalidtag"`    // 不合法的标签id
	MsgId        string `json:"msgid"`         // 消息id,用于撤回应用消息
	ResponseCode string `json:"response_code"` // 仅消息类型为“按钮交互型”,“投票选择型”和“多项选择型”的模板卡片消息返回,应用可使用response_code调用更新模版卡片消息接口,24小时内有效,且只能使用一次
}

RespSentMessageCard 接口定义响应 文档:https://developer.work.weixin.qq.com/document/path/90372#接口定义

type RespSetAutoActiveStatusLicense added in v1.0.13

type RespSetAutoActiveStatusLicense struct {
	CommonResp
}

RespSetAutoActiveStatusLicense 设置企业的许可自动激活状态响应 文档:https://developer.work.weixin.qq.com/document/path/95873#设置企业的许可自动激活状态

type RespSetSessionInfoService added in v1.2.0

type RespSetSessionInfoService struct {
	CommonResp
}

RespSetSessionInfoService 设置授权配置响应 文档:https://developer.work.weixin.qq.com/document/path/90602#设置授权配置

type RespSetoneuserquotaVacation added in v1.1.3

type RespSetoneuserquotaVacation struct {
	CommonResp
}

RespSetoneuserquotaVacation 修改成员假期余额响应 文档:https://developer.work.weixin.qq.com/document/path/94213#修改成员假期余额

type RespSimplelistDepartment

type RespSimplelistDepartment struct {
	DepartmentID []struct {
		// ID 创建的部门id
		ID int `json:"id"`
		// Order 在父部门中的次序值。order值大的排序靠前。值范围是[0, 2^32)。
		Order int `json:"order"`
		// Parentid 父部门id。根部门为1。
		Parentid int `json:"parentid"`
	} `json:"department_id"` // 部门列表数据。
	CommonResp
}

RespSimplelistDepartment 获取子部门ID列表响应 文档:https://developer.work.weixin.qq.com/document/path/95406#获取子部门ID列表

type RespSimplelistUser

type RespSimplelistUser struct {
	CommonResp
	Userlist []struct {
		// Department 成员所属部门列表。列表项为部门ID,32位整型
		Department []int `json:"department"`
		// Name 成员名称,代开发自建应用需要管理员授权才返回;此字段从2019年12月30日起,对新创建第三方应用不再返回真实name,使用userid代替name,2020年6月30日起,对所有历史第三方应用不再返回真实name,使用userid代替name,后续第三方仅通讯录应用可获取,未返回名称的情况需要通过<a href="#17172" rel="nofollow">通讯录展示组件</a>来展示名字
		Name string `json:"name"`
		// OpenUserid 全局唯一。对于同一个服务商,不同应用获取到企业内同一个成员的open_userid是相同的,最多64个字节。仅第三方应用可获取
		OpenUserid string `json:"open_userid"`
		// Userid 成员UserID。对应管理端的帐号
		Userid string `json:"userid"`
	} `json:"userlist"` // 成员列表
}

RespSimplelistUser 获取部门成员响应 文档:https://developer.work.weixin.qq.com/document/path/90336#获取部门成员

type RespSortContact added in v1.2.9

type RespSortContact struct {
	CommonResp
	// Useridlist 排序后的userid列表
	Useridlist []string `json:"useridlist"`
}

RespSortContact 通讯录userid排序响应 文档:https://developer.work.weixin.qq.com/document/path/92093#通讯录userid排序

type RespStatisticGroupchat added in v1.2.3

type RespStatisticGroupchat struct {
	CommonResp
	Items []struct {
		Data struct {
			// ChatHasMsg 截至当天有发过消息的客户群数量
			ChatHasMsg int `json:"chat_has_msg"`
			// ChatTotal 截至当天客户群总数量
			ChatTotal int `json:"chat_total"`
			// MemberHasMsg 截至当天有发过消息的群成员数
			MemberHasMsg int `json:"member_has_msg"`
			// MemberTotal 截至当天客户群总人数
			MemberTotal int `json:"member_total"`
			// MigrateTraineeChatCnt 截至当天新增迁移群数(仅教培行业返回)
			MigrateTraineeChatCnt int `json:"migrate_trainee_chat_cnt"`
			// MsgTotal 截至当天客户群消息总数
			MsgTotal int `json:"msg_total"`
			// NewChatCnt 新增客户群数量
			NewChatCnt int `json:"new_chat_cnt"`
			// NewMemberCnt 客户群新增群人数。
			NewMemberCnt int `json:"new_member_cnt"`
		} `json:"data"` // 详情
		// Owner 群主ID
		Owner string `json:"owner"`
	} `json:"items"` // 记录列表。表示某个群主所拥有的客户群的统计数据
	// NextOffset 当前分页的下一个offset。当next_offset和total相等时,说明已经取完所有
	NextOffset int `json:"next_offset"`
	// Total 命中过滤条件的记录总个数
	Total int `json:"total"`
}

RespStatisticGroupchat 按群主聚合的方式响应 文档:https://developer.work.weixin.qq.com/document/path/93476#按群主聚合的方式

type RespSubmitNewOrderJobLicense added in v1.4.0

type RespSubmitNewOrderJobLicense struct {
	CommonResp
	// Jobid 多企业新购任务id
	Jobid string `json:"jobid"`
}

RespSubmitNewOrderJobLicense 提交多企业新购订单响应 文档:https://developer.work.weixin.qq.com/document/path/98892#提交多企业新购订单

type RespSubmitOrderJobLicense

type RespSubmitOrderJobLicense struct {
	CommonResp
	// OrderID 订单号
	OrderID string `json:"order_id"`
}

RespSubmitOrderJobLicense 提交续期订单响应 文档:https://developer.work.weixin.qq.com/document/path/95646#提交续期订单

type RespTransferCustomerExternalcontact

type RespTransferCustomerExternalcontact struct {
	Customer []struct {
		// Errcode 对此客户进行分配的结果, 具体可参考<a href="#10649" rel="nofollow">全局错误码</a>, <strong>0表示成功发起接替,待24小时后自动接替,并不代表最终接替成功</strong>
		Errcode int `json:"errcode"`
		// ExternalUserid 客户的<code>external_userid</code>
		ExternalUserid string `json:"external_userid"`
	} `json:"customer"`
	// Errcode 对此客户进行分配的结果, 具体可参考<a href="#10649" rel="nofollow">全局错误码</a>, <strong>0表示成功发起接替,待24小时后自动接替,并不代表最终接替成功</strong>
	CommonResp
}

RespTransferCustomerExternalcontact 分配在职成员的客户响应 文档:https://developer.work.weixin.qq.com/document/path/94096#分配在职成员的客户

type RespTransferCustomerResigned

type RespTransferCustomerResigned struct {
	Customer []struct {
		// Errcode 对此客户进行分配的结果, 具体可参考<a href="#10649" rel="nofollow">全局错误码</a>, <strong>0表示开始分配流程,待24小时后自动接替,并不代表最终分配成功</strong>
		Errcode int `json:"errcode"`
		// ExternalUserid 客户的<code>external_userid</code>
		ExternalUserid string `json:"external_userid"`
	} `json:"customer"`
	// Errcode 对此客户进行分配的结果, 具体可参考<a href="#10649" rel="nofollow">全局错误码</a>, <strong>0表示开始分配流程,待24小时后自动接替,并不代表最终分配成功</strong>
	CommonResp
}

RespTransferCustomerResigned 分配离职成员的客户响应 文档:https://developer.work.weixin.qq.com/document/path/94100#分配离职成员的客户

type RespTransferGroupchat

type RespTransferGroupchat struct {
	// Errcode 没能成功继承的群,错误码
	CommonResp
	Errmsg         string `json:"errmsg"`
	FailedChatList []struct {
		// ChatID 没能成功继承的群ID
		ChatID string `json:"chat_id"`
		// Errcode 没能成功继承的群,错误码
		CommonResp
		Errmsg string `json:"errmsg"`
	} `json:"failed_chat_list"` // 没能成功继承的群
}

RespTransferGroupchat 分配离职成员的客户群响应 文档:https://developer.work.weixin.qq.com/document/path/93242#分配离职成员的客户群

type RespTransferResultExternalcontact

type RespTransferResultExternalcontact struct {
	Customer []struct {
		// ExternalUserid 转接客户的<code>外部联系人userid</code>
		ExternalUserid string `json:"external_userid"`
		// Status 接替状态, 1-接替完毕 2-等待接替 3-客户拒绝 4-接替成员客户达到上限 5-无接替记录
		Status int `json:"status"`
		// TakeoverTime 接替客户的时间,如果是等待接替状态,则为未来的自动接替时间
		TakeoverTime int `json:"takeover_time"`
	} `json:"customer"`
	CommonResp
	// NextCursor 下个分页的起始cursor
	NextCursor string `json:"next_cursor"`
}

RespTransferResultExternalcontact 查询客户接替状态响应 文档:https://developer.work.weixin.qq.com/document/path/94097#查询客户接替状态

type RespTransferResultResigned

type RespTransferResultResigned struct {
	Customer []struct {
		// ExternalUserid 转接客户的<code>外部联系人userid</code>
		ExternalUserid string `json:"external_userid"`
		// Status 接替状态, 1-接替完毕 2-等待接替 3-客户拒绝 4-接替成员客户达到上限
		Status int `json:"status"`
		// TakeoverTime 接替客户的时间,如果是等待接替状态,则为未来的自动接替时间
		TakeoverTime int `json:"takeover_time"`
	} `json:"customer"`
	CommonResp
	// NextCursor 下个分页的起始cursor
	NextCursor string `json:"next_cursor"`
}

RespTransferResultResigned 查询客户接替状态响应 文档:https://developer.work.weixin.qq.com/document/path/94101#查询客户接替状态

type RespUnionidToExternalUserid3RdExternalcontact

type RespUnionidToExternalUserid3RdExternalcontact struct {
	CommonResp
	ExternalUseridInfo []struct {
		Corpid         string `json:"corpid"`
		ExternalUserid string `json:"external_userid"`
	} `json:"external_userid_info"`
}

RespUnionidToExternalUserid3RdExternalcontact 4.2 unionid查询external_userid响应 文档:https://developer.work.weixin.qq.com/document/path/95327#4.2 unionid查询external_userid

type RespUpdateContactWayExternalcontact

type RespUpdateContactWayExternalcontact struct {
	CommonResp
}

RespUpdateContactWayExternalcontact 更新企业已配置的「联系我」方式响应 文档:https://developer.work.weixin.qq.com/document/path/92577#更新企业已配置的「联系我」方式

type RespUpdateLinkCustomerAcquisition added in v1.4.0

type RespUpdateLinkCustomerAcquisition struct {
	CommonResp
}

RespUpdateLinkCustomerAcquisition 编辑获客链接响应 文档:https://developer.work.weixin.qq.com/document/path/97297#编辑获客链接

type RespUpdateTag added in v1.2.0

type RespUpdateTag struct {
	CommonResp
}

RespUpdateTag 更新标签名字响应 文档:https://developer.work.weixin.qq.com/document/path/90347#更新标签名字

type RespUpdateTemplateCardMessage

type RespUpdateTemplateCardMessage struct {
	CommonResp
}

RespUpdateTemplateCardMessage 接口定义响应 文档:https://developer.work.weixin.qq.com/document/path/94945#更新按钮为不可点击状态

type RespUploadByUrlMedia added in v1.2.9

type RespUploadByUrlMedia struct {
	CommonResp
	// 任务id。可通过此jobid查询结果
	Jobid string `json:"jobid"`
}

RespUploadByUrlMedia 生成异步上传任务响应 文档:https://developer.work.weixin.qq.com/document/path/96219#生成异步上传任务

type RespUploadMedia

type RespUploadMedia struct {
	CommonResp
	Type      string `json:"type"`
	MediaId   string `json:"media_id"`
	CreatedAt string `json:"created_at"`
}

RespUploadMedia 上传临时素材响应 文档:https://developer.work.weixin.qq.com/document/path/90389#上传临时素材

type RespUserBehaviorData

type RespUserBehaviorData struct {
	BehaviorData []struct {
		// AvgReplyTime 平均首次回复时长,单位为分钟,即客户主动发起聊天后,成员在一个自然日内首次回复的时长间隔为首次回复时长,所有聊天的首次回复总时长/已回复的聊天总数即为平均首次回复时长,不包括群聊,<strong>仅在确有聊天时返回</strong>。
		AvgReplyTime uint64 `json:"avg_reply_time"`
		// ChatCnt 聊天总数, 成员有主动发送过消息的单聊总数。
		ChatCnt uint64 `json:"chat_cnt"`
		// MessageCnt 发送消息数,成员在单聊中发送的消息总数。
		MessageCnt uint64 `json:"message_cnt"`
		// NegativeFeedbackCnt 删除/拉黑成员的客户数,即将成员删除或加入黑名单的客户数。
		NegativeFeedbackCnt uint64 `json:"negative_feedback_cnt"`
		// NewApplyCnt 发起申请数,成员通过「搜索手机号」、「扫一扫」、「从微信好友中添加」、「从群聊中添加」、「添加共享、分配给我的客户」、「添加单向、双向删除好友关系的好友」、「从新的联系人推荐中添加」等渠道主动向客户发起的好友申请数量。
		NewApplyCnt uint64 `json:"new_apply_cnt"`
		// NewContactCnt 新增客户数,成员新添加的客户数量。
		NewContactCnt uint64 `json:"new_contact_cnt"`
		// ReplyPercentage 已回复聊天占比,浮点型,客户主动发起聊天后,成员在一个自然日内有回复过消息的聊天数/客户主动发起的聊天数比例,不包括群聊,<strong>仅在确有聊天时返回。</strong>
		ReplyPercentage float64 `json:"reply_percentage"`
		// StatTime 数据日期,为当日0点的时间戳
		StatTime int64 `json:"stat_time"`
	} `json:"behavior_data"`
	CommonResp
}

RespUserBehaviorData 获取「联系客户统计」数据响应 文档:https://developer.work.weixin.qq.com/document/path/92275#获取「联系客户统计」数据

type RespUseridToOpenuseridBatch

type RespUseridToOpenuseridBatch struct {
	CommonResp
	OpenUseridList []struct {
		Userid     string `json:"userid"`
		OpenUserid string `json:"open_userid"`
	} `json:"open_userid_list"`
	InvalidUseridList []string `json:"invalid_userid_list"`
}

RespUseridToOpenuseridBatch 2.4 userid的转换响应 文档:https://developer.work.weixin.qq.com/document/path/95327#2.4 userid的转换

type Selector added in v1.1.3

type Selector struct {
	Type    string `json:"type"`
	Options []struct {
		Key   string `json:"key"`
		Value []struct {
			Text string `json:"text"`
			Lang string `json:"lang"`
		} `json:"value"`
	} `json:"options"`
}

type SelectorValue added in v1.1.3

type SelectorValue struct {
	Type    string `json:"type"` // 选择方式:single-单选;multi-多选
	Options []struct {
		Key string `json:"key"` // 选项key,可通过“获取审批模板详情”接口获得
	} `json:"options"`
}

type SentMiniNoticeBody

type SentMiniNoticeBody struct {
	Appid             string                      `json:"appid"`               // 小程序appid,必须是与当前应用关联的小程序
	Page              string                      `json:"page"`                // 点击消息卡片后的小程序页面,仅限本小程序内的页面。该字段不填则消息点击后不跳转。
	Title             string                      `json:"title"`               // 消息标题,长度限制4-12个汉字(支持id转译)
	Description       string                      `json:"description"`         // 消息描述,长度限制4-12个汉字(支持id转译)
	EmphasisFirstItem bool                        `json:"emphasis_first_item"` // 是否放大第一个content_item
	ContentItem       []SentMiniNoticeContentItem `json:"content_item"`        // 消息内容键值对,最多允许10个item
}

type SentMiniNoticeContentItem

type SentMiniNoticeContentItem struct {
	Key   string `json:"key"`   // 长度10个汉字以内
	Value string `json:"value"` // 长度30个汉字以内(支持id转译)
}

type SentTemplateCardBody

type SentTemplateCardBody struct {
	CardType              string                              `json:"card_type"`                         // 模板卡片类型,文本通知型卡片填写 "text_notice"
	Source                *TemplateCardSource                 `json:"source,omitempty"`                  // 卡片来源样式信息,不需要来源样式可不填写
	ActionMenu            *TemplateCardActionMenu             `json:"action_menu,omitempty"`             // 卡片右上角更多操作按钮
	TaskId                string                              `json:"task_id,omitempty"`                 // 任务id,同一个应用任务id不能重复,只能由数字、字母和“_-@”组成,最长128字节,填了action_menu字段的话本字段必填
	MainTitle             *TemplateCardMainTitle              `json:"main_title,omitempty"`              // 一级标题
	QuoteArea             *TemplateCardQuoteArea              `json:"quote_area,omitempty"`              // 引用文献样式
	HorizontalContentList []TemplateCardHorizontalContentItem `json:"horizontal_content_list,omitempty"` // 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6
	JumpList              []TemplateCardJumpListItem          `json:"jump_list,omitempty"`               // 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过3
	CardAction            *TemplateCardCardAction             `json:"card_action,omitempty"`             // 整体卡片的点击跳转事件

	EmphasisContent *TemplateCardEmphasisContent `json:"emphasis_content,omitempty"` // 关键数据样式
	SubTitleText    string                       `json:"sub_title_text,omitempty"`   // 二级普通文本,建议不超过160个字,(支持id转译)

	ImageTextArea       *TemplateCardImageTextArea        `json:"image_text_area,omitempty"`       // 左图右文样式,news_notice类型的卡片,card_image和image_text_area两者必填一个字段,不可都不填
	CardImage           *TemplateCardCardImage            `json:"card_image,omitempty"`            // 图片样式,news_notice类型的卡片,card_image和image_text_area两者必填一个字段,不可都不填
	VerticalContentList []TemplateCardVerticalContentItem `json:"vertical_content_list,omitempty"` // 卡片二级垂直内容,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过4

	ButtonSelection *TemplateCardButtonSelection `json:"button_selection,omitempty"` // 下拉式的选择器
	ButtonList      []TemplateCardButtonListItem `json:"button_list,omitempty"`      // 按钮列表,列表长度不超过6

	Checkbox     *TemplateCardCheckbox     `json:"checkbox,omitempty"`      // 选择题样式
	SubmitButton *TemplateCardSubmitButton `json:"submit_button,omitempty"` // 提交按钮样式

	SelectList []TemplateCardSelectListItem `json:"select_list,omitempty"` // 下拉式的选择器列表,multiple_interaction类型的卡片该字段不可为空,一个消息最多支持 3 个选择器
}

type SentTemplateMsg

type SentTemplateMsg struct {
	TemplateId  string                       `json:"template_id"`  // 模板ID。第三方管理端创建模板后获得。对于正式授权的应用,需要审批通过后才可使用。最长64字节
	Url         string                       `json:"url"`          // 点击模板消息后的跳转链接。最长2048字节。注意,url必须带协议头 "http://" 或 "https://" 。url和miniprogram 至少要填一个,都填时优先miniprogram。
	Miniprogram SentTemplateMsgMiniprogram   `json:"miniprogram"`  // 点击后需要跳转的小程序,miniprogram和url至少要填一个,都填时优先miniprogram。
	ContentItem []SentTemplateMsgContentItem `json:"content_item"` // 消息内容键值对,允许个数范围:1~5,实际由申请的模板样式决定
}

type SentTemplateMsgContentItem

type SentTemplateMsgContentItem struct {
	Key   string `json:"key"`   // 1~20个utf8字符。注意,必须与template_id对应模板匹配
	Value string `json:"value"` // 1~40个utf8字符
}

type SentTemplateMsgMiniprogram

type SentTemplateMsgMiniprogram struct {
	Appid    string `json:"appid"`    // 在miniprogram节点中该字段必填,小程序appid,必须是与当前应用关联的小程序
	Pagepath string `json:"pagepath"` // 在miniprogram节点中该字段必填,表示点击消息卡片后的小程序页面,仅限本小程序内的页面。
}

type SummaryInfo added in v1.1.3

type SummaryInfo struct {
	Text string `json:"text"` // 摘要行显示文字,用于记录列表和消息通知的显示,不要超过20个字符
	Lang string `json:"lang"` // 摘要行显示语言,中文:zh_CN(注意不是zh-CN),英文:en。
}

type SummaryList added in v1.1.3

type SummaryList struct {
	SummaryInfo []SummaryInfo `json:"summary_info"`
}

type Table added in v1.1.3

type Table struct {
	Children []struct {
		Property struct {
			Control string `json:"control"`
			Id      string `json:"id"`
			Title   []struct {
				Text string `json:"text"`
				Lang string `json:"lang"`
			} `json:"title"`
			Placeholder []struct {
				Text string `json:"text"`
				Lang string `json:"lang"`
			} `json:"placeholder"`
			Require int `json:"require"`
			UnPrint int `json:"un_print"`
		} `json:"property"`
	} `json:"children"`
	StatField []interface{} `json:"stat_field"`
}

type TableValue added in v1.1.3

type TableValue struct {
	List []TableValueList `json:"list"` // 子明细列表,在此填写子明细的所有子控件的值,子控件的数据结构同一般控件
}

type TableValueList added in v1.1.3

type TableValueList struct {
	Control string `json:"control"`
	Id      string `json:"id"`
	Value   struct {
		Text      string `json:"text"`
		NewNumber string `json:"new_number"`
		NewMoney  string `json:"new_money"`
	} `json:"value"`
}

type TemplateCardActionItem

type TemplateCardActionItem struct {
	Text string `json:"text"` // 操作的描述文案
	Key  string `json:"key"`  // 操作key值,用户点击后,会产生回调事件将本参数作为EventKey返回,回调事件会带上该key值,最长支持1024字节,不可重复
}

type TemplateCardActionMenu

type TemplateCardActionMenu struct {
	Desc       string                   `json:"desc,omitempty"`        // 更多操作界面的描述
	ActionList []TemplateCardActionItem `json:"action_list,omitempty"` // 操作列表,列表长度取值范围为 [1, 3]
}

type TemplateCardButtonListItem

type TemplateCardButtonListItem struct {
	Type  int    `json:"type"`          // 按钮点击事件类型,0 或不填代表回调点击事件,1 代表跳转url
	Text  string `json:"text"`          // 按钮文案,建议不超过10个字
	Style int    `json:"style"`         // 按钮样式,目前可填1~4,不填或错填默认1
	Key   string `json:"key,omitempty"` // 按钮key值,用户点击后,会产生回调事件将本参数作为EventKey返回,回调事件会带上该key值,最长支持1024字节,不可重复,button_list.type是0时必填
	Url   string `json:"url,omitempty"` // 跳转事件的url,button_list.type是1时必填
}

type TemplateCardButtonSelection

type TemplateCardButtonSelection struct {
	QuestionKey string                       `json:"question_key"`          // 下拉式的选择器的key,用户提交选项后,会产生回调事件,回调事件会带上该key值表示该题,最长支持1024字节
	Title       string                       `json:"title,omitempty"`       // 下拉式的选择器左边的标题
	OptionList  []TemplateCardOptionListItem `json:"option_list"`           // 选项列表,下拉选项不超过 10 个,最少1个
	SelectedId  string                       `json:"selected_id,omitempty"` // 默认选定的id,不填或错填默认第一个
}

type TemplateCardCardAction

type TemplateCardCardAction struct {
	Type     int    `json:"type,omitempty"`     // 跳转事件类型,1 代表跳转url,2 代表打开小程序。text_notice卡片模版中该字段取值范围为[1,2]
	Url      string `json:"url,omitempty"`      // 跳转事件的url,card_action.type是1时必填
	Appid    string `json:"appid,omitempty"`    // 跳转事件的小程序的appid,必须是与当前应用关联的小程序,card_action.type是2时必填
	Pagepath string `json:"pagepath,omitempty"` // 跳转事件的小程序的pagepath,card_action.type是2时选填
}

type TemplateCardCardImage

type TemplateCardCardImage struct {
	Url         string  `json:"url"`                    // 图片的url
	AspectRatio float64 `json:"aspect_ratio,omitempty"` // 图片的宽高比,宽高比要小于2.25,大于1.3,不填该参数默认1.3
}

type TemplateCardCheckbox

type TemplateCardCheckbox struct {
	QuestionKey string                           `json:"question_key"` // 选择题key值,用户提交选项后,会产生回调事件,回调事件会带上该key值表示该题,最长支持1024字节
	OptionList  []TemplateCardCheckboxOptionItem `json:"option_list"`  // 选项list,选项个数不超过 20 个,最少1个
	Mode        int                              `json:"mode"`         // 选择题模式,单选:0,多选:1,不填默认0
}

type TemplateCardCheckboxOptionItem

type TemplateCardCheckboxOptionItem struct {
	Id        string `json:"id"`         // 选项id,用户提交选项后,会产生回调事件,回调事件会带上该id值表示该选项,最长支持128字节,不可重复
	Text      string `json:"text"`       // 选项文案描述,建议不超过17个字
	IsChecked bool   `json:"is_checked"` // 该选项是否要默认选中
}

type TemplateCardEmphasisContent

type TemplateCardEmphasisContent struct {
	Title string `json:"title,omitempty"` // 关键数据样式的数据内容,建议不超过14个字
	Desc  string `json:"desc,omitempty"`  // 关键数据样式的数据描述内容,建议不超过22个字
}

type TemplateCardHorizontalContentItem

type TemplateCardHorizontalContentItem struct {
	Type    int    `json:"type"`               // 链接类型,0或不填代表不是链接,1 代表跳转url,2 代表下载附件,3 代表点击跳转成员详情
	Keyname string `json:"keyname"`            // 二级标题,建议不超过5个字
	Value   string `json:"value,omitempty"`    // 二级文本,如果horizontal_content_list.type是2,该字段代表文件名称(要包含文件类型),建议不超过30个字,(支持id转译)
	Url     string `json:"url,omitempty"`      // 链接跳转的url,horizontal_content_list.type是1时必填
	MediaId string `json:"media_id,omitempty"` // 附件的media_id,horizontal_content_list.type是2时必填
	Userid  string `json:"userid,omitempty"`   // 成员详情的userid,horizontal_content_list.type是3时必填
}

type TemplateCardImageTextArea

type TemplateCardImageTextArea struct {
	Type      int    `json:"type"`                 // 左图右文样式区域点击事件,0或不填代表没有点击事件,1 代表跳转url,2 代表跳转小程序
	Url       string `json:"url,omitempty"`        // 点击跳转的url,image_text_area.type是1时必填
	Title     string `json:"title,omitempty"`      // 点击跳转的小程序的appid,必须是与当前应用关联的小程序,image_text_area.type是2时必填
	Desc      string `json:"desc,omitempty"`       // 左图右文样式的描述
	ImagesUrl string `json:"images_url,omitempty"` // 左图右文样式的图片url
}

type TemplateCardJumpListItem

type TemplateCardJumpListItem struct {
	Type     int    `json:"type"`               // 跳转链接类型,0或不填代表不是链接,1 代表跳转url,2 代表跳转小程序
	Title    string `json:"title"`              // 跳转链接样式的文案内容,建议不超过18个字
	Url      string `json:"url,omitempty"`      // 跳转链接的url,jump_list.type是1时必填
	Appid    string `json:"appid,omitempty"`    // 跳转链接的小程序的appid,必须是与当前应用关联的小程序,jump_list.type是2时必填
	Pagepath string `json:"pagepath,omitempty"` // 跳转链接的小程序的pagepath,jump_list.type是2时选填
}

type TemplateCardMainTitle

type TemplateCardMainTitle struct {
	Title string `json:"title,omitempty"` // 一级标题,建议不超过36个字,文本通知型卡片本字段非必填,但不可本字段和sub_title_text都不填,(支持id转译)
	Desc  string `json:"desc,omitempty"`  // 标题辅助信息,建议不超过44个字,(支持id转译)
}

type TemplateCardOptionListItem

type TemplateCardOptionListItem struct {
	Id   string `json:"id"`   // 下拉式的选择器选项的id,用户提交后,会产生回调事件,回调事件会带上该id值表示该选项,最长支持128字节,不可重复
	Text string `json:"text"` // 下拉式的选择器选项的文案,建议不超过16个字
}

type TemplateCardQuoteArea

type TemplateCardQuoteArea struct {
	Type      int    `json:"type"`                 // 引用文献样式区域点击事件,0或不填代表没有点击事件,1 代表跳转url,2 代表跳转小程序
	Url       string `json:"url,omitempty"`        // 点击跳转的url,quote_area.type是1时必填
	Appid     string `json:"appid,omitempty"`      // 点击跳转的小程序的appid,必须是与当前应用关联的小程序,quote_area.type是2时必填
	Pagepath  string `json:"pagepath,omitempty"`   // 点击跳转的小程序的pagepath,quote_area.type是2时选填
	Title     string `json:"title,omitempty"`      // 引用文献样式的标题
	QuoteText string `json:"quote_text,omitempty"` // 引用文献样式的引用文案
}

type TemplateCardSelectListItem

type TemplateCardSelectListItem struct {
	QuestionKey string                             `json:"question_key"`          // 下拉式的选择器题目的key,用户提交选项后,会产生回调事件,回调事件会带上该key值表示该题,最长支持1024字节,不可重复
	Title       string                             `json:"title,omitempty"`       // 下拉式的选择器上面的title
	SelectedId  string                             `json:"selected_id,omitempty"` // 默认选定的id,不填或错填默认第一个
	OptionList  []TemplateCardSelectListOptionItem `json:"option_list"`           // 选项列表,下拉选项不超过 10 个,最少1个
}

type TemplateCardSelectListOptionItem

type TemplateCardSelectListOptionItem struct {
	Id   string `json:"id"`   // 下拉式的选择器选项的id,用户提交选项后,会产生回调事件,回调事件会带上该id值表示该选项,最长支持128字节,不可重复
	Text string `json:"text"` // 下拉式的选择器选项的文案,建议不超过16个字
}

type TemplateCardSource

type TemplateCardSource struct {
	IconUrl   string `json:"icon_url,omitempty"` // 来源图片的url,来源图片的尺寸建议为72*72
	Desc      string `json:"desc,omitempty"`     // 来源图片的描述,建议不超过20个字,(支持id转译)
	DescColor int    `json:"desc_color"`         // 来源文字的颜色,目前支持:0(默认) 灰色,1 黑色,2 红色,3 绿色
}

type TemplateCardSubmitButton

type TemplateCardSubmitButton struct {
	Text string `json:"text"` // 按钮文案,建议不超过10个字,不填默认为提交
	Key  string `json:"key"`  // 提交按钮的key,会产生回调事件将本参数作为EventKey返回,最长支持1024字节
}

type TemplateCardVerticalContentItem

type TemplateCardVerticalContentItem struct {
	Title string `json:"title"`          // 卡片二级标题,建议不超过38个字
	Desc  string `json:"desc,omitempty"` // 二级普通文本,建议不超过160个字
}

type TokenInfo

type TokenInfo struct {
	Token       string        `json:"token"`        // access_token/jsapi_ticket
	ExpiresIn   time.Duration `json:"expires_in"`   // 过期时间
	LastRefresh time.Time     `json:"last_refresh"` // 上次刷新access_token时间
}

access_token

type TransferListItem added in v1.1.5

type TransferListItem struct {
	// HandoverUserid 转移成员的userid。只支持加密的userid,必填
	HandoverUserid string `json:"handover_userid"`
	// TakeoverUserid 接收成员的userid。只支持加密的userid,必填
	TakeoverUserid string `json:"takeover_userid"`
}

ReqBatchTransferLicenseLicense 帐号继承请求 文档:https://developer.work.weixin.qq.com/document/path/95673#帐号继承

type UploadMediaReq

type UploadMediaReq struct {
	// 文件类型
	Type string `json:"type"`
	// 文件链接
	URL string `json:"url"`
}

type UploadMediaResult

type UploadMediaResult struct {
	// Type 媒体文件类型,分别有图片(image)、语音(voice)、视频(video),普通文件(file)
	Type string `json:"type"`
	// MediaId 媒体文件上传后获取的唯一标识,3天内有效
	MediaId string `json:"media_id"`
	// CreatedAt 媒体文件上传时间戳
	CreatedAt string `json:"created_at"`
}

type VacationList added in v1.1.3

type VacationList struct {
	Item []struct {
		Id   int `json:"id"`
		Name []struct {
			Text string `json:"text"`
			Lang string `json:"lang"`
		} `json:"name"`
	} `json:"item"`
}

type VacationValue added in v1.1.3

type VacationValue struct {
	Selector struct {
		Type    string `json:"type"` // 选择方式:single-单选;multi-多选,在假勤控件中固定为单选
		Options []struct {
			Key   string `json:"key"` // 选项key,选项的唯一id,可通过“获取审批模板详情”接口获得vacation_list中item的id值
			Value []struct {
				Text string `json:"text"`
				Lang string `json:"lang"`
			} `json:"value"`
		} `json:"options"`
		ExpType int `json:"exp_type"`
	} `json:"selector"`
	Attendance struct {
		DateRange struct {
			Type        string `json:"type"`         // 时间展示类型:day-日期;hour-日期+时间
			NewBegin    int    `json:"new_begin"`    // 开始时间戳
			NewEnd      int    `json:"new_end"`      // 结束时间戳
			NewDuration int    `json:"new_duration"` // 请假时长,单位秒
		} `json:"date_range"`
		Type int `json:"type"` // 假勤组件类型:1-请假;3-出差;4-外出;5-加班
	} `json:"attendance"`
}

Source Files

Jump to

Keyboard shortcuts

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