larkhelpdesk

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgTypeText        = "text"        // 普通文本
	MsgTypePost        = "post"        // 富文本
	MsgTypeImage       = "image"       // 图片
	MsgTypeInteractive = "interactive" // 卡片消息
)
View Source
const (
	ReceiveTypeChat = "chat" // 通过服务台专属群发送
	ReceiveTypeUser = "user" // 通过服务台机器人私聊发送
)
View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeCreateNotificationUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateNotificationUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateNotificationOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeGetNotificationUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetNotificationUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetNotificationOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypePatchNotificationUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypePatchNotificationUnionId = "union_id" // 以union_id来识别用户
	UserIdTypePatchNotificationOpenId  = "open_id"  // 以open_id来识别用户
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Id          *string `json:"id,omitempty"`           // user id
	AvatarUrl   *string `json:"avatar_url,omitempty"`   // user avatar url
	Name        *string `json:"name,omitempty"`         // user name
	Email       *string `json:"email,omitempty"`        // user email
	Department  *string `json:"department,omitempty"`   // user department
	CompanyName *string `json:"company_name,omitempty"` // company
}

type AgentBuilder

type AgentBuilder struct {
	// contains filtered or unexported fields
}

func NewAgentBuilder

func NewAgentBuilder() *AgentBuilder

func (*AgentBuilder) AvatarUrl

func (builder *AgentBuilder) AvatarUrl(avatarUrl string) *AgentBuilder

user avatar url

示例值:https://avatar-url.com/test.png

func (*AgentBuilder) Build

func (builder *AgentBuilder) Build() *Agent

func (*AgentBuilder) CompanyName

func (builder *AgentBuilder) CompanyName(companyName string) *AgentBuilder

company

示例值:

func (*AgentBuilder) Department

func (builder *AgentBuilder) Department(department string) *AgentBuilder

user department

示例值:

func (*AgentBuilder) Email

func (builder *AgentBuilder) Email(email string) *AgentBuilder

user email

示例值:

func (*AgentBuilder) Id

func (builder *AgentBuilder) Id(id string) *AgentBuilder

user id

示例值:ou_ea651a5c09e2d01af8acd34059f5359b

func (*AgentBuilder) Name

func (builder *AgentBuilder) Name(name string) *AgentBuilder

user name

示例值:test-user

type AgentEmailAgentResp

type AgentEmailAgentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *AgentEmailAgentRespData `json:"data"` // 业务数据
}

func (*AgentEmailAgentResp) Success

func (resp *AgentEmailAgentResp) Success() bool

type AgentEmailAgentRespData

type AgentEmailAgentRespData struct {
	Agents *string `json:"agents,omitempty"` // agent emails
}

type AgentSchedule

type AgentSchedule struct {
	Status      *int                  `json:"status,omitempty"`       // 客服状态, 1 - online客服, 2 - offline(手动)客服, 3 - off duty(下班)自动处于非服务时间段
	Agent       *AgentUser            `json:"agent,omitempty"`        // 客服信息
	Schedule    []*WeekdaySchedule    `json:"schedule,omitempty"`     // 工作日程列表
	AgentSkills []*AgentSkillLessInfo `json:"agent_skills,omitempty"` // 客服技能
}

type AgentScheduleBuilder

type AgentScheduleBuilder struct {
	// contains filtered or unexported fields
}

func NewAgentScheduleBuilder

func NewAgentScheduleBuilder() *AgentScheduleBuilder

func (*AgentScheduleBuilder) Agent

func (builder *AgentScheduleBuilder) Agent(agent *AgentUser) *AgentScheduleBuilder

客服信息

示例值:

func (*AgentScheduleBuilder) AgentSkills

func (builder *AgentScheduleBuilder) AgentSkills(agentSkills []*AgentSkillLessInfo) *AgentScheduleBuilder

客服技能

示例值:

func (*AgentScheduleBuilder) Build

func (builder *AgentScheduleBuilder) Build() *AgentSchedule

func (*AgentScheduleBuilder) Schedule

func (builder *AgentScheduleBuilder) Schedule(schedule []*WeekdaySchedule) *AgentScheduleBuilder

工作日程列表

示例值:

func (*AgentScheduleBuilder) Status

func (builder *AgentScheduleBuilder) Status(status int) *AgentScheduleBuilder

客服状态, 1 - online客服, 2 - offline(手动)客服, 3 - off duty(下班)自动处于非服务时间段

示例值:1

type AgentScheduleUpdateInfo

type AgentScheduleUpdateInfo struct {
	AgentId       *string            `json:"agent_id,omitempty"`        // 客服id;;[可以以普通用户身份在服务台发起工单,从工单详情里面获取用户guest.id](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/get)
	Schedule      []*WeekdaySchedule `json:"schedule,omitempty"`        // 工作日程列表
	AgentSkillIds []string           `json:"agent_skill_ids,omitempty"` // 客服技能 ids
}

type AgentScheduleUpdateInfoBuilder

type AgentScheduleUpdateInfoBuilder struct {
	// contains filtered or unexported fields
}

func NewAgentScheduleUpdateInfoBuilder

func NewAgentScheduleUpdateInfoBuilder() *AgentScheduleUpdateInfoBuilder

func (*AgentScheduleUpdateInfoBuilder) AgentId

客服id;;[可以以普通用户身份在服务台发起工单,从工单详情里面获取用户guest.id](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/get)

示例值:agent-id

func (*AgentScheduleUpdateInfoBuilder) AgentSkillIds

func (builder *AgentScheduleUpdateInfoBuilder) AgentSkillIds(agentSkillIds []string) *AgentScheduleUpdateInfoBuilder

客服技能 ids

示例值:[“test-skill-id”]

func (*AgentScheduleUpdateInfoBuilder) Build

func (*AgentScheduleUpdateInfoBuilder) Schedule

工作日程列表

示例值:

type AgentSchedules

type AgentSchedules struct {
	Status      *int                  `json:"status,omitempty"`       // status of agent
	Agent       *AgentUser            `json:"agent,omitempty"`        // agent info
	Schedule    []*WeekdaySchedule    `json:"schedule,omitempty"`     // day schedule
	AgentSkills []*AgentSkillLessInfo `json:"agent_skills,omitempty"` // agent skills
}

type AgentSchedulesBuilder

type AgentSchedulesBuilder struct {
	// contains filtered or unexported fields
}

func NewAgentSchedulesBuilder

func NewAgentSchedulesBuilder() *AgentSchedulesBuilder

func (*AgentSchedulesBuilder) Agent

func (builder *AgentSchedulesBuilder) Agent(agent *AgentUser) *AgentSchedulesBuilder

agent info

示例值:

func (*AgentSchedulesBuilder) AgentSkills

func (builder *AgentSchedulesBuilder) AgentSkills(agentSkills []*AgentSkillLessInfo) *AgentSchedulesBuilder

agent skills

示例值:

func (*AgentSchedulesBuilder) Build

func (builder *AgentSchedulesBuilder) Build() *AgentSchedules

func (*AgentSchedulesBuilder) Schedule

func (builder *AgentSchedulesBuilder) Schedule(schedule []*WeekdaySchedule) *AgentSchedulesBuilder

day schedule

示例值:

func (*AgentSchedulesBuilder) Status

func (builder *AgentSchedulesBuilder) Status(status int) *AgentSchedulesBuilder

status of agent

示例值:

type AgentSkill

type AgentSkill struct {
	Id         *string           `json:"id,omitempty"`          // 技能id
	HelpdeskId *string           `json:"helpdesk_id,omitempty"` // helpdesk id
	Name       *string           `json:"name,omitempty"`        // 技能名
	Rules      []*AgentSkillRule `json:"rules,omitempty"`       // 技能rules
	AgentIds   []string          `json:"agent_ids,omitempty"`   // 具有此技能的客服ids
	IsDefault  *bool             `json:"is_default,omitempty"`  // 默认技能
	Agents     []*Agent          `json:"agents,omitempty"`      // 客服 info
}

type AgentSkillBuilder

type AgentSkillBuilder struct {
	// contains filtered or unexported fields
}

func NewAgentSkillBuilder

func NewAgentSkillBuilder() *AgentSkillBuilder

func (*AgentSkillBuilder) AgentIds

func (builder *AgentSkillBuilder) AgentIds(agentIds []string) *AgentSkillBuilder

具有此技能的客服ids

示例值:["ou_ea21d7f018e1155d960e40d33191f966"]

func (*AgentSkillBuilder) Agents

func (builder *AgentSkillBuilder) Agents(agents []*Agent) *AgentSkillBuilder

客服 info

示例值:

func (*AgentSkillBuilder) Build

func (builder *AgentSkillBuilder) Build() *AgentSkill

func (*AgentSkillBuilder) HelpdeskId

func (builder *AgentSkillBuilder) HelpdeskId(helpdeskId string) *AgentSkillBuilder

helpdesk id

示例值:

func (*AgentSkillBuilder) Id

func (builder *AgentSkillBuilder) Id(id string) *AgentSkillBuilder

技能id

示例值:test-skill-id

func (*AgentSkillBuilder) IsDefault

func (builder *AgentSkillBuilder) IsDefault(isDefault bool) *AgentSkillBuilder

默认技能

示例值:false

func (*AgentSkillBuilder) Name

func (builder *AgentSkillBuilder) Name(name string) *AgentSkillBuilder

技能名

示例值:skill-name

func (*AgentSkillBuilder) Rules

func (builder *AgentSkillBuilder) Rules(rules []*AgentSkillRule) *AgentSkillBuilder

技能rules

示例值:

type AgentSkillLessInfo

type AgentSkillLessInfo struct {
	Id        *string `json:"id,omitempty"`         // 客服技能 id
	Name      *string `json:"name,omitempty"`       // 客服技能名
	IsDefault *bool   `json:"is_default,omitempty"` // 是默认技能
}

type AgentSkillLessInfoBuilder

type AgentSkillLessInfoBuilder struct {
	// contains filtered or unexported fields
}

func NewAgentSkillLessInfoBuilder

func NewAgentSkillLessInfoBuilder() *AgentSkillLessInfoBuilder

func (*AgentSkillLessInfoBuilder) Build

func (*AgentSkillLessInfoBuilder) Id

客服技能 id

示例值:agent-skill-id

func (*AgentSkillLessInfoBuilder) IsDefault

func (builder *AgentSkillLessInfoBuilder) IsDefault(isDefault bool) *AgentSkillLessInfoBuilder

是默认技能

示例值:false

func (*AgentSkillLessInfoBuilder) Name

客服技能名

示例值:agent-skill

type AgentSkillRule

type AgentSkillRule struct {
	Id               *string `json:"id,omitempty"`                // rule id, 参考[获取客服技能rules](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/agent_skill_rule/list) 用于获取rules options
	SelectedOperator *int    `json:"selected_operator,omitempty"` // 运算符比较, 参考[客服技能运算符选项](/ssl:ttdoc/ukTMukTMukTM/ucDOyYjL3gjM24yN4IjN/operator-options)
	OperatorOptions  []int   `json:"operator_options,omitempty"`  // rule操作数value,[客服技能及运算符](/ssl:ttdoc/ukTMukTMukTM/ucDOyYjL3gjM24yN4IjN/operator-options)
	Operand          *string `json:"operand,omitempty"`           // rule 操作数的值
	Category         *int    `json:"category,omitempty"`          // rule 类型,1-知识库,2-工单信息,3-用户飞书信息
	DisplayName      *string `json:"display_name,omitempty"`      // rule 名
}

type AgentSkillRuleBuilder

type AgentSkillRuleBuilder struct {
	// contains filtered or unexported fields
}

func NewAgentSkillRuleBuilder

func NewAgentSkillRuleBuilder() *AgentSkillRuleBuilder

func (*AgentSkillRuleBuilder) Build

func (builder *AgentSkillRuleBuilder) Build() *AgentSkillRule

func (*AgentSkillRuleBuilder) Category

func (builder *AgentSkillRuleBuilder) Category(category int) *AgentSkillRuleBuilder

rule 类型,1-知识库,2-工单信息,3-用户飞书信息

示例值:3

func (*AgentSkillRuleBuilder) DisplayName

func (builder *AgentSkillRuleBuilder) DisplayName(displayName string) *AgentSkillRuleBuilder

rule 名

示例值:中文知识库分类

func (*AgentSkillRuleBuilder) Id

rule id, 参考[获取客服技能rules](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/agent_skill_rule/list) 用于获取rules options

示例值:test-skill-id

func (*AgentSkillRuleBuilder) Operand

func (builder *AgentSkillRuleBuilder) Operand(operand string) *AgentSkillRuleBuilder

rule 操作数的值

示例值:{; "selected_departments": [; {; "id": "部门ID",; "name": "IT"; }; ]; }

func (*AgentSkillRuleBuilder) OperatorOptions

func (builder *AgentSkillRuleBuilder) OperatorOptions(operatorOptions []int) *AgentSkillRuleBuilder

rule操作数value,[客服技能及运算符](/ssl:ttdoc/ukTMukTMukTM/ucDOyYjL3gjM24yN4IjN/operator-options)

示例值:[3]

func (*AgentSkillRuleBuilder) SelectedOperator

func (builder *AgentSkillRuleBuilder) SelectedOperator(selectedOperator int) *AgentSkillRuleBuilder

运算符比较, 参考[客服技能运算符选项](/ssl:ttdoc/ukTMukTMukTM/ucDOyYjL3gjM24yN4IjN/operator-options)

示例值:8

type AgentUser

type AgentUser struct {
	Id          *string `json:"id,omitempty"`           // 客服 id
	AvatarUrl   *string `json:"avatar_url,omitempty"`   // avatar url
	Name        *string `json:"name,omitempty"`         // 客服名字
	Email       *string `json:"email,omitempty"`        // email
	Department  *string `json:"department,omitempty"`   // 部门
	CompanyName *string `json:"company_name,omitempty"` // 公司名
}

type AgentUserBuilder

type AgentUserBuilder struct {
	// contains filtered or unexported fields
}

func NewAgentUserBuilder

func NewAgentUserBuilder() *AgentUserBuilder

func (*AgentUserBuilder) AvatarUrl

func (builder *AgentUserBuilder) AvatarUrl(avatarUrl string) *AgentUserBuilder

avatar url

示例值:https://avatar-url.com/test.png

func (*AgentUserBuilder) Build

func (builder *AgentUserBuilder) Build() *AgentUser

func (*AgentUserBuilder) CompanyName

func (builder *AgentUserBuilder) CompanyName(companyName string) *AgentUserBuilder

公司名

示例值:test-company

func (*AgentUserBuilder) Department

func (builder *AgentUserBuilder) Department(department string) *AgentUserBuilder

部门

示例值:测试部门

func (*AgentUserBuilder) Email

func (builder *AgentUserBuilder) Email(email string) *AgentUserBuilder

email

示例值:test@bytedance.com

func (*AgentUserBuilder) Id

func (builder *AgentUserBuilder) Id(id string) *AgentUserBuilder

客服 id

示例值:ou_ea651a5c09e2d01af8acd34059f5359b

func (*AgentUserBuilder) Name

func (builder *AgentUserBuilder) Name(name string) *AgentUserBuilder

客服名字

示例值:test-user

type AnswerUserQueryTicketPathReqBodyBuilder

type AnswerUserQueryTicketPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewAnswerUserQueryTicketPathReqBodyBuilder

func NewAnswerUserQueryTicketPathReqBodyBuilder() *AnswerUserQueryTicketPathReqBodyBuilder

func (*AnswerUserQueryTicketPathReqBodyBuilder) Build

func (*AnswerUserQueryTicketPathReqBodyBuilder) EventId

事件ID,可从订阅事件中提取

示例值:abcd

func (*AnswerUserQueryTicketPathReqBodyBuilder) Faqs

faq结果列表

示例值:

type AnswerUserQueryTicketReq

type AnswerUserQueryTicketReq struct {
	Body *AnswerUserQueryTicketReqBody `body:""`
	// contains filtered or unexported fields
}

type AnswerUserQueryTicketReqBody

type AnswerUserQueryTicketReqBody struct {
	EventId *string             `json:"event_id,omitempty"` // 事件ID,可从订阅事件中提取
	Faqs    []*UserQueryFaqInfo `json:"faqs,omitempty"`     // faq结果列表
}

type AnswerUserQueryTicketReqBodyBuilder

type AnswerUserQueryTicketReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewAnswerUserQueryTicketReqBodyBuilder

func NewAnswerUserQueryTicketReqBodyBuilder() *AnswerUserQueryTicketReqBodyBuilder

func (*AnswerUserQueryTicketReqBodyBuilder) Build

func (*AnswerUserQueryTicketReqBodyBuilder) EventId

事件ID,可从订阅事件中提取

示例值:abcd

func (*AnswerUserQueryTicketReqBodyBuilder) Faqs

faq结果列表

示例值:

type AnswerUserQueryTicketReqBuilder

type AnswerUserQueryTicketReqBuilder struct {
	// contains filtered or unexported fields
}

func NewAnswerUserQueryTicketReqBuilder

func NewAnswerUserQueryTicketReqBuilder() *AnswerUserQueryTicketReqBuilder

func (*AnswerUserQueryTicketReqBuilder) Body

该接口用于回复用户提问结果至工单,需要工单仍处于进行中且未接入人工状态。仅支持自建应用。

func (*AnswerUserQueryTicketReqBuilder) Build

func (*AnswerUserQueryTicketReqBuilder) TicketId

工单ID

示例值:6945345902185807891

type AnswerUserQueryTicketResp

type AnswerUserQueryTicketResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*AnswerUserQueryTicketResp) Success

func (resp *AnswerUserQueryTicketResp) Success() bool

type BotMessage

type BotMessage struct {
	MsgType     *string `json:"msg_type,omitempty"`     // 消息类型
	Content     *string `json:"content,omitempty"`      // 消息内容,json格式结构序列化成string。格式说明参考: [发送消息content说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json)
	ReceiverId  *string `json:"receiver_id,omitempty"`  // 接收消息用户id
	ReceiveType *string `json:"receive_type,omitempty"` // 接收消息方式,chat(服务台专属服务群)或user(服务台机器人私聊)。若选择专属服务群,用户有正在处理的工单将会发送失败。默认以chat方式发送。
}

type BotMessageBuilder

type BotMessageBuilder struct {
	// contains filtered or unexported fields
}

func NewBotMessageBuilder

func NewBotMessageBuilder() *BotMessageBuilder

func (*BotMessageBuilder) Build

func (builder *BotMessageBuilder) Build() *BotMessage

func (*BotMessageBuilder) Content

func (builder *BotMessageBuilder) Content(content string) *BotMessageBuilder

消息内容,json格式结构序列化成string。格式说明参考: [发送消息content说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json)

示例值:{\"post\":{\"zh_cn\":{\"title\":\"some title\",\"content\":[[{\"tag\":\"text\",\"text\":\"some content\"}]]}}}

func (*BotMessageBuilder) MsgType

func (builder *BotMessageBuilder) MsgType(msgType string) *BotMessageBuilder

消息类型

示例值:post

func (*BotMessageBuilder) ReceiveType

func (builder *BotMessageBuilder) ReceiveType(receiveType string) *BotMessageBuilder

接收消息方式,chat(服务台专属服务群)或user(服务台机器人私聊)。若选择专属服务群,用户有正在处理的工单将会发送失败。默认以chat方式发送。

示例值:chat

func (*BotMessageBuilder) ReceiverId

func (builder *BotMessageBuilder) ReceiverId(receiverId string) *BotMessageBuilder

接收消息用户id

示例值:ou_7346484524

type CancelApproveNotificationReq

type CancelApproveNotificationReq struct {
	// contains filtered or unexported fields
}

type CancelApproveNotificationReqBuilder

type CancelApproveNotificationReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCancelApproveNotificationReqBuilder

func NewCancelApproveNotificationReqBuilder() *CancelApproveNotificationReqBuilder

func (*CancelApproveNotificationReqBuilder) Build

func (*CancelApproveNotificationReqBuilder) NotificationId

func (builder *CancelApproveNotificationReqBuilder) NotificationId(notificationId string) *CancelApproveNotificationReqBuilder

唯一ID

示例值:6981801914270744596

type CancelApproveNotificationResp

type CancelApproveNotificationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*CancelApproveNotificationResp) Success

func (resp *CancelApproveNotificationResp) Success() bool

type CancelSendNotificationPathReqBodyBuilder

type CancelSendNotificationPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewCancelSendNotificationPathReqBodyBuilder

func NewCancelSendNotificationPathReqBodyBuilder() *CancelSendNotificationPathReqBodyBuilder

func (*CancelSendNotificationPathReqBodyBuilder) Build

func (*CancelSendNotificationPathReqBodyBuilder) IsRecall

是否召回已发送的消息,新人入职消息同样适用

示例值:true

type CancelSendNotificationReq

type CancelSendNotificationReq struct {
	Body *CancelSendNotificationReqBody `body:""`
	// contains filtered or unexported fields
}

type CancelSendNotificationReqBody

type CancelSendNotificationReqBody struct {
	IsRecall *bool `json:"is_recall,omitempty"` // 是否召回已发送的消息,新人入职消息同样适用
}

type CancelSendNotificationReqBodyBuilder

type CancelSendNotificationReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewCancelSendNotificationReqBodyBuilder

func NewCancelSendNotificationReqBodyBuilder() *CancelSendNotificationReqBodyBuilder

func (*CancelSendNotificationReqBodyBuilder) Build

func (*CancelSendNotificationReqBodyBuilder) IsRecall

是否召回已发送的消息,新人入职消息同样适用

示例值:true

type CancelSendNotificationReqBuilder

type CancelSendNotificationReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCancelSendNotificationReqBuilder

func NewCancelSendNotificationReqBuilder() *CancelSendNotificationReqBuilder

func (*CancelSendNotificationReqBuilder) Body

取消推送接口,审核通过后待调度可以调用,发送过程中可以调用(会撤回已发送的消息),发送完成后可以需要推送(会撤回所有已发送的消息)

func (*CancelSendNotificationReqBuilder) Build

func (*CancelSendNotificationReqBuilder) NotificationId

func (builder *CancelSendNotificationReqBuilder) NotificationId(notificationId string) *CancelSendNotificationReqBuilder

唯一ID

示例值:6981801914270744596

type CancelSendNotificationResp

type CancelSendNotificationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*CancelSendNotificationResp) Success

func (resp *CancelSendNotificationResp) Success() bool

type Category

type Category struct {
	CategoryId *string `json:"category_id,omitempty"` // 知识库分类ID
	Id         *string `json:"id,omitempty"`          // 知识库分类ID,(旧版,请使用category_id)
	Name       *string `json:"name,omitempty"`        // 名称
	ParentId   *string `json:"parent_id,omitempty"`   // 父知识库分类ID
	HelpdeskId *string `json:"helpdesk_id,omitempty"` // 服务台ID
	Language   *string `json:"language,omitempty"`    // 语言
}

type CategoryBuilder

type CategoryBuilder struct {
	// contains filtered or unexported fields
}

func NewCategoryBuilder

func NewCategoryBuilder() *CategoryBuilder

func (*CategoryBuilder) Build

func (builder *CategoryBuilder) Build() *Category

func (*CategoryBuilder) CategoryId

func (builder *CategoryBuilder) CategoryId(categoryId string) *CategoryBuilder

知识库分类ID

示例值:6948728206392295444

func (*CategoryBuilder) HelpdeskId

func (builder *CategoryBuilder) HelpdeskId(helpdeskId string) *CategoryBuilder

服务台ID

示例值:6939771743531696147

func (*CategoryBuilder) Id

func (builder *CategoryBuilder) Id(id string) *CategoryBuilder

知识库分类ID,(旧版,请使用category_id)

示例值:6948728206392295444

func (*CategoryBuilder) Language

func (builder *CategoryBuilder) Language(language string) *CategoryBuilder

语言

示例值:zh_cn

func (*CategoryBuilder) Name

func (builder *CategoryBuilder) Name(name string) *CategoryBuilder

名称

示例值:创建团队和邀请成员

func (*CategoryBuilder) ParentId

func (builder *CategoryBuilder) ParentId(parentId string) *CategoryBuilder

父知识库分类ID

示例值:0

type Comments

type Comments struct {
	Content       *string `json:"content,omitempty"`         // 备注
	CreatedAt     *int    `json:"created_at,omitempty"`      // 备注时间,单位毫秒
	Id            *int    `json:"id,omitempty"`              // 备注ID
	UserAvatarUrl *string `json:"user_avatar_url,omitempty"` // 备注人头像
	UserName      *string `json:"user_name,omitempty"`       // 备注人姓名
	UserId        *int    `json:"user_id,omitempty"`         // 备注人ID
}

type CommentsBuilder

type CommentsBuilder struct {
	// contains filtered or unexported fields
}

func NewCommentsBuilder

func NewCommentsBuilder() *CommentsBuilder

func (*CommentsBuilder) Build

func (builder *CommentsBuilder) Build() *Comments

func (*CommentsBuilder) Content

func (builder *CommentsBuilder) Content(content string) *CommentsBuilder

备注

示例值:备注内容

func (*CommentsBuilder) CreatedAt

func (builder *CommentsBuilder) CreatedAt(createdAt int) *CommentsBuilder

备注时间,单位毫秒

示例值:备注时间

func (*CommentsBuilder) Id

func (builder *CommentsBuilder) Id(id int) *CommentsBuilder

备注ID

示例值:备注id

func (*CommentsBuilder) UserAvatarUrl

func (builder *CommentsBuilder) UserAvatarUrl(userAvatarUrl string) *CommentsBuilder

备注人头像

示例值:备注人头像

func (*CommentsBuilder) UserId

func (builder *CommentsBuilder) UserId(userId int) *CommentsBuilder

备注人ID

示例值:备注人id

func (*CommentsBuilder) UserName

func (builder *CommentsBuilder) UserName(userName string) *CommentsBuilder

备注人姓名

示例值:备注人姓名

type CreateAgentSchedulePathReqBodyBuilder

type CreateAgentSchedulePathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateAgentSchedulePathReqBodyBuilder

func NewCreateAgentSchedulePathReqBodyBuilder() *CreateAgentSchedulePathReqBodyBuilder

func (*CreateAgentSchedulePathReqBodyBuilder) AgentSchedules

新客服日程

示例值:

func (*CreateAgentSchedulePathReqBodyBuilder) Build

type CreateAgentScheduleReq

type CreateAgentScheduleReq struct {
	Body *CreateAgentScheduleReqBody `body:""`
	// contains filtered or unexported fields
}

type CreateAgentScheduleReqBody

type CreateAgentScheduleReqBody struct {
	AgentSchedules []*AgentScheduleUpdateInfo `json:"agent_schedules,omitempty"` // 新客服日程
}

type CreateAgentScheduleReqBodyBuilder

type CreateAgentScheduleReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateAgentScheduleReqBodyBuilder

func NewCreateAgentScheduleReqBodyBuilder() *CreateAgentScheduleReqBodyBuilder

func (*CreateAgentScheduleReqBodyBuilder) AgentSchedules

新客服日程

示例值:

func (*CreateAgentScheduleReqBodyBuilder) Build

type CreateAgentScheduleReqBuilder

type CreateAgentScheduleReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateAgentScheduleReqBuilder

func NewCreateAgentScheduleReqBuilder() *CreateAgentScheduleReqBuilder

func (*CreateAgentScheduleReqBuilder) Body

该接口用于创建客服

func (*CreateAgentScheduleReqBuilder) Build

type CreateAgentScheduleResp

type CreateAgentScheduleResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*CreateAgentScheduleResp) Success

func (resp *CreateAgentScheduleResp) Success() bool

type CreateAgentSkillPathReqBodyBuilder

type CreateAgentSkillPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateAgentSkillPathReqBodyBuilder

func NewCreateAgentSkillPathReqBodyBuilder() *CreateAgentSkillPathReqBodyBuilder

func (*CreateAgentSkillPathReqBodyBuilder) AgentIds

客服 ids

示例值:["客服ID"]

func (*CreateAgentSkillPathReqBodyBuilder) Build

func (*CreateAgentSkillPathReqBodyBuilder) Name

技能名

示例值:test-skill

func (*CreateAgentSkillPathReqBodyBuilder) Rules

技能rules

示例值:

type CreateAgentSkillReq

type CreateAgentSkillReq struct {
	Body *CreateAgentSkillReqBody `body:""`
	// contains filtered or unexported fields
}

type CreateAgentSkillReqBody

type CreateAgentSkillReqBody struct {
	Name     *string           `json:"name,omitempty"`      // 技能名
	Rules    []*AgentSkillRule `json:"rules,omitempty"`     // 技能rules
	AgentIds []string          `json:"agent_ids,omitempty"` // 客服 ids
}

type CreateAgentSkillReqBodyBuilder

type CreateAgentSkillReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateAgentSkillReqBodyBuilder

func NewCreateAgentSkillReqBodyBuilder() *CreateAgentSkillReqBodyBuilder

func (*CreateAgentSkillReqBodyBuilder) AgentIds

客服 ids

示例值:["客服ID"]

func (*CreateAgentSkillReqBodyBuilder) Build

func (*CreateAgentSkillReqBodyBuilder) Name

技能名

示例值:test-skill

func (*CreateAgentSkillReqBodyBuilder) Rules

技能rules

示例值:

type CreateAgentSkillReqBuilder

type CreateAgentSkillReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateAgentSkillReqBuilder

func NewCreateAgentSkillReqBuilder() *CreateAgentSkillReqBuilder

func (*CreateAgentSkillReqBuilder) Body

该接口用于创建客服技能

func (*CreateAgentSkillReqBuilder) Build

type CreateAgentSkillResp

type CreateAgentSkillResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateAgentSkillRespData `json:"data"` // 业务数据
}

func (*CreateAgentSkillResp) Success

func (resp *CreateAgentSkillResp) Success() bool

type CreateAgentSkillRespData

type CreateAgentSkillRespData struct {
	AgentSkillId *string `json:"agent_skill_id,omitempty"` // 客服技能id
}

type CreateBotMessageReq

type CreateBotMessageReq struct {
	BotMessage *BotMessage `body:""`
	// contains filtered or unexported fields
}

type CreateBotMessageReqBuilder

type CreateBotMessageReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateBotMessageReqBuilder

func NewCreateBotMessageReqBuilder() *CreateBotMessageReqBuilder

func (*CreateBotMessageReqBuilder) BotMessage

func (builder *CreateBotMessageReqBuilder) BotMessage(botMessage *BotMessage) *CreateBotMessageReqBuilder

通过服务台机器人给指定用户的服务台专属群或私聊发送消息,支持文本、富文本、卡片、图片。

func (*CreateBotMessageReqBuilder) Build

func (*CreateBotMessageReqBuilder) UserIdType

func (builder *CreateBotMessageReqBuilder) UserIdType(userIdType string) *CreateBotMessageReqBuilder

此次调用中使用的用户ID的类型

示例值:

type CreateBotMessageResp

type CreateBotMessageResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateBotMessageRespData `json:"data"` // 业务数据
}

func (*CreateBotMessageResp) Success

func (resp *CreateBotMessageResp) Success() bool

type CreateBotMessageRespData

type CreateBotMessageRespData struct {
	MessageId *string `json:"message_id,omitempty"` // chat消息open_id
}

type CreateCategoryReq

type CreateCategoryReq struct {
	Category *Category `body:""`
	// contains filtered or unexported fields
}

type CreateCategoryReqBuilder

type CreateCategoryReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateCategoryReqBuilder

func NewCreateCategoryReqBuilder() *CreateCategoryReqBuilder

func (*CreateCategoryReqBuilder) Build

func (builder *CreateCategoryReqBuilder) Build() *CreateCategoryReq

func (*CreateCategoryReqBuilder) Category

func (builder *CreateCategoryReqBuilder) Category(category *Category) *CreateCategoryReqBuilder

该接口用于创建知识库分类。

type CreateCategoryResp

type CreateCategoryResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateCategoryRespData `json:"data"` // 业务数据
}

func (*CreateCategoryResp) Success

func (resp *CreateCategoryResp) Success() bool

type CreateCategoryRespData

type CreateCategoryRespData struct {
	Category *Category `json:"category,omitempty"` // 知识库分类
}

type CreateFaqPathReqBodyBuilder

type CreateFaqPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateFaqPathReqBodyBuilder

func NewCreateFaqPathReqBodyBuilder() *CreateFaqPathReqBodyBuilder

func (*CreateFaqPathReqBodyBuilder) Build

func (builder *CreateFaqPathReqBodyBuilder) Build() (*CreateFaqReqBody, error)

func (*CreateFaqPathReqBodyBuilder) Faq

知识库详情

示例值:

type CreateFaqReq

type CreateFaqReq struct {
	Body *CreateFaqReqBody `body:""`
	// contains filtered or unexported fields
}

type CreateFaqReqBody

type CreateFaqReqBody struct {
	Faq *FaqUpdateInfo `json:"faq,omitempty"` // 知识库详情
}

type CreateFaqReqBodyBuilder

type CreateFaqReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateFaqReqBodyBuilder

func NewCreateFaqReqBodyBuilder() *CreateFaqReqBodyBuilder

func (*CreateFaqReqBodyBuilder) Build

func (builder *CreateFaqReqBodyBuilder) Build() *CreateFaqReqBody

func (*CreateFaqReqBodyBuilder) Faq

知识库详情

示例值:

type CreateFaqReqBuilder

type CreateFaqReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateFaqReqBuilder

func NewCreateFaqReqBuilder() *CreateFaqReqBuilder

func (*CreateFaqReqBuilder) Body

该接口用于创建知识库。

func (*CreateFaqReqBuilder) Build

func (builder *CreateFaqReqBuilder) Build() *CreateFaqReq

type CreateFaqResp

type CreateFaqResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateFaqRespData `json:"data"` // 业务数据
}

func (*CreateFaqResp) Success

func (resp *CreateFaqResp) Success() bool

type CreateFaqRespData

type CreateFaqRespData struct {
	Faq *Faq `json:"faq,omitempty"` // 知识库详情
}

type CreateNotificationReq

type CreateNotificationReq struct {
	Notification *Notification `body:""`
	// contains filtered or unexported fields
}

type CreateNotificationReqBuilder

type CreateNotificationReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateNotificationReqBuilder

func NewCreateNotificationReqBuilder() *CreateNotificationReqBuilder

func (*CreateNotificationReqBuilder) Build

func (*CreateNotificationReqBuilder) Notification

func (builder *CreateNotificationReqBuilder) Notification(notification *Notification) *CreateNotificationReqBuilder

调用接口创建推送,创建成功后为草稿状态

func (*CreateNotificationReqBuilder) UserIdType

func (builder *CreateNotificationReqBuilder) UserIdType(userIdType string) *CreateNotificationReqBuilder

此次调用中使用的用户ID的类型

示例值:

type CreateNotificationResp

type CreateNotificationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateNotificationRespData `json:"data"` // 业务数据
}

func (*CreateNotificationResp) Success

func (resp *CreateNotificationResp) Success() bool

type CreateNotificationRespData

type CreateNotificationRespData struct {
	NotificationId *string `json:"notification_id,omitempty"` // 创建成功后的唯一id
	Status         *int    `json:"status,omitempty"`          // 当前状态
}

type CreateTicketCustomizedFieldReq

type CreateTicketCustomizedFieldReq struct {
	TicketCustomizedField *TicketCustomizedField `body:""`
	// contains filtered or unexported fields
}

type CreateTicketCustomizedFieldReqBuilder

type CreateTicketCustomizedFieldReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateTicketCustomizedFieldReqBuilder

func NewCreateTicketCustomizedFieldReqBuilder() *CreateTicketCustomizedFieldReqBuilder

func (*CreateTicketCustomizedFieldReqBuilder) Build

func (*CreateTicketCustomizedFieldReqBuilder) TicketCustomizedField

func (builder *CreateTicketCustomizedFieldReqBuilder) TicketCustomizedField(ticketCustomizedField *TicketCustomizedField) *CreateTicketCustomizedFieldReqBuilder

该接口用于创建自定义字段

type CreateTicketCustomizedFieldResp

type CreateTicketCustomizedFieldResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*CreateTicketCustomizedFieldResp) Success

func (resp *CreateTicketCustomizedFieldResp) Success() bool

type CreateTicketMessagePathReqBodyBuilder

type CreateTicketMessagePathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateTicketMessagePathReqBodyBuilder

func NewCreateTicketMessagePathReqBodyBuilder() *CreateTicketMessagePathReqBodyBuilder

func (*CreateTicketMessagePathReqBodyBuilder) Build

func (*CreateTicketMessagePathReqBodyBuilder) Content

- 纯文本,参考[发送文本消息](/ssl:ttdoc/ukTMukTMukTM/uUjNz4SN2MjL1YzM)中的content;;- 富文本,参考[发送富文本消息](/ssl:ttdoc/ukTMukTMukTM/uMDMxEjLzATMx4yMwETM)中的content

示例值:{; "msg_type": "post",; "content": {; "post": {; "zh_cn": {; "title": "this is title",; "content": [; [; {; "tag": "text",; "un_escape": true,; "text": "第一行 :"; },; {; "tag": "a",; "text": "超链接",; "href": "http://www.feishu.cn"; }; ],; [; {; "tag": "text",; "text": "第二行 :"; },; {; "tag": "text",; "text": "文本测试"; }; ]; ]; }; }; };}

func (*CreateTicketMessagePathReqBodyBuilder) MsgType

消息类型;text:纯文本;post:富文本

示例值:post

type CreateTicketMessageReq

type CreateTicketMessageReq struct {
	Body *CreateTicketMessageReqBody `body:""`
	// contains filtered or unexported fields
}

type CreateTicketMessageReqBody

type CreateTicketMessageReqBody struct {
	MsgType *string `json:"msg_type,omitempty"` // 消息类型;text:纯文本;post:富文本
	Content *string `json:"content,omitempty"`  // - 纯文本,参考[发送文本消息](/ssl:ttdoc/ukTMukTMukTM/uUjNz4SN2MjL1YzM)中的content;;- 富文本,参考[发送富文本消息](/ssl:ttdoc/ukTMukTMukTM/uMDMxEjLzATMx4yMwETM)中的content
}

type CreateTicketMessageReqBodyBuilder

type CreateTicketMessageReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateTicketMessageReqBodyBuilder

func NewCreateTicketMessageReqBodyBuilder() *CreateTicketMessageReqBodyBuilder

func (*CreateTicketMessageReqBodyBuilder) Build

func (*CreateTicketMessageReqBodyBuilder) Content

- 纯文本,参考[发送文本消息](/ssl:ttdoc/ukTMukTMukTM/uUjNz4SN2MjL1YzM)中的content;;- 富文本,参考[发送富文本消息](/ssl:ttdoc/ukTMukTMukTM/uMDMxEjLzATMx4yMwETM)中的content

示例值:{; "msg_type": "post",; "content": {; "post": {; "zh_cn": {; "title": "this is title",; "content": [; [; {; "tag": "text",; "un_escape": true,; "text": "第一行 :"; },; {; "tag": "a",; "text": "超链接",; "href": "http://www.feishu.cn"; }; ],; [; {; "tag": "text",; "text": "第二行 :"; },; {; "tag": "text",; "text": "文本测试"; }; ]; ]; }; }; };}

func (*CreateTicketMessageReqBodyBuilder) MsgType

消息类型;text:纯文本;post:富文本

示例值:post

type CreateTicketMessageReqBuilder

type CreateTicketMessageReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateTicketMessageReqBuilder

func NewCreateTicketMessageReqBuilder() *CreateTicketMessageReqBuilder

func (*CreateTicketMessageReqBuilder) Body

该接口用于工单发送消息。

func (*CreateTicketMessageReqBuilder) Build

func (*CreateTicketMessageReqBuilder) TicketId

工单ID

示例值:6948728206392295444

type CreateTicketMessageResp

type CreateTicketMessageResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateTicketMessageRespData `json:"data"` // 业务数据
}

func (*CreateTicketMessageResp) Success

func (resp *CreateTicketMessageResp) Success() bool

type CreateTicketMessageRespData

type CreateTicketMessageRespData struct {
	MessageId *string `json:"message_id,omitempty"` // chat消息open ID
}

type CustomizedFieldDisplayItem

type CustomizedFieldDisplayItem struct {
	Id          *string `json:"id,omitempty"`           // 自定义字段ID
	Value       *string `json:"value,omitempty"`        // 自定义字段值
	KeyName     *string `json:"key_name,omitempty"`     // 键名
	DisplayName *string `json:"display_name,omitempty"` // 展示名称
	Position    *int    `json:"position,omitempty"`     // 展示位置
	Required    *bool   `json:"required,omitempty"`     // 是否必填
	Editable    *bool   `json:"editable,omitempty"`     // 是否可修改
}

type CustomizedFieldDisplayItemBuilder

type CustomizedFieldDisplayItemBuilder struct {
	// contains filtered or unexported fields
}

func NewCustomizedFieldDisplayItemBuilder

func NewCustomizedFieldDisplayItemBuilder() *CustomizedFieldDisplayItemBuilder

func (*CustomizedFieldDisplayItemBuilder) Build

func (*CustomizedFieldDisplayItemBuilder) DisplayName

展示名称

示例值:display name

func (*CustomizedFieldDisplayItemBuilder) Editable

是否可修改

示例值:true

func (*CustomizedFieldDisplayItemBuilder) Id

自定义字段ID

示例值:123

func (*CustomizedFieldDisplayItemBuilder) KeyName

键名

示例值:key

func (*CustomizedFieldDisplayItemBuilder) Position

展示位置

示例值:1

func (*CustomizedFieldDisplayItemBuilder) Required

是否必填

示例值:true

func (*CustomizedFieldDisplayItemBuilder) Value

自定义字段值

示例值:value

type CustomizedFieldsTicketReq

type CustomizedFieldsTicketReq struct {
	// contains filtered or unexported fields
}

type CustomizedFieldsTicketReqBuilder

type CustomizedFieldsTicketReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCustomizedFieldsTicketReqBuilder

func NewCustomizedFieldsTicketReqBuilder() *CustomizedFieldsTicketReqBuilder

func (*CustomizedFieldsTicketReqBuilder) Build

func (*CustomizedFieldsTicketReqBuilder) VisibleOnly

func (builder *CustomizedFieldsTicketReqBuilder) VisibleOnly(visibleOnly bool) *CustomizedFieldsTicketReqBuilder

visible only

示例值:true

type CustomizedFieldsTicketResp

type CustomizedFieldsTicketResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CustomizedFieldsTicketRespData `json:"data"` // 业务数据
}

func (*CustomizedFieldsTicketResp) Success

func (resp *CustomizedFieldsTicketResp) Success() bool

type CustomizedFieldsTicketRespData

type CustomizedFieldsTicketRespData struct {
	UserCustomizedFields   []*UserCustomizedField   `json:"user_customized_fields,omitempty"`   // 用户自定义字段
	TicketCustomizedFields []*TicketCustomizedField `json:"ticket_customized_fields,omitempty"` // 自定义工单字段
}

type DeleteAgentSchedulesReq

type DeleteAgentSchedulesReq struct {
	// contains filtered or unexported fields
}

type DeleteAgentSchedulesReqBuilder

type DeleteAgentSchedulesReqBuilder struct {
	// contains filtered or unexported fields
}

func NewDeleteAgentSchedulesReqBuilder

func NewDeleteAgentSchedulesReqBuilder() *DeleteAgentSchedulesReqBuilder

func (*DeleteAgentSchedulesReqBuilder) AgentId

agent user id

示例值:12345

func (*DeleteAgentSchedulesReqBuilder) Build

type DeleteAgentSchedulesResp

type DeleteAgentSchedulesResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteAgentSchedulesResp) Success

func (resp *DeleteAgentSchedulesResp) Success() bool

type DeleteAgentSkillReq

type DeleteAgentSkillReq struct {
	// contains filtered or unexported fields
}

type DeleteAgentSkillReqBuilder

type DeleteAgentSkillReqBuilder struct {
	// contains filtered or unexported fields
}

func NewDeleteAgentSkillReqBuilder

func NewDeleteAgentSkillReqBuilder() *DeleteAgentSkillReqBuilder

func (*DeleteAgentSkillReqBuilder) AgentSkillId

func (builder *DeleteAgentSkillReqBuilder) AgentSkillId(agentSkillId string) *DeleteAgentSkillReqBuilder

agent group id

示例值:test-skill-id

func (*DeleteAgentSkillReqBuilder) Build

type DeleteAgentSkillResp

type DeleteAgentSkillResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteAgentSkillResp) Success

func (resp *DeleteAgentSkillResp) Success() bool

type DeleteCategoryReq

type DeleteCategoryReq struct {
	// contains filtered or unexported fields
}

type DeleteCategoryReqBuilder

type DeleteCategoryReqBuilder struct {
	// contains filtered or unexported fields
}

func NewDeleteCategoryReqBuilder

func NewDeleteCategoryReqBuilder() *DeleteCategoryReqBuilder

func (*DeleteCategoryReqBuilder) Build

func (builder *DeleteCategoryReqBuilder) Build() *DeleteCategoryReq

func (*DeleteCategoryReqBuilder) Id

知识库分类ID

示例值:6948728206392295444

type DeleteCategoryResp

type DeleteCategoryResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteCategoryResp) Success

func (resp *DeleteCategoryResp) Success() bool

type DeleteFaqReq

type DeleteFaqReq struct {
	// contains filtered or unexported fields
}

type DeleteFaqReqBuilder

type DeleteFaqReqBuilder struct {
	// contains filtered or unexported fields
}

func NewDeleteFaqReqBuilder

func NewDeleteFaqReqBuilder() *DeleteFaqReqBuilder

func (*DeleteFaqReqBuilder) Build

func (builder *DeleteFaqReqBuilder) Build() *DeleteFaqReq

func (*DeleteFaqReqBuilder) Id

id

示例值:12345

type DeleteFaqResp

type DeleteFaqResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteFaqResp) Success

func (resp *DeleteFaqResp) Success() bool

type DeleteTicketCustomizedFieldReq

type DeleteTicketCustomizedFieldReq struct {
	// contains filtered or unexported fields
}

type DeleteTicketCustomizedFieldReqBuilder

type DeleteTicketCustomizedFieldReqBuilder struct {
	// contains filtered or unexported fields
}

func NewDeleteTicketCustomizedFieldReqBuilder

func NewDeleteTicketCustomizedFieldReqBuilder() *DeleteTicketCustomizedFieldReqBuilder

func (*DeleteTicketCustomizedFieldReqBuilder) Build

func (*DeleteTicketCustomizedFieldReqBuilder) TicketCustomizedFieldId

func (builder *DeleteTicketCustomizedFieldReqBuilder) TicketCustomizedFieldId(ticketCustomizedFieldId string) *DeleteTicketCustomizedFieldReqBuilder

工单自定义字段ID

示例值:6948728206392295444

type DeleteTicketCustomizedFieldResp

type DeleteTicketCustomizedFieldResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteTicketCustomizedFieldResp) Success

func (resp *DeleteTicketCustomizedFieldResp) Success() bool

type Event

type Event struct {
	Type    *string `json:"type,omitempty"`    // 事件类型
	Subtype *string `json:"subtype,omitempty"` // 事件子类型
}

type EventBuilder

type EventBuilder struct {
	// contains filtered or unexported fields
}

func NewEventBuilder

func NewEventBuilder() *EventBuilder

func (*EventBuilder) Build

func (builder *EventBuilder) Build() *Event

func (*EventBuilder) Subtype

func (builder *EventBuilder) Subtype(subtype string) *EventBuilder

事件子类型

示例值:ticket_message.created_v1

func (*EventBuilder) Type

func (builder *EventBuilder) Type(type_ string) *EventBuilder

事件类型

示例值:helpdesk.ticket_message

type ExecuteSendNotificationPathReqBodyBuilder

type ExecuteSendNotificationPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewExecuteSendNotificationPathReqBodyBuilder

func NewExecuteSendNotificationPathReqBodyBuilder() *ExecuteSendNotificationPathReqBodyBuilder

func (*ExecuteSendNotificationPathReqBodyBuilder) Build

func (*ExecuteSendNotificationPathReqBodyBuilder) SendAt

发送时间戳(毫秒)

示例值:1624326025000

type ExecuteSendNotificationReq

type ExecuteSendNotificationReq struct {
	Body *ExecuteSendNotificationReqBody `body:""`
	// contains filtered or unexported fields
}

type ExecuteSendNotificationReqBody

type ExecuteSendNotificationReqBody struct {
	SendAt *string `json:"send_at,omitempty"` // 发送时间戳(毫秒)
}

type ExecuteSendNotificationReqBodyBuilder

type ExecuteSendNotificationReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewExecuteSendNotificationReqBodyBuilder

func NewExecuteSendNotificationReqBodyBuilder() *ExecuteSendNotificationReqBodyBuilder

func (*ExecuteSendNotificationReqBodyBuilder) Build

func (*ExecuteSendNotificationReqBodyBuilder) SendAt

发送时间戳(毫秒)

示例值:1624326025000

type ExecuteSendNotificationReqBuilder

type ExecuteSendNotificationReqBuilder struct {
	// contains filtered or unexported fields
}

func NewExecuteSendNotificationReqBuilder

func NewExecuteSendNotificationReqBuilder() *ExecuteSendNotificationReqBuilder

func (*ExecuteSendNotificationReqBuilder) Body

审核通过后调用此接口设置推送时间,等待调度系统调度,发送消息

func (*ExecuteSendNotificationReqBuilder) Build

func (*ExecuteSendNotificationReqBuilder) NotificationId

func (builder *ExecuteSendNotificationReqBuilder) NotificationId(notificationId string) *ExecuteSendNotificationReqBuilder

创建接口返回的唯一id

示例值:6985032626234982420

type ExecuteSendNotificationResp

type ExecuteSendNotificationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*ExecuteSendNotificationResp) Success

func (resp *ExecuteSendNotificationResp) Success() bool

type Faq

type Faq struct {
	FaqId          *string     `json:"faq_id,omitempty"`          // 知识库ID
	Id             *string     `json:"id,omitempty"`              // 知识库旧版ID,请使用faq_id
	HelpdeskId     *string     `json:"helpdesk_id,omitempty"`     // 服务台ID
	Question       *string     `json:"question,omitempty"`        // 问题
	Answer         *string     `json:"answer,omitempty"`          // 答案
	AnswerRichtext []*Richtext `json:"answer_richtext,omitempty"` // 富文本答案
	CreateTime     *int        `json:"create_time,omitempty"`     // 创建时间
	UpdateTime     *int        `json:"update_time,omitempty"`     // 修改时间
	Categories     []*Category `json:"categories,omitempty"`      // 分类
	Tags           []string    `json:"tags,omitempty"`            // 相似问题列表
	ExpireTime     *int        `json:"expire_time,omitempty"`     // 失效时间
	UpdateUser     *TicketUser `json:"update_user,omitempty"`     // 更新用户
	CreateUser     *TicketUser `json:"create_user,omitempty"`     // 创建用户
}

type FaqBuilder

type FaqBuilder struct {
	// contains filtered or unexported fields
}

func NewFaqBuilder

func NewFaqBuilder() *FaqBuilder

func (*FaqBuilder) Answer

func (builder *FaqBuilder) Answer(answer string) *FaqBuilder

答案

示例值:答案

func (*FaqBuilder) AnswerRichtext

func (builder *FaqBuilder) AnswerRichtext(answerRichtext []*Richtext) *FaqBuilder

富文本答案

示例值:

func (*FaqBuilder) Build

func (builder *FaqBuilder) Build() *Faq

func (*FaqBuilder) Categories

func (builder *FaqBuilder) Categories(categories []*Category) *FaqBuilder

分类

示例值:

func (*FaqBuilder) CreateTime

func (builder *FaqBuilder) CreateTime(createTime int) *FaqBuilder

创建时间

示例值:1596379008

func (*FaqBuilder) CreateUser

func (builder *FaqBuilder) CreateUser(createUser *TicketUser) *FaqBuilder

创建用户

示例值:

func (*FaqBuilder) ExpireTime

func (builder *FaqBuilder) ExpireTime(expireTime int) *FaqBuilder

失效时间

示例值:1596379008

func (*FaqBuilder) FaqId

func (builder *FaqBuilder) FaqId(faqId string) *FaqBuilder

知识库ID

示例值:6936004780707807231

func (*FaqBuilder) HelpdeskId

func (builder *FaqBuilder) HelpdeskId(helpdeskId string) *FaqBuilder

服务台ID

示例值:6936004780707807251

func (*FaqBuilder) Id

func (builder *FaqBuilder) Id(id string) *FaqBuilder

知识库旧版ID,请使用faq_id

示例值:6936004780707807231

func (*FaqBuilder) Question

func (builder *FaqBuilder) Question(question string) *FaqBuilder

问题

示例值:问题

func (*FaqBuilder) Tags

func (builder *FaqBuilder) Tags(tags []string) *FaqBuilder

相似问题列表

示例值:

func (*FaqBuilder) UpdateTime

func (builder *FaqBuilder) UpdateTime(updateTime int) *FaqBuilder

修改时间

示例值:1596379008

func (*FaqBuilder) UpdateUser

func (builder *FaqBuilder) UpdateUser(updateUser *TicketUser) *FaqBuilder

更新用户

示例值:

type FaqImageFaqReq

type FaqImageFaqReq struct {
	// contains filtered or unexported fields
}

type FaqImageFaqReqBuilder

type FaqImageFaqReqBuilder struct {
	// contains filtered or unexported fields
}

func NewFaqImageFaqReqBuilder

func NewFaqImageFaqReqBuilder() *FaqImageFaqReqBuilder

func (*FaqImageFaqReqBuilder) Build

func (builder *FaqImageFaqReqBuilder) Build() *FaqImageFaqReq

func (*FaqImageFaqReqBuilder) Id

知识库ID

示例值:12345

func (*FaqImageFaqReqBuilder) ImageKey

func (builder *FaqImageFaqReqBuilder) ImageKey(imageKey string) *FaqImageFaqReqBuilder

图像key

示例值:img_b07ffac0-19c1-48a3-afca-599f8ea825fj

type FaqImageFaqResp

type FaqImageFaqResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	File     io.Reader `json:"-"`
	FileName string    `json:"-"`
}

func (*FaqImageFaqResp) Success

func (resp *FaqImageFaqResp) Success() bool

func (*FaqImageFaqResp) WriteFile

func (resp *FaqImageFaqResp) WriteFile(fileName string) error

type FaqUpdateInfo

type FaqUpdateInfo struct {
	CategoryId     *string  `json:"category_id,omitempty"`     // 知识库分类ID
	Question       *string  `json:"question,omitempty"`        // 问题
	Answer         *string  `json:"answer,omitempty"`          // 答案
	AnswerRichtext *string  `json:"answer_richtext,omitempty"` // 富文本答案和答案必须有一个必填。Json Array格式,富文本结构请见[了解更多: 富文本](/ssl:ttdoc/ukTMukTMukTM/uITM0YjLyEDN24iMxQjN)
	Tags           []string `json:"tags,omitempty"`            // 相似问题
}

type FaqUpdateInfoBuilder

type FaqUpdateInfoBuilder struct {
	// contains filtered or unexported fields
}

func NewFaqUpdateInfoBuilder

func NewFaqUpdateInfoBuilder() *FaqUpdateInfoBuilder

func (*FaqUpdateInfoBuilder) Answer

func (builder *FaqUpdateInfoBuilder) Answer(answer string) *FaqUpdateInfoBuilder

答案

示例值:答案

func (*FaqUpdateInfoBuilder) AnswerRichtext

func (builder *FaqUpdateInfoBuilder) AnswerRichtext(answerRichtext string) *FaqUpdateInfoBuilder

富文本答案和答案必须有一个必填。Json Array格式,富文本结构请见[了解更多: 富文本](/ssl:ttdoc/ukTMukTMukTM/uITM0YjLyEDN24iMxQjN)

示例值:[{; "content": "这只是一个测试,医保问题",; "type": "text"; }]

func (*FaqUpdateInfoBuilder) Build

func (builder *FaqUpdateInfoBuilder) Build() *FaqUpdateInfo

func (*FaqUpdateInfoBuilder) CategoryId

func (builder *FaqUpdateInfoBuilder) CategoryId(categoryId string) *FaqUpdateInfoBuilder

知识库分类ID

示例值:6836004780707807251

func (*FaqUpdateInfoBuilder) Question

func (builder *FaqUpdateInfoBuilder) Question(question string) *FaqUpdateInfoBuilder

问题

示例值:问题

func (*FaqUpdateInfoBuilder) Tags

func (builder *FaqUpdateInfoBuilder) Tags(tags []string) *FaqUpdateInfoBuilder

相似问题

示例值:["tag1","tag2","tag3"]

type GetAgentSchedulesReq

type GetAgentSchedulesReq struct {
	// contains filtered or unexported fields
}

type GetAgentSchedulesReqBuilder

type GetAgentSchedulesReqBuilder struct {
	// contains filtered or unexported fields
}

func NewGetAgentSchedulesReqBuilder

func NewGetAgentSchedulesReqBuilder() *GetAgentSchedulesReqBuilder

func (*GetAgentSchedulesReqBuilder) AgentId

客服 id

示例值: 客服 id

func (*GetAgentSchedulesReqBuilder) Build

type GetAgentSchedulesResp

type GetAgentSchedulesResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetAgentSchedulesRespData `json:"data"` // 业务数据
}

func (*GetAgentSchedulesResp) Success

func (resp *GetAgentSchedulesResp) Success() bool

type GetAgentSchedulesRespData

type GetAgentSchedulesRespData struct {
	AgentSchedule *AgentSchedule `json:"agent_schedule,omitempty"` // 客服日程
}

type GetAgentSkillReq

type GetAgentSkillReq struct {
	// contains filtered or unexported fields
}

type GetAgentSkillReqBuilder

type GetAgentSkillReqBuilder struct {
	// contains filtered or unexported fields
}

func NewGetAgentSkillReqBuilder

func NewGetAgentSkillReqBuilder() *GetAgentSkillReqBuilder

func (*GetAgentSkillReqBuilder) AgentSkillId

func (builder *GetAgentSkillReqBuilder) AgentSkillId(agentSkillId string) *GetAgentSkillReqBuilder

agent skill id

示例值:6941215891786825756

func (*GetAgentSkillReqBuilder) Build

func (builder *GetAgentSkillReqBuilder) Build() *GetAgentSkillReq

type GetAgentSkillResp

type GetAgentSkillResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetAgentSkillRespData `json:"data"` // 业务数据
}

func (*GetAgentSkillResp) Success

func (resp *GetAgentSkillResp) Success() bool

type GetAgentSkillRespData

type GetAgentSkillRespData struct {
	AgentSkill *AgentSkill `json:"agent_skill,omitempty"` // 技能
}

type GetCategoryReq

type GetCategoryReq struct {
	// contains filtered or unexported fields
}

type GetCategoryReqBuilder

type GetCategoryReqBuilder struct {
	// contains filtered or unexported fields
}

func NewGetCategoryReqBuilder

func NewGetCategoryReqBuilder() *GetCategoryReqBuilder

func (*GetCategoryReqBuilder) Build

func (builder *GetCategoryReqBuilder) Build() *GetCategoryReq

func (*GetCategoryReqBuilder) Id

知识库分类ID

示例值:6948728206392295444

type GetCategoryResp

type GetCategoryResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetCategoryRespData `json:"data"` // 业务数据
}

func (*GetCategoryResp) Success

func (resp *GetCategoryResp) Success() bool

type GetCategoryRespData

type GetCategoryRespData struct {
	CategoryId *string `json:"category_id,omitempty"` // category id
	Id         *string `json:"id,omitempty"`          // category id, for backward compatibility
	Name       *string `json:"name,omitempty"`        // category name
	HelpdeskId *string `json:"helpdesk_id,omitempty"` // helpdesk id
	Language   *string `json:"language,omitempty"`    // category language
}

type GetFaqReq

type GetFaqReq struct {
	// contains filtered or unexported fields
}

type GetFaqReqBuilder

type GetFaqReqBuilder struct {
	// contains filtered or unexported fields
}

func NewGetFaqReqBuilder

func NewGetFaqReqBuilder() *GetFaqReqBuilder

func (*GetFaqReqBuilder) Build

func (builder *GetFaqReqBuilder) Build() *GetFaqReq

func (*GetFaqReqBuilder) Id

func (builder *GetFaqReqBuilder) Id(id string) *GetFaqReqBuilder

知识库ID

示例值:6856395634652479491

type GetFaqResp

type GetFaqResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetFaqRespData `json:"data"` // 业务数据
}

func (*GetFaqResp) Success

func (resp *GetFaqResp) Success() bool

type GetFaqRespData

type GetFaqRespData struct {
	Faq *Faq `json:"faq,omitempty"` // 知识库详情
}

type GetNotificationReq

type GetNotificationReq struct {
	// contains filtered or unexported fields
}

type GetNotificationReqBuilder

type GetNotificationReqBuilder struct {
	// contains filtered or unexported fields
}

func NewGetNotificationReqBuilder

func NewGetNotificationReqBuilder() *GetNotificationReqBuilder

func (*GetNotificationReqBuilder) Build

func (*GetNotificationReqBuilder) NotificationId

func (builder *GetNotificationReqBuilder) NotificationId(notificationId string) *GetNotificationReqBuilder

唯一ID

示例值:1624326025000

func (*GetNotificationReqBuilder) UserIdType

func (builder *GetNotificationReqBuilder) UserIdType(userIdType string) *GetNotificationReqBuilder

此次调用中使用的用户ID的类型

示例值:

type GetNotificationResp

type GetNotificationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetNotificationRespData `json:"data"` // 业务数据
}

func (*GetNotificationResp) Success

func (resp *GetNotificationResp) Success() bool

type GetNotificationRespData

type GetNotificationRespData struct {
	Notification    *Notification `json:"notification,omitempty"`      // push任务详情
	ApprovalAppLink *string       `json:"approval_app_link,omitempty"` // 审批链接
}

type GetTicketCustomizedFieldReq

type GetTicketCustomizedFieldReq struct {
	// contains filtered or unexported fields
}

type GetTicketCustomizedFieldReqBuilder

type GetTicketCustomizedFieldReqBuilder struct {
	// contains filtered or unexported fields
}

func NewGetTicketCustomizedFieldReqBuilder

func NewGetTicketCustomizedFieldReqBuilder() *GetTicketCustomizedFieldReqBuilder

func (*GetTicketCustomizedFieldReqBuilder) Build

func (*GetTicketCustomizedFieldReqBuilder) TicketCustomizedFieldId

func (builder *GetTicketCustomizedFieldReqBuilder) TicketCustomizedFieldId(ticketCustomizedFieldId string) *GetTicketCustomizedFieldReqBuilder

工单自定义字段ID

示例值:6948728206392295444

type GetTicketCustomizedFieldResp

type GetTicketCustomizedFieldResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetTicketCustomizedFieldRespData `json:"data"` // 业务数据
}

func (*GetTicketCustomizedFieldResp) Success

func (resp *GetTicketCustomizedFieldResp) Success() bool

type GetTicketCustomizedFieldRespData

type GetTicketCustomizedFieldRespData struct {
	TicketCustomizedFieldId *string     `json:"ticket_customized_field_id,omitempty"` // ticket customized field id
	HelpdeskId              *string     `json:"helpdesk_id,omitempty"`                // help desk id
	KeyName                 *string     `json:"key_name,omitempty"`                   // key name
	DisplayName             *string     `json:"display_name,omitempty"`               // display name
	Position                *string     `json:"position,omitempty"`                   // the position of ticket customized field in the page
	FieldType               *string     `json:"field_type,omitempty"`                 // type of the field
	Description             *string     `json:"description,omitempty"`                // description of the field
	Visible                 *bool       `json:"visible,omitempty"`                    // if the field is visible
	Editable                *bool       `json:"editable,omitempty"`                   // if the field is editable
	Required                *bool       `json:"required,omitempty"`                   // if the field is required
	CreatedAt               *string     `json:"created_at,omitempty"`                 // the time when the field is created
	UpdatedAt               *string     `json:"updated_at,omitempty"`                 // the time when the field is updated
	CreatedBy               *TicketUser `json:"created_by,omitempty"`                 // the user who created the ticket customized field
	UpdatedBy               *TicketUser `json:"updated_by,omitempty"`                 // the user who recently updated the ticket customized field
	DropdownAllowMultiple   *bool       `json:"dropdown_allow_multiple,omitempty"`    // if the dropdown field supports multi-select
}

type GetTicketReq

type GetTicketReq struct {
	// contains filtered or unexported fields
}

type GetTicketReqBuilder

type GetTicketReqBuilder struct {
	// contains filtered or unexported fields
}

func NewGetTicketReqBuilder

func NewGetTicketReqBuilder() *GetTicketReqBuilder

func (*GetTicketReqBuilder) Build

func (builder *GetTicketReqBuilder) Build() *GetTicketReq

func (*GetTicketReqBuilder) TicketId

func (builder *GetTicketReqBuilder) TicketId(ticketId string) *GetTicketReqBuilder

ticket id

示例值:123456

type GetTicketResp

type GetTicketResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetTicketRespData `json:"data"` // 业务数据
}

func (*GetTicketResp) Success

func (resp *GetTicketResp) Success() bool

type GetTicketRespData

type GetTicketRespData struct {
	Ticket *Ticket `json:"ticket,omitempty"` // 工单详情
}

type HelpdeskService

type HelpdeskService struct {
	Agent                 *agent                 // 客服
	AgentSchedules        *agentSchedules        // 客服工作日程
	AgentSchedule         *agentSchedule         // agent_schedule
	AgentSkill            *agentSkill            // 客服技能
	AgentSkillRule        *agentSkillRule        // 客服技能规则
	BotMessage            *botMessage            // 机器人消息
	Category              *category              // 知识库分类
	Event                 *event                 // 事件订阅
	Faq                   *faq                   // 知识库
	Notification          *notification          // 推送中心
	Ticket                *ticket                // 工单
	TicketMessage         *ticketMessage         // 工单消息
	TicketCustomizedField *ticketCustomizedField // 工单自定义字段
	// contains filtered or unexported fields
}

func NewService

func NewService(config *larkcore.Config) *HelpdeskService

type ListAgentScheduleReq

type ListAgentScheduleReq struct {
	// contains filtered or unexported fields
}

type ListAgentScheduleReqBuilder

type ListAgentScheduleReqBuilder struct {
	// contains filtered or unexported fields
}

func NewListAgentScheduleReqBuilder

func NewListAgentScheduleReqBuilder() *ListAgentScheduleReqBuilder

func (*ListAgentScheduleReqBuilder) Build

func (*ListAgentScheduleReqBuilder) Status

func (builder *ListAgentScheduleReqBuilder) Status(status []int) *ListAgentScheduleReqBuilder

筛选条件, 1 - online客服, 2 - offline(手动)客服, 3 - off duty(下班)客服, 4 - 移除客服

示例值:status=1&status=2

type ListAgentScheduleResp

type ListAgentScheduleResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListAgentScheduleRespData `json:"data"` // 业务数据
}

func (*ListAgentScheduleResp) Success

func (resp *ListAgentScheduleResp) Success() bool

type ListAgentScheduleRespData

type ListAgentScheduleRespData struct {
	AgentSchedules []*AgentSchedule `json:"agent_schedules,omitempty"` // 客服列表
}

type ListAgentSkillResp

type ListAgentSkillResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListAgentSkillRespData `json:"data"` // 业务数据
}

func (*ListAgentSkillResp) Success

func (resp *ListAgentSkillResp) Success() bool

type ListAgentSkillRespData

type ListAgentSkillRespData struct {
	AgentSkills []*AgentSkill `json:"agent_skills,omitempty"` // 客服技能列表
}

type ListAgentSkillRuleResp

type ListAgentSkillRuleResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListAgentSkillRuleRespData `json:"data"` // 业务数据
}

func (*ListAgentSkillRuleResp) Success

func (resp *ListAgentSkillRuleResp) Success() bool

type ListAgentSkillRuleRespData

type ListAgentSkillRuleRespData struct {
	Rules []*AgentSkillRule `json:"rules,omitempty"` // rules列表
}

type ListCategoryReq

type ListCategoryReq struct {
	// contains filtered or unexported fields
}

type ListCategoryReqBuilder

type ListCategoryReqBuilder struct {
	// contains filtered or unexported fields
}

func NewListCategoryReqBuilder

func NewListCategoryReqBuilder() *ListCategoryReqBuilder

func (*ListCategoryReqBuilder) Asc

顺序。true: 正序;false:反序

示例值:true

func (*ListCategoryReqBuilder) Build

func (builder *ListCategoryReqBuilder) Build() *ListCategoryReq

func (*ListCategoryReqBuilder) Lang

知识库分类语言

示例值:zh_cn

func (*ListCategoryReqBuilder) OrderBy

func (builder *ListCategoryReqBuilder) OrderBy(orderBy int) *ListCategoryReqBuilder

排序键。1: 根据知识库分类更新时间排序

示例值:1

type ListCategoryResp

type ListCategoryResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListCategoryRespData `json:"data"` // 业务数据
}

func (*ListCategoryResp) Success

func (resp *ListCategoryResp) Success() bool

type ListCategoryRespData

type ListCategoryRespData struct {
	Categories []*Category `json:"categories,omitempty"` // 知识库分类列表
}

type ListFaqIterator

type ListFaqIterator struct {
	// contains filtered or unexported fields
}

func (*ListFaqIterator) Next

func (iterator *ListFaqIterator) Next() (bool, *Faq, error)

func (*ListFaqIterator) NextPageToken

func (iterator *ListFaqIterator) NextPageToken() *string

type ListFaqReq

type ListFaqReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListFaqReqBuilder

type ListFaqReqBuilder struct {
	// contains filtered or unexported fields
}

func NewListFaqReqBuilder

func NewListFaqReqBuilder() *ListFaqReqBuilder

func (*ListFaqReqBuilder) Build

func (builder *ListFaqReqBuilder) Build() *ListFaqReq

func (*ListFaqReqBuilder) CategoryId

func (builder *ListFaqReqBuilder) CategoryId(categoryId string) *ListFaqReqBuilder
知识库分类ID

示例值:6856395522433908739

func (*ListFaqReqBuilder) Limit

func (builder *ListFaqReqBuilder) Limit(limit int) *ListFaqReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*ListFaqReqBuilder) PageSize

func (builder *ListFaqReqBuilder) PageSize(pageSize int) *ListFaqReqBuilder

示例值:10

func (*ListFaqReqBuilder) PageToken

func (builder *ListFaqReqBuilder) PageToken(pageToken string) *ListFaqReqBuilder

示例值:6856395634652479491

func (*ListFaqReqBuilder) Search

func (builder *ListFaqReqBuilder) Search(search string) *ListFaqReqBuilder

搜索条件: 关键词,匹配问题标题,问题关键字,用户姓名

示例值:点餐

func (*ListFaqReqBuilder) Status

func (builder *ListFaqReqBuilder) Status(status string) *ListFaqReqBuilder

搜索条件: 知识库状态 1:在线 0:删除,可恢复 2:删除,不可恢复

示例值:1

type ListFaqResp

type ListFaqResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListFaqRespData `json:"data"` // 业务数据
}

func (*ListFaqResp) Success

func (resp *ListFaqResp) Success() bool

type ListFaqRespData

type ListFaqRespData struct {
	HasMore   *bool   `json:"has_more,omitempty"`   // if there's next page
	PageToken *string `json:"page_token,omitempty"` // the next page token
	PageSize  *int    `json:"page_size,omitempty"`  // 实际返回的FAQ数量
	Total     *int    `json:"total,omitempty"`      // 总数
	Items     []*Faq  `json:"items,omitempty"`      // 知识库列表
}

type ListTicketCustomizedFieldPathReqBodyBuilder

type ListTicketCustomizedFieldPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewListTicketCustomizedFieldPathReqBodyBuilder

func NewListTicketCustomizedFieldPathReqBodyBuilder() *ListTicketCustomizedFieldPathReqBodyBuilder

func (*ListTicketCustomizedFieldPathReqBodyBuilder) Build

func (*ListTicketCustomizedFieldPathReqBodyBuilder) Visible

是否可见

示例值:true

type ListTicketCustomizedFieldReq

type ListTicketCustomizedFieldReq struct {
	Body *ListTicketCustomizedFieldReqBody `body:""`
	// contains filtered or unexported fields
}

type ListTicketCustomizedFieldReqBody

type ListTicketCustomizedFieldReqBody struct {
	Visible *bool `json:"visible,omitempty"` // 是否可见
}

type ListTicketCustomizedFieldReqBodyBuilder

type ListTicketCustomizedFieldReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewListTicketCustomizedFieldReqBodyBuilder

func NewListTicketCustomizedFieldReqBodyBuilder() *ListTicketCustomizedFieldReqBodyBuilder

func (*ListTicketCustomizedFieldReqBodyBuilder) Build

func (*ListTicketCustomizedFieldReqBodyBuilder) Visible

是否可见

示例值:true

type ListTicketCustomizedFieldReqBuilder

type ListTicketCustomizedFieldReqBuilder struct {
	// contains filtered or unexported fields
}

func NewListTicketCustomizedFieldReqBuilder

func NewListTicketCustomizedFieldReqBuilder() *ListTicketCustomizedFieldReqBuilder

func (*ListTicketCustomizedFieldReqBuilder) Body

该接口用于获取全部工单自定义字段。

func (*ListTicketCustomizedFieldReqBuilder) Build

func (*ListTicketCustomizedFieldReqBuilder) PageSize

示例值:10;默认为20

func (*ListTicketCustomizedFieldReqBuilder) PageToken

示例值:6948728206392295444

type ListTicketCustomizedFieldResp

type ListTicketCustomizedFieldResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListTicketCustomizedFieldRespData `json:"data"` // 业务数据
}

func (*ListTicketCustomizedFieldResp) Success

func (resp *ListTicketCustomizedFieldResp) Success() bool

type ListTicketCustomizedFieldRespData

type ListTicketCustomizedFieldRespData struct {
	HasMore       *bool                    `json:"has_more,omitempty"`        // whether there is more data
	NextPageToken *string                  `json:"next_page_token,omitempty"` // 下一分页标识
	Items         []*TicketCustomizedField `json:"items,omitempty"`           // 工单自定义字段列表
}

type ListTicketMessageReq

type ListTicketMessageReq struct {
	// contains filtered or unexported fields
}

type ListTicketMessageReqBuilder

type ListTicketMessageReqBuilder struct {
	// contains filtered or unexported fields
}

func NewListTicketMessageReqBuilder

func NewListTicketMessageReqBuilder() *ListTicketMessageReqBuilder

func (*ListTicketMessageReqBuilder) Build

func (*ListTicketMessageReqBuilder) Page

页数ID

示例值:1

func (*ListTicketMessageReqBuilder) PageSize

func (builder *ListTicketMessageReqBuilder) PageSize(pageSize int) *ListTicketMessageReqBuilder

消息数量,最大200,默认20

示例值:10

func (*ListTicketMessageReqBuilder) TicketId

func (builder *ListTicketMessageReqBuilder) TicketId(ticketId string) *ListTicketMessageReqBuilder

工单ID

示例值:6948728206392295444

func (*ListTicketMessageReqBuilder) TimeEnd

func (builder *ListTicketMessageReqBuilder) TimeEnd(timeEnd int) *ListTicketMessageReqBuilder

结束时间

示例值:1617960687

func (*ListTicketMessageReqBuilder) TimeStart

func (builder *ListTicketMessageReqBuilder) TimeStart(timeStart int) *ListTicketMessageReqBuilder

起始时间

示例值:1617960686

type ListTicketMessageResp

type ListTicketMessageResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListTicketMessageRespData `json:"data"` // 业务数据
}

func (*ListTicketMessageResp) Success

func (resp *ListTicketMessageResp) Success() bool

type ListTicketMessageRespData

type ListTicketMessageRespData struct {
	Messages []*TicketMessage `json:"messages,omitempty"` // 工单消息列表
	Total    *int             `json:"total,omitempty"`    // 消息总数
}

type ListTicketReq

type ListTicketReq struct {
	// contains filtered or unexported fields
}

type ListTicketReqBuilder

type ListTicketReqBuilder struct {
	// contains filtered or unexported fields
}

func NewListTicketReqBuilder

func NewListTicketReqBuilder() *ListTicketReqBuilder

func (*ListTicketReqBuilder) AgentId

func (builder *ListTicketReqBuilder) AgentId(agentId string) *ListTicketReqBuilder

搜索条件: 客服id

示例值:ou_b5de90429xxx

func (*ListTicketReqBuilder) Build

func (builder *ListTicketReqBuilder) Build() *ListTicketReq

func (*ListTicketReqBuilder) Channel

func (builder *ListTicketReqBuilder) Channel(channel int) *ListTicketReqBuilder

搜索条件: 工单渠道

示例值:0

func (*ListTicketReqBuilder) ClosedById

func (builder *ListTicketReqBuilder) ClosedById(closedById string) *ListTicketReqBuilder

搜索条件: 关单客服id

示例值:ou_b5de90429xxx

func (*ListTicketReqBuilder) CreateTimeEnd

func (builder *ListTicketReqBuilder) CreateTimeEnd(createTimeEnd int) *ListTicketReqBuilder

搜索条件: 工单创建结束时间 ms (也需要填上create_time_start),相当于<=create_time_end

示例值:1616920429000

func (*ListTicketReqBuilder) CreateTimeStart

func (builder *ListTicketReqBuilder) CreateTimeStart(createTimeStart int) *ListTicketReqBuilder

搜索条件: 工单创建起始时间 ms (也需要填上create_time_end),相当于>=create_time_start

示例值:1616920429000

func (*ListTicketReqBuilder) GuestId

func (builder *ListTicketReqBuilder) GuestId(guestId string) *ListTicketReqBuilder

搜索条件: 用户id

示例值:ou_b5de90429xxx

func (*ListTicketReqBuilder) GuestName

func (builder *ListTicketReqBuilder) GuestName(guestName string) *ListTicketReqBuilder

搜索条件: 用户名称

示例值:abc

func (*ListTicketReqBuilder) Page

func (builder *ListTicketReqBuilder) Page(page int) *ListTicketReqBuilder

页数, 从1开始, 默认为1

示例值:1

func (*ListTicketReqBuilder) PageSize

func (builder *ListTicketReqBuilder) PageSize(pageSize int) *ListTicketReqBuilder

当前页大小,最大为200, 默认为20。分页查询最多累计返回一万条数据,超过一万条请更改查询条件,推荐通过时间查询。

示例值:20

func (*ListTicketReqBuilder) Score

func (builder *ListTicketReqBuilder) Score(score int) *ListTicketReqBuilder

搜索条件: 工单评分

示例值:1

func (*ListTicketReqBuilder) Solved

func (builder *ListTicketReqBuilder) Solved(solved int) *ListTicketReqBuilder

搜索条件: 工单是否解决 1:没解决 2:已解决

示例值:1

func (*ListTicketReqBuilder) StatusList

func (builder *ListTicketReqBuilder) StatusList(statusList []int) *ListTicketReqBuilder

搜索条件: 工单状态列表

示例值:1

func (*ListTicketReqBuilder) Tags

func (builder *ListTicketReqBuilder) Tags(tags []string) *ListTicketReqBuilder

搜索条件: 用户标签列表

示例值:备注

func (*ListTicketReqBuilder) TicketId

func (builder *ListTicketReqBuilder) TicketId(ticketId string) *ListTicketReqBuilder

搜索条件:工单ID

示例值:123456

func (*ListTicketReqBuilder) Type

func (builder *ListTicketReqBuilder) Type(type_ int) *ListTicketReqBuilder

搜索条件: 工单类型 1:bot 2:人工

示例值:1

func (*ListTicketReqBuilder) UpdateTimeEnd

func (builder *ListTicketReqBuilder) UpdateTimeEnd(updateTimeEnd int) *ListTicketReqBuilder

搜索条件: 工单修改结束时间 ms(也需要填上update_time_start)

示例值:1616920429000

func (*ListTicketReqBuilder) UpdateTimeStart

func (builder *ListTicketReqBuilder) UpdateTimeStart(updateTimeStart int) *ListTicketReqBuilder

搜索条件: 工单修改起始时间 ms (也需要填上update_time_end)

示例值:1616920429000

type ListTicketResp

type ListTicketResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListTicketRespData `json:"data"` // 业务数据
}

func (*ListTicketResp) Success

func (resp *ListTicketResp) Success() bool

type ListTicketRespData

type ListTicketRespData struct {
	Total   *int      `json:"total,omitempty"`   // 工单总数 (单次请求最大为10000条)
	Tickets []*Ticket `json:"tickets,omitempty"` // 工单
}

type Notification

type Notification struct {
	Id                          *string                   `json:"id,omitempty"`                              // 非必填,创建成功后返回
	JobName                     *string                   `json:"job_name,omitempty"`                        // 必填,任务名称
	Status                      *int                      `json:"status,omitempty"`                          // 非必填,创建成功后返回
	CreateUser                  *NotificationUser         `json:"create_user,omitempty"`                     // 非必填,创建人
	CreatedAt                   *string                   `json:"created_at,omitempty"`                      // 非必填,创建时间(毫秒时间戳)
	UpdateUser                  *NotificationUser         `json:"update_user,omitempty"`                     // 非必填,更新用户
	UpdatedAt                   *string                   `json:"updated_at,omitempty"`                      // 非必填,更新时间(毫秒时间戳)
	TargetUserCount             *int                      `json:"target_user_count,omitempty"`               // 非必填,目标推送用户总数
	SentUserCount               *int                      `json:"sent_user_count,omitempty"`                 // 非必填,已推送用户总数
	ReadUserCount               *int                      `json:"read_user_count,omitempty"`                 // 非必填,已读用户总数
	SendAt                      *string                   `json:"send_at,omitempty"`                         // 非必填,推送任务触发时间(毫秒时间戳)
	PushContent                 *string                   `json:"push_content,omitempty"`                    // 必填,推送内容,详见:https://open.feishu.cn/tool/cardbuilder?from=howtoguide
	PushType                    *int                      `json:"push_type,omitempty"`                       // 必填,;0(定时推送:push_scope不能等于3) 1(新人入职推送:push_scope必须等于1或者3;new_staff_scope_type不能为空)
	PushScopeType               *int                      `json:"push_scope_type,omitempty"`                 // 必填,;推送范围(服务台私信) 0:组织内全部成员(user_list和department_list必须为空) 1:不推送任何成员(user_list和department_list必须为空,chat_list不可为空) 2:推送到部分成员(user_list或department_list不能为空) 3:入职新人 以上四种状态,chat_list都相对独立,只有在推送范围为1时,必须需要设置chat_list
	NewStaffScopeType           *int                      `json:"new_staff_scope_type,omitempty"`            // 非必填,;新人入职范围类型(push_type为1时生效) 0:组织内所有新人 1:组织内特定的部门(new_staff_scope_department_list 字段不能为空)
	NewStaffScopeDepartmentList []*NotificationDepartment `json:"new_staff_scope_department_list,omitempty"` // 非必填,新人入职生效部门列表
	UserList                    []*NotificationUser       `json:"user_list,omitempty"`                       // 非必填,push推送到成员列表
	DepartmentList              []*NotificationDepartment `json:"department_list,omitempty"`                 // 非必填,push推送到的部门信息列表
	ChatList                    []*NotificationChat       `json:"chat_list,omitempty"`                       // 非必填,push推送到的会话列表(群)
	Ext                         *string                   `json:"ext,omitempty"`                             // 非必填,预留扩展字段
}

type NotificationBuilder

type NotificationBuilder struct {
	// contains filtered or unexported fields
}

func NewNotificationBuilder

func NewNotificationBuilder() *NotificationBuilder

func (*NotificationBuilder) Build

func (builder *NotificationBuilder) Build() *Notification

func (*NotificationBuilder) ChatList

func (builder *NotificationBuilder) ChatList(chatList []*NotificationChat) *NotificationBuilder

非必填,push推送到的会话列表(群)

示例值:[{"chat_id":"oc_7c1a2815c9846b5e518b950de0e62de8"}]

func (*NotificationBuilder) CreateUser

func (builder *NotificationBuilder) CreateUser(createUser *NotificationUser) *NotificationBuilder

非必填,创建人

示例值:{"avatar_url":"","name":"","user_id":"ou_7277fd1262bfafc363d5b2a1f9c2ac90"}

func (*NotificationBuilder) CreatedAt

func (builder *NotificationBuilder) CreatedAt(createdAt string) *NotificationBuilder

非必填,创建时间(毫秒时间戳)

示例值:1626332244719

func (*NotificationBuilder) DepartmentList

func (builder *NotificationBuilder) DepartmentList(departmentList []*NotificationDepartment) *NotificationBuilder

非必填,push推送到的部门信息列表

示例值:[{"department_id":"od_7c1a2815c9846b5e518b950de0e62de8"}]

func (*NotificationBuilder) Ext

func (builder *NotificationBuilder) Ext(ext string) *NotificationBuilder

非必填,预留扩展字段

示例值:{}

func (*NotificationBuilder) Id

非必填,创建成功后返回

示例值:6981801914270744596

func (*NotificationBuilder) JobName

func (builder *NotificationBuilder) JobName(jobName string) *NotificationBuilder

必填,任务名称

示例值:测试推送任务

func (*NotificationBuilder) NewStaffScopeDepartmentList

func (builder *NotificationBuilder) NewStaffScopeDepartmentList(newStaffScopeDepartmentList []*NotificationDepartment) *NotificationBuilder

非必填,新人入职生效部门列表

示例值:[{"department_id":"od_7c1a2815c9846b5e518b950de0e62de8"}]

func (*NotificationBuilder) NewStaffScopeType

func (builder *NotificationBuilder) NewStaffScopeType(newStaffScopeType int) *NotificationBuilder

非必填,;新人入职范围类型(push_type为1时生效) 0:组织内所有新人 1:组织内特定的部门(new_staff_scope_department_list 字段不能为空)

示例值:0

func (*NotificationBuilder) PushContent

func (builder *NotificationBuilder) PushContent(pushContent string) *NotificationBuilder

必填,推送内容,详见:https://open.feishu.cn/tool/cardbuilder?from=howtoguide

示例值:{ \"config\": { \"wide_screen_mode\": true }, \"elements\": [ { \"tag\": \"div\", \"text\": { \"tag\": \"lark_md\", \"content\": \"[飞书](https://www.feishu.cn)整合即时沟通、日历、音视频会议、云文档、云盘、工作台等功能于一体,成就组织和个人,更高效、更愉悦。\" } } ] }

func (*NotificationBuilder) PushScopeType

func (builder *NotificationBuilder) PushScopeType(pushScopeType int) *NotificationBuilder

必填,;推送范围(服务台私信) 0:组织内全部成员(user_list和department_list必须为空) 1:不推送任何成员(user_list和department_list必须为空,chat_list不可为空) 2:推送到部分成员(user_list或department_list不能为空) 3:入职新人 以上四种状态,chat_list都相对独立,只有在推送范围为1时,必须需要设置chat_list

示例值:0

func (*NotificationBuilder) PushType

func (builder *NotificationBuilder) PushType(pushType int) *NotificationBuilder

必填,;0(定时推送:push_scope不能等于3) 1(新人入职推送:push_scope必须等于1或者3;new_staff_scope_type不能为空)

示例值:0

func (*NotificationBuilder) ReadUserCount

func (builder *NotificationBuilder) ReadUserCount(readUserCount int) *NotificationBuilder

非必填,已读用户总数

示例值:1

func (*NotificationBuilder) SendAt

func (builder *NotificationBuilder) SendAt(sendAt string) *NotificationBuilder

非必填,推送任务触发时间(毫秒时间戳)

示例值:1626332244719

func (*NotificationBuilder) SentUserCount

func (builder *NotificationBuilder) SentUserCount(sentUserCount int) *NotificationBuilder

非必填,已推送用户总数

示例值:1

func (*NotificationBuilder) Status

func (builder *NotificationBuilder) Status(status int) *NotificationBuilder

非必填,创建成功后返回

示例值:0

func (*NotificationBuilder) TargetUserCount

func (builder *NotificationBuilder) TargetUserCount(targetUserCount int) *NotificationBuilder

非必填,目标推送用户总数

示例值:1

func (*NotificationBuilder) UpdateUser

func (builder *NotificationBuilder) UpdateUser(updateUser *NotificationUser) *NotificationBuilder

非必填,更新用户

示例值:{"avatar_url":"","name":"","user_id":"ou_7277fd1262bfafc363d5b2a1f9c2ac90"}

func (*NotificationBuilder) UpdatedAt

func (builder *NotificationBuilder) UpdatedAt(updatedAt string) *NotificationBuilder

非必填,更新时间(毫秒时间戳)

示例值:1626332244719

func (*NotificationBuilder) UserList

func (builder *NotificationBuilder) UserList(userList []*NotificationUser) *NotificationBuilder

非必填,push推送到成员列表

示例值:[{"user_id":"ou_7277fd1262bfafc363d5b2a1f9c2ac90"}]

type NotificationChat

type NotificationChat struct {
	ChatId *string `json:"chat_id,omitempty"` // 非必填,会话ID
	Name   *string `json:"name,omitempty"`    // 非必填,会话名称
}

type NotificationChatBuilder

type NotificationChatBuilder struct {
	// contains filtered or unexported fields
}

func NewNotificationChatBuilder

func NewNotificationChatBuilder() *NotificationChatBuilder

func (*NotificationChatBuilder) Build

func (builder *NotificationChatBuilder) Build() *NotificationChat

func (*NotificationChatBuilder) ChatId

func (builder *NotificationChatBuilder) ChatId(chatId string) *NotificationChatBuilder

非必填,会话ID

示例值:oc_7277fd1262bfafc363d5b2a1f9c2ac90

func (*NotificationChatBuilder) Name

非必填,会话名称

示例值:测试群聊

type NotificationDepartment

type NotificationDepartment struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门ID
	Name         *string `json:"name,omitempty"`          // 非必填,部门名称
}

type NotificationDepartmentBuilder

type NotificationDepartmentBuilder struct {
	// contains filtered or unexported fields
}

func NewNotificationDepartmentBuilder

func NewNotificationDepartmentBuilder() *NotificationDepartmentBuilder

func (*NotificationDepartmentBuilder) Build

func (*NotificationDepartmentBuilder) DepartmentId

func (builder *NotificationDepartmentBuilder) DepartmentId(departmentId string) *NotificationDepartmentBuilder

部门ID

示例值:od_7277fd1262bfafc363d5b2a1f9c2ac90

func (*NotificationDepartmentBuilder) Name

非必填,部门名称

示例值:测试部门

type NotificationUser

type NotificationUser struct {
	UserId    *string `json:"user_id,omitempty"`    // 非必填,用户id
	AvatarUrl *string `json:"avatar_url,omitempty"` // 非必填,头像地址
	Name      *string `json:"name,omitempty"`       // 非必填,用户名称
}

type NotificationUserBuilder

type NotificationUserBuilder struct {
	// contains filtered or unexported fields
}

func NewNotificationUserBuilder

func NewNotificationUserBuilder() *NotificationUserBuilder

func (*NotificationUserBuilder) AvatarUrl

func (builder *NotificationUserBuilder) AvatarUrl(avatarUrl string) *NotificationUserBuilder

非必填,头像地址

示例值:http://*.com/*.png

func (*NotificationUserBuilder) Build

func (builder *NotificationUserBuilder) Build() *NotificationUser

func (*NotificationUserBuilder) Name

非必填,用户名称

示例值:test

func (*NotificationUserBuilder) UserId

func (builder *NotificationUserBuilder) UserId(userId string) *NotificationUserBuilder

非必填,用户id

示例值:ou_7277fd1262bfafc363d5b2a1f9c2ac90

type P2NotificationApproveV1

type P2NotificationApproveV1 struct {
	*larkevent.EventV2Base                              // 事件基础数据
	*larkevent.EventReq                                 // 请求原生数据
	Event                  *P2NotificationApproveV1Data `json:"event"` // 事件内容
}

func (*P2NotificationApproveV1) RawReq

func (m *P2NotificationApproveV1) RawReq(req *larkevent.EventReq)

type P2NotificationApproveV1Data

type P2NotificationApproveV1Data struct {
	NotificationId *string `json:"notification_id,omitempty"` // 推送任务唯一ID
	HelpdeskId     *string `json:"helpdesk_id,omitempty"`     // 服务台唯一ID
	ApproveStatus  *string `json:"approve_status,omitempty"`  // REJECTED(审核不通过);APPROVED(审核通过);CANCELED(取消审核);DELETED(删除审核)
}

type P2NotificationApproveV1Handler

type P2NotificationApproveV1Handler struct {
	// contains filtered or unexported fields
}

消息处理器定义

func (*P2NotificationApproveV1Handler) Event

func (h *P2NotificationApproveV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2NotificationApproveV1Handler) Handle

func (h *P2NotificationApproveV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2TicketCreatedV1

type P2TicketCreatedV1 struct {
	*larkevent.EventV2Base                        // 事件基础数据
	*larkevent.EventReq                           // 请求原生数据
	Event                  *P2TicketCreatedV1Data `json:"event"` // 事件内容
}

func (*P2TicketCreatedV1) RawReq

func (m *P2TicketCreatedV1) RawReq(req *larkevent.EventReq)

type P2TicketCreatedV1Data

type P2TicketCreatedV1Data struct {
	TicketId         *string                       `json:"ticket_id,omitempty"`         // ticket id
	HelpdeskId       *string                       `json:"helpdesk_id,omitempty"`       // helpdesk id
	Guest            *TicketUserEvent              `json:"guest,omitempty"`             // guest of this ticket
	Stage            *int                          `json:"stage,omitempty"`             // ticket stage
	Status           *int                          `json:"status,omitempty"`            // ticket status
	Score            *int                          `json:"score,omitempty"`             // ticket score
	CreatedAt        *int                          `json:"created_at,omitempty"`        // the time when the ticket is created
	UpdatedAt        *int                          `json:"updated_at,omitempty"`        // the time when the ticket is updated
	ClosedAt         *int                          `json:"closed_at,omitempty"`         // the time when the ticket is closed
	Channel          *int                          `json:"channel,omitempty"`           // the ticket channel
	Solve            *int                          `json:"solve,omitempty"`             // if ticket is solved
	CustomizedFields []*CustomizedFieldDisplayItem `json:"customized_fields,omitempty"` // ticket customized fields
	ChatId           *string                       `json:"chat_id,omitempty"`           //
}

type P2TicketCreatedV1Handler

type P2TicketCreatedV1Handler struct {
	// contains filtered or unexported fields
}

消息处理器定义

func NewP2TicketCreatedV1Handler

func NewP2TicketCreatedV1Handler(handler func(context.Context, *P2TicketCreatedV1) error) *P2TicketCreatedV1Handler

func (*P2TicketCreatedV1Handler) Event

func (h *P2TicketCreatedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2TicketCreatedV1Handler) Handle

func (h *P2TicketCreatedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2TicketMessageCreatedV1

type P2TicketMessageCreatedV1 struct {
	*larkevent.EventV2Base                               // 事件基础数据
	*larkevent.EventReq                                  // 请求原生数据
	Event                  *P2TicketMessageCreatedV1Data `json:"event"` // 事件内容
}

func (*P2TicketMessageCreatedV1) RawReq

func (m *P2TicketMessageCreatedV1) RawReq(req *larkevent.EventReq)

type P2TicketMessageCreatedV1Data

type P2TicketMessageCreatedV1Data struct {
	TicketMessageId *string               `json:"ticket_message_id,omitempty"` // ticket message id
	MessageId       *string               `json:"message_id,omitempty"`        // open message id
	MsgType         *string               `json:"msg_type,omitempty"`          // message type, text is the only supported type
	Position        *string               `json:"position,omitempty"`          // position of the message
	SenderId        *UserId               `json:"sender_id,omitempty"`         // sender's open id, omitted if the sender is the bot
	SenderType      *int                  `json:"sender_type,omitempty"`       // sender type, 1 for bot, 2 for guest, 3 for agent
	Text            *string               `json:"text,omitempty"`              // message content
	Ticket          *Ticket               `json:"ticket,omitempty"`            // ticket related information
	EventId         *string               `json:"event_id,omitempty"`          // event id
	ChatId          *string               `json:"chat_id,omitempty"`           // chat id
	Content         *TicketMessageContent `json:"content,omitempty"`           // message content
}

type P2TicketMessageCreatedV1Handler

type P2TicketMessageCreatedV1Handler struct {
	// contains filtered or unexported fields
}

消息处理器定义

func (*P2TicketMessageCreatedV1Handler) Event

func (h *P2TicketMessageCreatedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2TicketMessageCreatedV1Handler) Handle

func (h *P2TicketMessageCreatedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2TicketUpdatedV1

type P2TicketUpdatedV1 struct {
	*larkevent.EventV2Base                        // 事件基础数据
	*larkevent.EventReq                           // 请求原生数据
	Event                  *P2TicketUpdatedV1Data `json:"event"` // 事件内容
}

func (*P2TicketUpdatedV1) RawReq

func (m *P2TicketUpdatedV1) RawReq(req *larkevent.EventReq)

type P2TicketUpdatedV1Data

type P2TicketUpdatedV1Data struct {
	Object    *TicketEvent           `json:"object,omitempty"`     // ticket after update
	OldObject *TicketEventUpdateInfo `json:"old_object,omitempty"` // ticket before update, only has updated fields
}

type P2TicketUpdatedV1Handler

type P2TicketUpdatedV1Handler struct {
	// contains filtered or unexported fields
}

消息处理器定义

func NewP2TicketUpdatedV1Handler

func NewP2TicketUpdatedV1Handler(handler func(context.Context, *P2TicketUpdatedV1) error) *P2TicketUpdatedV1Handler

func (*P2TicketUpdatedV1Handler) Event

func (h *P2TicketUpdatedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2TicketUpdatedV1Handler) Handle

func (h *P2TicketUpdatedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type PatchAgentPathReqBodyBuilder

type PatchAgentPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchAgentPathReqBodyBuilder

func NewPatchAgentPathReqBodyBuilder() *PatchAgentPathReqBodyBuilder

func (*PatchAgentPathReqBodyBuilder) Build

func (*PatchAgentPathReqBodyBuilder) Status

agent status

示例值:1:在线;2:离线

type PatchAgentReq

type PatchAgentReq struct {
	Body *PatchAgentReqBody `body:""`
	// contains filtered or unexported fields
}

type PatchAgentReqBody

type PatchAgentReqBody struct {
	Status *int `json:"status,omitempty"` // agent status
}

type PatchAgentReqBodyBuilder

type PatchAgentReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchAgentReqBodyBuilder

func NewPatchAgentReqBodyBuilder() *PatchAgentReqBodyBuilder

func (*PatchAgentReqBodyBuilder) Build

func (builder *PatchAgentReqBodyBuilder) Build() *PatchAgentReqBody

func (*PatchAgentReqBodyBuilder) Status

func (builder *PatchAgentReqBodyBuilder) Status(status int) *PatchAgentReqBodyBuilder

agent status

示例值:1:在线;2:离线

type PatchAgentReqBuilder

type PatchAgentReqBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchAgentReqBuilder

func NewPatchAgentReqBuilder() *PatchAgentReqBuilder

func (*PatchAgentReqBuilder) AgentId

func (builder *PatchAgentReqBuilder) AgentId(agentId string) *PatchAgentReqBuilder

客服id

示例值:ou_14777d82ffef0f707de5a8c7ff2c5ebe

func (*PatchAgentReqBuilder) Body

更新客服状态等信息

func (*PatchAgentReqBuilder) Build

func (builder *PatchAgentReqBuilder) Build() *PatchAgentReq

type PatchAgentResp

type PatchAgentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchAgentResp) Success

func (resp *PatchAgentResp) Success() bool

type PatchAgentSchedulesPathReqBodyBuilder

type PatchAgentSchedulesPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchAgentSchedulesPathReqBodyBuilder

func NewPatchAgentSchedulesPathReqBodyBuilder() *PatchAgentSchedulesPathReqBodyBuilder

func (*PatchAgentSchedulesPathReqBodyBuilder) AgentSchedule

工作日程列表

示例值:

func (*PatchAgentSchedulesPathReqBodyBuilder) Build

type PatchAgentSchedulesReq

type PatchAgentSchedulesReq struct {
	Body *PatchAgentSchedulesReqBody `body:""`
	// contains filtered or unexported fields
}

type PatchAgentSchedulesReqBody

type PatchAgentSchedulesReqBody struct {
	AgentSchedule *AgentScheduleUpdateInfo `json:"agent_schedule,omitempty"` // 工作日程列表
}

type PatchAgentSchedulesReqBodyBuilder

type PatchAgentSchedulesReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchAgentSchedulesReqBodyBuilder

func NewPatchAgentSchedulesReqBodyBuilder() *PatchAgentSchedulesReqBodyBuilder

func (*PatchAgentSchedulesReqBodyBuilder) AgentSchedule

工作日程列表

示例值:

func (*PatchAgentSchedulesReqBodyBuilder) Build

type PatchAgentSchedulesReqBuilder

type PatchAgentSchedulesReqBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchAgentSchedulesReqBuilder

func NewPatchAgentSchedulesReqBuilder() *PatchAgentSchedulesReqBuilder

func (*PatchAgentSchedulesReqBuilder) AgentId

客服 id

示例值:123456

func (*PatchAgentSchedulesReqBuilder) Body

该接口用于更新客服的日程

func (*PatchAgentSchedulesReqBuilder) Build

type PatchAgentSchedulesResp

type PatchAgentSchedulesResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchAgentSchedulesResp) Success

func (resp *PatchAgentSchedulesResp) Success() bool

type PatchAgentSkillPathReqBodyBuilder

type PatchAgentSkillPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchAgentSkillPathReqBodyBuilder

func NewPatchAgentSkillPathReqBodyBuilder() *PatchAgentSkillPathReqBodyBuilder

func (*PatchAgentSkillPathReqBodyBuilder) AgentSkill

更新技能

示例值:

func (*PatchAgentSkillPathReqBodyBuilder) Build

type PatchAgentSkillReq

type PatchAgentSkillReq struct {
	Body *PatchAgentSkillReqBody `body:""`
	// contains filtered or unexported fields
}

type PatchAgentSkillReqBody

type PatchAgentSkillReqBody struct {
	AgentSkill *AgentSkill `json:"agent_skill,omitempty"` // 更新技能
}

type PatchAgentSkillReqBodyBuilder

type PatchAgentSkillReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchAgentSkillReqBodyBuilder

func NewPatchAgentSkillReqBodyBuilder() *PatchAgentSkillReqBodyBuilder

func (*PatchAgentSkillReqBodyBuilder) AgentSkill

更新技能

示例值:

func (*PatchAgentSkillReqBodyBuilder) Build

type PatchAgentSkillReqBuilder

type PatchAgentSkillReqBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchAgentSkillReqBuilder

func NewPatchAgentSkillReqBuilder() *PatchAgentSkillReqBuilder

func (*PatchAgentSkillReqBuilder) AgentSkillId

func (builder *PatchAgentSkillReqBuilder) AgentSkillId(agentSkillId string) *PatchAgentSkillReqBuilder

agent skill id

示例值:test-skill-id

func (*PatchAgentSkillReqBuilder) Body

该接口用于更新客服技能

func (*PatchAgentSkillReqBuilder) Build

type PatchAgentSkillResp

type PatchAgentSkillResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchAgentSkillResp) Success

func (resp *PatchAgentSkillResp) Success() bool

type PatchCategoryReq

type PatchCategoryReq struct {
	Category *Category `body:""`
	// contains filtered or unexported fields
}

type PatchCategoryReqBuilder

type PatchCategoryReqBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchCategoryReqBuilder

func NewPatchCategoryReqBuilder() *PatchCategoryReqBuilder

func (*PatchCategoryReqBuilder) Build

func (builder *PatchCategoryReqBuilder) Build() *PatchCategoryReq

func (*PatchCategoryReqBuilder) Category

func (builder *PatchCategoryReqBuilder) Category(category *Category) *PatchCategoryReqBuilder

该接口用于更新知识库分类详情。

func (*PatchCategoryReqBuilder) Id

category id

示例值:6948728206392295444

type PatchCategoryResp

type PatchCategoryResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchCategoryResp) Success

func (resp *PatchCategoryResp) Success() bool

type PatchFaqPathReqBodyBuilder

type PatchFaqPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchFaqPathReqBodyBuilder

func NewPatchFaqPathReqBodyBuilder() *PatchFaqPathReqBodyBuilder

func (*PatchFaqPathReqBodyBuilder) Build

func (builder *PatchFaqPathReqBodyBuilder) Build() (*PatchFaqReqBody, error)

func (*PatchFaqPathReqBodyBuilder) Faq

修改的知识库内容

示例值:

type PatchFaqReq

type PatchFaqReq struct {
	Body *PatchFaqReqBody `body:""`
	// contains filtered or unexported fields
}

type PatchFaqReqBody

type PatchFaqReqBody struct {
	Faq *FaqUpdateInfo `json:"faq,omitempty"` // 修改的知识库内容
}

type PatchFaqReqBodyBuilder

type PatchFaqReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchFaqReqBodyBuilder

func NewPatchFaqReqBodyBuilder() *PatchFaqReqBodyBuilder

func (*PatchFaqReqBodyBuilder) Build

func (builder *PatchFaqReqBodyBuilder) Build() *PatchFaqReqBody

func (*PatchFaqReqBodyBuilder) Faq

修改的知识库内容

示例值:

type PatchFaqReqBuilder

type PatchFaqReqBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchFaqReqBuilder

func NewPatchFaqReqBuilder() *PatchFaqReqBuilder

func (*PatchFaqReqBuilder) Body

该接口用于修改知识库。

func (*PatchFaqReqBuilder) Build

func (builder *PatchFaqReqBuilder) Build() *PatchFaqReq

func (*PatchFaqReqBuilder) Id

func (builder *PatchFaqReqBuilder) Id(id string) *PatchFaqReqBuilder

知识库ID

示例值:6856395634652479491

type PatchFaqResp

type PatchFaqResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchFaqResp) Success

func (resp *PatchFaqResp) Success() bool

type PatchNotificationReq

type PatchNotificationReq struct {
	Notification *Notification `body:""`
	// contains filtered or unexported fields
}

type PatchNotificationReqBuilder

type PatchNotificationReqBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchNotificationReqBuilder

func NewPatchNotificationReqBuilder() *PatchNotificationReqBuilder

func (*PatchNotificationReqBuilder) Build

func (*PatchNotificationReqBuilder) Notification

func (builder *PatchNotificationReqBuilder) Notification(notification *Notification) *PatchNotificationReqBuilder

更新推送信息,只有在草稿状态下才可以调用此接口进行更新

func (*PatchNotificationReqBuilder) NotificationId

func (builder *PatchNotificationReqBuilder) NotificationId(notificationId string) *PatchNotificationReqBuilder

push任务唯一id

示例值:6985032626234982420

func (*PatchNotificationReqBuilder) UserIdType

func (builder *PatchNotificationReqBuilder) UserIdType(userIdType string) *PatchNotificationReqBuilder

此次调用中使用的用户ID的类型

示例值:

type PatchNotificationResp

type PatchNotificationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchNotificationResp) Success

func (resp *PatchNotificationResp) Success() bool

type PatchTicketCustomizedFieldReq

type PatchTicketCustomizedFieldReq struct {
	TicketCustomizedField *TicketCustomizedField `body:""`
	// contains filtered or unexported fields
}

type PatchTicketCustomizedFieldReqBuilder

type PatchTicketCustomizedFieldReqBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchTicketCustomizedFieldReqBuilder

func NewPatchTicketCustomizedFieldReqBuilder() *PatchTicketCustomizedFieldReqBuilder

func (*PatchTicketCustomizedFieldReqBuilder) Build

func (*PatchTicketCustomizedFieldReqBuilder) TicketCustomizedField

func (builder *PatchTicketCustomizedFieldReqBuilder) TicketCustomizedField(ticketCustomizedField *TicketCustomizedField) *PatchTicketCustomizedFieldReqBuilder

该接口用于更新自定义字段。

func (*PatchTicketCustomizedFieldReqBuilder) TicketCustomizedFieldId

func (builder *PatchTicketCustomizedFieldReqBuilder) TicketCustomizedFieldId(ticketCustomizedFieldId string) *PatchTicketCustomizedFieldReqBuilder

工单自定义字段ID

示例值:6948728206392295444

type PatchTicketCustomizedFieldResp

type PatchTicketCustomizedFieldResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchTicketCustomizedFieldResp) Success

func (resp *PatchTicketCustomizedFieldResp) Success() bool

type PreviewNotificationReq

type PreviewNotificationReq struct {
	// contains filtered or unexported fields
}

type PreviewNotificationReqBuilder

type PreviewNotificationReqBuilder struct {
	// contains filtered or unexported fields
}

func NewPreviewNotificationReqBuilder

func NewPreviewNotificationReqBuilder() *PreviewNotificationReqBuilder

func (*PreviewNotificationReqBuilder) Build

func (*PreviewNotificationReqBuilder) NotificationId

func (builder *PreviewNotificationReqBuilder) NotificationId(notificationId string) *PreviewNotificationReqBuilder

创建推送接口成功后返回的唯一id

示例值:6985032626234982420

type PreviewNotificationResp

type PreviewNotificationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PreviewNotificationResp) Success

func (resp *PreviewNotificationResp) Success() bool

type Richtext

type Richtext struct {
	Content *string `json:"content,omitempty"` // 内容
	Type    *string `json:"type,omitempty"`    // 类型
}

type RichtextBuilder

type RichtextBuilder struct {
	// contains filtered or unexported fields
}

func NewRichtextBuilder

func NewRichtextBuilder() *RichtextBuilder

func (*RichtextBuilder) Build

func (builder *RichtextBuilder) Build() *Richtext

func (*RichtextBuilder) Content

func (builder *RichtextBuilder) Content(content string) *RichtextBuilder

内容

示例值:我的答案

func (*RichtextBuilder) Type

func (builder *RichtextBuilder) Type(type_ string) *RichtextBuilder

类型

示例值:text

type SearchFaqIterator

type SearchFaqIterator struct {
	// contains filtered or unexported fields
}

func (*SearchFaqIterator) Next

func (iterator *SearchFaqIterator) Next() (bool, *Faq, error)

func (*SearchFaqIterator) NextPageToken

func (iterator *SearchFaqIterator) NextPageToken() *string

type SearchFaqReq

type SearchFaqReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchFaqReqBuilder

type SearchFaqReqBuilder struct {
	// contains filtered or unexported fields
}

func NewSearchFaqReqBuilder

func NewSearchFaqReqBuilder() *SearchFaqReqBuilder

func (*SearchFaqReqBuilder) Base64

func (builder *SearchFaqReqBuilder) Base64(base64 string) *SearchFaqReqBuilder

是否转换为base64,输入true表示是,不填写表示否,中文需要转换为base64

示例值:5bel5Y2V

func (*SearchFaqReqBuilder) Build

func (builder *SearchFaqReqBuilder) Build() *SearchFaqReq

func (*SearchFaqReqBuilder) Limit

func (builder *SearchFaqReqBuilder) Limit(limit int) *SearchFaqReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchFaqReqBuilder) PageSize

func (builder *SearchFaqReqBuilder) PageSize(pageSize int) *SearchFaqReqBuilder

示例值:10

func (*SearchFaqReqBuilder) PageToken

func (builder *SearchFaqReqBuilder) PageToken(pageToken string) *SearchFaqReqBuilder

示例值:6936004780707807251

func (*SearchFaqReqBuilder) Query

func (builder *SearchFaqReqBuilder) Query(query string) *SearchFaqReqBuilder

搜索query;,query内容如果不是英文,包含中文空格等有两种编码策略:1. url编码 2. base64编码,同时加上base64=true参数

示例值:wifi

type SearchFaqResp

type SearchFaqResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchFaqRespData `json:"data"` // 业务数据
}

func (*SearchFaqResp) Success

func (resp *SearchFaqResp) Success() bool

type SearchFaqRespData

type SearchFaqRespData struct {
	HasMore   *bool   `json:"has_more,omitempty"`   // if there's next page
	PageToken *string `json:"page_token,omitempty"` // the next page token
	Items     []*Faq  `json:"items,omitempty"`      // 知识库列表
}

type StartServiceTicketPathReqBodyBuilder

type StartServiceTicketPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewStartServiceTicketPathReqBodyBuilder

func NewStartServiceTicketPathReqBodyBuilder() *StartServiceTicketPathReqBodyBuilder

func (*StartServiceTicketPathReqBodyBuilder) AppointedAgents

func (builder *StartServiceTicketPathReqBodyBuilder) AppointedAgents(appointedAgents []string) *StartServiceTicketPathReqBodyBuilder

客服 open ids (获取方式参考[获取单个用户信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get)),human_service需要为true

示例值:[ou_7dab8a3d3cdcc9da365777c7ad535d62]

func (*StartServiceTicketPathReqBodyBuilder) Build

func (*StartServiceTicketPathReqBodyBuilder) CustomizedInfo

func (builder *StartServiceTicketPathReqBodyBuilder) CustomizedInfo(customizedInfo string) *StartServiceTicketPathReqBodyBuilder

工单来源自定义信息,长度限制1024字符,如设置,[获取工单详情](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/get)会返回此信息

示例值:测试自定义字段信息

func (*StartServiceTicketPathReqBodyBuilder) HumanService

是否直接进入人工(若appointed_agents填写了,该值为必填)

示例值:false

func (*StartServiceTicketPathReqBodyBuilder) OpenId

用户 open id,(获取方式参考[获取单个用户信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get))

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

type StartServiceTicketReq

type StartServiceTicketReq struct {
	Body *StartServiceTicketReqBody `body:""`
	// contains filtered or unexported fields
}

type StartServiceTicketReqBody

type StartServiceTicketReqBody struct {
	HumanService    *bool    `json:"human_service,omitempty"`    // 是否直接进入人工(若appointed_agents填写了,该值为必填)
	AppointedAgents []string `json:"appointed_agents,omitempty"` // 客服 open ids (获取方式参考[获取单个用户信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get)),human_service需要为true
	OpenId          *string  `json:"open_id,omitempty"`          // 用户 open id,(获取方式参考[获取单个用户信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get))
	CustomizedInfo  *string  `json:"customized_info,omitempty"`  // 工单来源自定义信息,长度限制1024字符,如设置,[获取工单详情](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/get)会返回此信息
}

type StartServiceTicketReqBodyBuilder

type StartServiceTicketReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewStartServiceTicketReqBodyBuilder

func NewStartServiceTicketReqBodyBuilder() *StartServiceTicketReqBodyBuilder

func (*StartServiceTicketReqBodyBuilder) AppointedAgents

func (builder *StartServiceTicketReqBodyBuilder) AppointedAgents(appointedAgents []string) *StartServiceTicketReqBodyBuilder

客服 open ids (获取方式参考[获取单个用户信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get)),human_service需要为true

示例值:[ou_7dab8a3d3cdcc9da365777c7ad535d62]

func (*StartServiceTicketReqBodyBuilder) Build

func (*StartServiceTicketReqBodyBuilder) CustomizedInfo

func (builder *StartServiceTicketReqBodyBuilder) CustomizedInfo(customizedInfo string) *StartServiceTicketReqBodyBuilder

工单来源自定义信息,长度限制1024字符,如设置,[获取工单详情](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/get)会返回此信息

示例值:测试自定义字段信息

func (*StartServiceTicketReqBodyBuilder) HumanService

func (builder *StartServiceTicketReqBodyBuilder) HumanService(humanService bool) *StartServiceTicketReqBodyBuilder

是否直接进入人工(若appointed_agents填写了,该值为必填)

示例值:false

func (*StartServiceTicketReqBodyBuilder) OpenId

用户 open id,(获取方式参考[获取单个用户信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get))

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

type StartServiceTicketReqBuilder

type StartServiceTicketReqBuilder struct {
	// contains filtered or unexported fields
}

func NewStartServiceTicketReqBuilder

func NewStartServiceTicketReqBuilder() *StartServiceTicketReqBuilder

func (*StartServiceTicketReqBuilder) Body

该接口用于创建服务台对话。

func (*StartServiceTicketReqBuilder) Build

type StartServiceTicketResp

type StartServiceTicketResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *StartServiceTicketRespData `json:"data"` // 业务数据
}

func (*StartServiceTicketResp) Success

func (resp *StartServiceTicketResp) Success() bool

type StartServiceTicketRespData

type StartServiceTicketRespData struct {
	ChatId *string `json:"chat_id,omitempty"` // 客服群open ID
}

type SubmitApproveNotificationPathReqBodyBuilder

type SubmitApproveNotificationPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewSubmitApproveNotificationPathReqBodyBuilder

func NewSubmitApproveNotificationPathReqBodyBuilder() *SubmitApproveNotificationPathReqBodyBuilder

func (*SubmitApproveNotificationPathReqBodyBuilder) Build

func (*SubmitApproveNotificationPathReqBodyBuilder) Reason

提交审批理由

示例值:测试发送消息

type SubmitApproveNotificationReq

type SubmitApproveNotificationReq struct {
	Body *SubmitApproveNotificationReqBody `body:""`
	// contains filtered or unexported fields
}

type SubmitApproveNotificationReqBody

type SubmitApproveNotificationReqBody struct {
	Reason *string `json:"reason,omitempty"` // 提交审批理由
}

type SubmitApproveNotificationReqBodyBuilder

type SubmitApproveNotificationReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewSubmitApproveNotificationReqBodyBuilder

func NewSubmitApproveNotificationReqBodyBuilder() *SubmitApproveNotificationReqBodyBuilder

func (*SubmitApproveNotificationReqBodyBuilder) Build

func (*SubmitApproveNotificationReqBodyBuilder) Reason

提交审批理由

示例值:测试发送消息

type SubmitApproveNotificationReqBuilder

type SubmitApproveNotificationReqBuilder struct {
	// contains filtered or unexported fields
}

func NewSubmitApproveNotificationReqBuilder

func NewSubmitApproveNotificationReqBuilder() *SubmitApproveNotificationReqBuilder

func (*SubmitApproveNotificationReqBuilder) Body

正常情况下调用创建推送接口后,就可以调用提交审核接口,如果创建人是服务台owner则会自动审核通过,否则会通知服务台owner审核此推送信息

func (*SubmitApproveNotificationReqBuilder) Build

func (*SubmitApproveNotificationReqBuilder) NotificationId

func (builder *SubmitApproveNotificationReqBuilder) NotificationId(notificationId string) *SubmitApproveNotificationReqBuilder

创建接口返回的唯一id

示例值:6985032626234982420

type SubmitApproveNotificationResp

type SubmitApproveNotificationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SubmitApproveNotificationRespData `json:"data"` // 业务数据
}

func (*SubmitApproveNotificationResp) Success

func (resp *SubmitApproveNotificationResp) Success() bool

type SubmitApproveNotificationRespData

type SubmitApproveNotificationRespData struct {
	HasAccess *bool `json:"has_access,omitempty"` // 是否有权限创建或者管理审批流程 (有两种情况会导致没有权限: 1:用户没有安装服务台小程序,需要在https://app.feishu.cn/app/cli_9f9f8825d53b900d 安装小程序 2:用户安装的服务台小程序版本过低)
}

type SubscribeEventPathReqBodyBuilder

type SubscribeEventPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewSubscribeEventPathReqBodyBuilder

func NewSubscribeEventPathReqBodyBuilder() *SubscribeEventPathReqBodyBuilder

func (*SubscribeEventPathReqBodyBuilder) Build

func (*SubscribeEventPathReqBodyBuilder) Events

可订阅的事件列表

示例值:

type SubscribeEventReq

type SubscribeEventReq struct {
	Body *SubscribeEventReqBody `body:""`
	// contains filtered or unexported fields
}

type SubscribeEventReqBody

type SubscribeEventReqBody struct {
	Events []*Event `json:"events,omitempty"` // 可订阅的事件列表
}

type SubscribeEventReqBodyBuilder

type SubscribeEventReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewSubscribeEventReqBodyBuilder

func NewSubscribeEventReqBodyBuilder() *SubscribeEventReqBodyBuilder

func (*SubscribeEventReqBodyBuilder) Build

func (*SubscribeEventReqBodyBuilder) Events

可订阅的事件列表

示例值:

type SubscribeEventReqBuilder

type SubscribeEventReqBuilder struct {
	// contains filtered or unexported fields
}

func NewSubscribeEventReqBuilder

func NewSubscribeEventReqBuilder() *SubscribeEventReqBuilder

func (*SubscribeEventReqBuilder) Body

用于订阅服务台事件

func (*SubscribeEventReqBuilder) Build

func (builder *SubscribeEventReqBuilder) Build() *SubscribeEventReq

type SubscribeEventResp

type SubscribeEventResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*SubscribeEventResp) Success

func (resp *SubscribeEventResp) Success() bool

type Ticket

type Ticket struct {
	TicketId                   *string                       `json:"ticket_id,omitempty"`                     // 工单ID;;[可以从工单列表里面取](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/list);;[也可以订阅工单创建事件获取](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/events/created)
	HelpdeskId                 *string                       `json:"helpdesk_id,omitempty"`                   // 服务台ID
	Guest                      *TicketUser                   `json:"guest,omitempty"`                         // 工单创建用户
	Comments                   *Comments                     `json:"comments,omitempty"`                      // 备注
	TicketType                 *int                          `json:"ticket_type,omitempty"`                   // 工单阶段:1. 机器人 2. 人工
	Status                     *int                          `json:"status,omitempty"`                        // 工单状态,1:已创建 2: 处理中 3: 排队中 4:待定 5:待用户响应 50: 被机器人关闭 51: 被客服关闭 52: 用户自己关闭
	Score                      *int                          `json:"score,omitempty"`                         // 工单评分,1:不满意,2:一般,3:满意
	CreatedAt                  *int                          `json:"created_at,omitempty"`                    // 工单创建时间
	UpdatedAt                  *int                          `json:"updated_at,omitempty"`                    // 工单更新时间,没有值时为-1
	ClosedAt                   *int                          `json:"closed_at,omitempty"`                     // 工单结束时间
	DissatisfactionReason      []string                      `json:"dissatisfaction_reason,omitempty"`        // 不满意原因
	Agents                     []*TicketUser                 `json:"agents,omitempty"`                        // 工单客服
	Channel                    *int                          `json:"channel,omitempty"`                       // 工单渠道,描述:;9:Open API 2:二维码 14:分享 13:搜索 其他数字:其他渠道
	Solve                      *int                          `json:"solve,omitempty"`                         // 工单是否解决 1:没解决 2:已解决
	ClosedBy                   *TicketUser                   `json:"closed_by,omitempty"`                     // 关单用户ID
	Collaborators              []*TicketUser                 `json:"collaborators,omitempty"`                 // 工单协作者
	CustomizedFields           []*CustomizedFieldDisplayItem `json:"customized_fields,omitempty"`             // 自定义字段列表,没有值时不设置  ;下拉菜单的value对应工单字段里面的children.display_name;[获取全部工单自定义字段](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket_customized_field/list-ticket-customized-fields)
	AgentServiceDuration       *float64                      `json:"agent_service_duration,omitempty"`        // 客服服务时长,客服最后一次回复时间距离客服进入时间间隔,单位分钟
	AgentFirstResponseDuration *int                          `json:"agent_first_response_duration,omitempty"` // 客服首次回复时间距离客服进入时间的间隔(秒)
	BotServiceDuration         *int                          `json:"bot_service_duration,omitempty"`          // 机器人服务时间:客服进入时间距离工单创建时间的间隔,单位秒
	AgentResolutionTime        *int                          `json:"agent_resolution_time,omitempty"`         // 客服解决时长,关单时间距离客服进入时间的间隔,单位秒
	ActualProcessingTime       *int                          `json:"actual_processing_time,omitempty"`        // 工单实际处理时间:从客服进入到关单,单位秒
	AgentEntryTime             *int                          `json:"agent_entry_time,omitempty"`              // 客服进入时间,单位毫秒
	AgentFirstResponseTime     *int                          `json:"agent_first_response_time,omitempty"`     // 客服首次回复时间,单位毫秒
	AgentLastResponseTime      *int                          `json:"agent_last_response_time,omitempty"`      // 客服最后回复时间,单位毫秒
	AgentOwner                 *TicketUser                   `json:"agent_owner,omitempty"`                   // 主责客服
}

type TicketBuilder

type TicketBuilder struct {
	// contains filtered or unexported fields
}

func NewTicketBuilder

func NewTicketBuilder() *TicketBuilder

func (*TicketBuilder) ActualProcessingTime

func (builder *TicketBuilder) ActualProcessingTime(actualProcessingTime int) *TicketBuilder

工单实际处理时间:从客服进入到关单,单位秒

示例值:68

func (*TicketBuilder) AgentEntryTime

func (builder *TicketBuilder) AgentEntryTime(agentEntryTime int) *TicketBuilder

客服进入时间,单位毫秒

示例值:1636444596000

func (*TicketBuilder) AgentFirstResponseDuration

func (builder *TicketBuilder) AgentFirstResponseDuration(agentFirstResponseDuration int) *TicketBuilder

客服首次回复时间距离客服进入时间的间隔(秒)

示例值:123869

func (*TicketBuilder) AgentFirstResponseTime

func (builder *TicketBuilder) AgentFirstResponseTime(agentFirstResponseTime int) *TicketBuilder

客服首次回复时间,单位毫秒

示例值:1636444696000

func (*TicketBuilder) AgentLastResponseTime

func (builder *TicketBuilder) AgentLastResponseTime(agentLastResponseTime int) *TicketBuilder

客服最后回复时间,单位毫秒

示例值:1636444796000

func (*TicketBuilder) AgentOwner

func (builder *TicketBuilder) AgentOwner(agentOwner *TicketUser) *TicketBuilder

主责客服

示例值:

func (*TicketBuilder) AgentResolutionTime

func (builder *TicketBuilder) AgentResolutionTime(agentResolutionTime int) *TicketBuilder

客服解决时长,关单时间距离客服进入时间的间隔,单位秒

示例值:66

func (*TicketBuilder) AgentServiceDuration

func (builder *TicketBuilder) AgentServiceDuration(agentServiceDuration float64) *TicketBuilder

客服服务时长,客服最后一次回复时间距离客服进入时间间隔,单位分钟

示例值:42624.95

func (*TicketBuilder) Agents

func (builder *TicketBuilder) Agents(agents []*TicketUser) *TicketBuilder

工单客服

示例值:

func (*TicketBuilder) BotServiceDuration

func (builder *TicketBuilder) BotServiceDuration(botServiceDuration int) *TicketBuilder

机器人服务时间:客服进入时间距离工单创建时间的间隔,单位秒

示例值:1

func (*TicketBuilder) Build

func (builder *TicketBuilder) Build() *Ticket

func (*TicketBuilder) Channel

func (builder *TicketBuilder) Channel(channel int) *TicketBuilder

工单渠道,描述:;9:Open API 2:二维码 14:分享 13:搜索 其他数字:其他渠道

示例值:0

func (*TicketBuilder) ClosedAt

func (builder *TicketBuilder) ClosedAt(closedAt int) *TicketBuilder

工单结束时间

示例值:1616920429000

func (*TicketBuilder) ClosedBy

func (builder *TicketBuilder) ClosedBy(closedBy *TicketUser) *TicketBuilder

关单用户ID

示例值:

func (*TicketBuilder) Collaborators

func (builder *TicketBuilder) Collaborators(collaborators []*TicketUser) *TicketBuilder

工单协作者

示例值:

func (*TicketBuilder) Comments

func (builder *TicketBuilder) Comments(comments *Comments) *TicketBuilder

备注

示例值:

func (*TicketBuilder) CreatedAt

func (builder *TicketBuilder) CreatedAt(createdAt int) *TicketBuilder

工单创建时间

示例值:1616920429000

func (*TicketBuilder) CustomizedFields

func (builder *TicketBuilder) CustomizedFields(customizedFields []*CustomizedFieldDisplayItem) *TicketBuilder

自定义字段列表,没有值时不设置 ;下拉菜单的value对应工单字段里面的children.display_name;[获取全部工单自定义字段](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket_customized_field/list-ticket-customized-fields)

示例值:

func (*TicketBuilder) DissatisfactionReason

func (builder *TicketBuilder) DissatisfactionReason(dissatisfactionReason []string) *TicketBuilder

不满意原因

示例值:

func (*TicketBuilder) Guest

func (builder *TicketBuilder) Guest(guest *TicketUser) *TicketBuilder

工单创建用户

示例值:

func (*TicketBuilder) HelpdeskId

func (builder *TicketBuilder) HelpdeskId(helpdeskId string) *TicketBuilder

服务台ID

示例值:6626871355780366330

func (*TicketBuilder) Score

func (builder *TicketBuilder) Score(score int) *TicketBuilder

工单评分,1:不满意,2:一般,3:满意

示例值:1

func (*TicketBuilder) Solve

func (builder *TicketBuilder) Solve(solve int) *TicketBuilder

工单是否解决 1:没解决 2:已解决

示例值:1

func (*TicketBuilder) Status

func (builder *TicketBuilder) Status(status int) *TicketBuilder

工单状态,1:已创建 2: 处理中 3: 排队中 4:待定 5:待用户响应 50: 被机器人关闭 51: 被客服关闭 52: 用户自己关闭

示例值:50

func (*TicketBuilder) TicketId

func (builder *TicketBuilder) TicketId(ticketId string) *TicketBuilder

工单ID;;[可以从工单列表里面取](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/list);;[也可以订阅工单创建事件获取](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/events/created)

示例值:6626871355780366331

func (*TicketBuilder) TicketType

func (builder *TicketBuilder) TicketType(ticketType int) *TicketBuilder

工单阶段:1. 机器人 2. 人工

示例值:1

func (*TicketBuilder) UpdatedAt

func (builder *TicketBuilder) UpdatedAt(updatedAt int) *TicketBuilder

工单更新时间,没有值时为-1

示例值:1616920429000

type TicketCustomizedField

type TicketCustomizedField struct {
	TicketCustomizedFieldId *string     `json:"ticket_customized_field_id,omitempty"` // 工单自定义字段ID
	HelpdeskId              *string     `json:"helpdesk_id,omitempty"`                // 服务台ID
	KeyName                 *string     `json:"key_name,omitempty"`                   // 键名
	DisplayName             *string     `json:"display_name,omitempty"`               // 名称
	Position                *string     `json:"position,omitempty"`                   // 字段在列表后台管理列表中的位置
	FieldType               *string     `json:"field_type,omitempty"`                 // 类型;;string - 单行文本;;multiline - 多行文本;;dropdown - 下拉列表;;dropdown_nested - 级联下拉
	Description             *string     `json:"description,omitempty"`                // 描述
	Visible                 *bool       `json:"visible,omitempty"`                    // 是否可见
	Editable                *bool       `json:"editable,omitempty"`                   // 是否可以修改
	Required                *bool       `json:"required,omitempty"`                   // 是否必填
	CreatedAt               *string     `json:"created_at,omitempty"`                 // 创建时间
	UpdatedAt               *string     `json:"updated_at,omitempty"`                 // 更新时间
	CreatedBy               *TicketUser `json:"created_by,omitempty"`                 // 创建用户
	UpdatedBy               *TicketUser `json:"updated_by,omitempty"`                 // 更新用户
	DropdownAllowMultiple   *bool       `json:"dropdown_allow_multiple,omitempty"`    // 是否支持多选,仅在字段类型是dropdown的时候有效
}

type TicketCustomizedFieldBuilder

type TicketCustomizedFieldBuilder struct {
	// contains filtered or unexported fields
}

func NewTicketCustomizedFieldBuilder

func NewTicketCustomizedFieldBuilder() *TicketCustomizedFieldBuilder

func (*TicketCustomizedFieldBuilder) Build

func (*TicketCustomizedFieldBuilder) CreatedAt

func (builder *TicketCustomizedFieldBuilder) CreatedAt(createdAt string) *TicketCustomizedFieldBuilder

创建时间

示例值:1591239289000

func (*TicketCustomizedFieldBuilder) CreatedBy

创建用户

示例值:

func (*TicketCustomizedFieldBuilder) Description

func (builder *TicketCustomizedFieldBuilder) Description(description string) *TicketCustomizedFieldBuilder

描述

示例值:下拉示例

func (*TicketCustomizedFieldBuilder) DisplayName

func (builder *TicketCustomizedFieldBuilder) DisplayName(displayName string) *TicketCustomizedFieldBuilder

名称

示例值:test dropdown

func (*TicketCustomizedFieldBuilder) DropdownAllowMultiple

func (builder *TicketCustomizedFieldBuilder) DropdownAllowMultiple(dropdownAllowMultiple bool) *TicketCustomizedFieldBuilder

是否支持多选,仅在字段类型是dropdown的时候有效

示例值:true

func (*TicketCustomizedFieldBuilder) Editable

func (builder *TicketCustomizedFieldBuilder) Editable(editable bool) *TicketCustomizedFieldBuilder

是否可以修改

示例值:true

func (*TicketCustomizedFieldBuilder) FieldType

func (builder *TicketCustomizedFieldBuilder) FieldType(fieldType string) *TicketCustomizedFieldBuilder

类型;;string - 单行文本;;multiline - 多行文本;;dropdown - 下拉列表;;dropdown_nested - 级联下拉

示例值:dropdown

func (*TicketCustomizedFieldBuilder) HelpdeskId

func (builder *TicketCustomizedFieldBuilder) HelpdeskId(helpdeskId string) *TicketCustomizedFieldBuilder

服务台ID

示例值:1542164574896126

func (*TicketCustomizedFieldBuilder) KeyName

键名

示例值:test dropdown

func (*TicketCustomizedFieldBuilder) Position

字段在列表后台管理列表中的位置

示例值:3

func (*TicketCustomizedFieldBuilder) Required

func (builder *TicketCustomizedFieldBuilder) Required(required bool) *TicketCustomizedFieldBuilder

是否必填

示例值:false

func (*TicketCustomizedFieldBuilder) TicketCustomizedFieldId

func (builder *TicketCustomizedFieldBuilder) TicketCustomizedFieldId(ticketCustomizedFieldId string) *TicketCustomizedFieldBuilder

工单自定义字段ID

示例值:6834320707288072194

func (*TicketCustomizedFieldBuilder) UpdatedAt

func (builder *TicketCustomizedFieldBuilder) UpdatedAt(updatedAt string) *TicketCustomizedFieldBuilder

更新时间

示例值:1591239289000

func (*TicketCustomizedFieldBuilder) UpdatedBy

更新用户

示例值:

func (*TicketCustomizedFieldBuilder) Visible

是否可见

示例值:true

type TicketEvent

type TicketEvent struct {
	TicketId         *string                       `json:"ticket_id,omitempty"`         // 工单ID;;[可以从工单列表里面取](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/list);;[也可以订阅工单创建事件获取](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/events/created)
	HelpdeskId       *string                       `json:"helpdesk_id,omitempty"`       // 服务台id
	Guest            *TicketUserEvent              `json:"guest,omitempty"`             // 用户id
	Stage            *int                          `json:"stage,omitempty"`             // 工单阶段:1. 机器人 2. 人工
	Status           *int                          `json:"status,omitempty"`            // 工单状态,1:已创建 2: 处理中 3: 排队中 4:待定 5:待用户响应 50: 被机器人关闭 51: 被客服关闭 52: 用户自己关闭
	Score            *int                          `json:"score,omitempty"`             // 工单评分,1:不满意,2:一般,3:满意
	CreatedAt        *int                          `json:"created_at,omitempty"`        // 创建时间
	UpdatedAt        *int                          `json:"updated_at,omitempty"`        // 工单更新时间,没有值时为-1
	ClosedAt         *int                          `json:"closed_at,omitempty"`         // 关单时间
	Agents           []*TicketUserEvent            `json:"agents,omitempty"`            // agents of this ticket
	Channel          *int                          `json:"channel,omitempty"`           // 工单渠道,描述:9:Open API 2:二维码 14:分享 13:搜索 其他数字:其他渠道
	Solve            *int                          `json:"solve,omitempty"`             // 工单是否解决 1:没解决 2:已解决
	ClosedBy         *TicketUserEvent              `json:"closed_by,omitempty"`         // closed user of this ticket
	Collaborators    []*TicketUserEvent            `json:"collaborators,omitempty"`     // collaborators of this ticket
	CustomizedFields []*CustomizedFieldDisplayItem `json:"customized_fields,omitempty"` // 自定义字段
	ChatId           *string                       `json:"chat_id,omitempty"`           // oc_xxxxxxx
}

type TicketEventBuilder

type TicketEventBuilder struct {
	// contains filtered or unexported fields
}

func NewTicketEventBuilder

func NewTicketEventBuilder() *TicketEventBuilder

func (*TicketEventBuilder) Agents

func (builder *TicketEventBuilder) Agents(agents []*TicketUserEvent) *TicketEventBuilder

agents of this ticket

示例值:

func (*TicketEventBuilder) Build

func (builder *TicketEventBuilder) Build() *TicketEvent

func (*TicketEventBuilder) Channel

func (builder *TicketEventBuilder) Channel(channel int) *TicketEventBuilder

工单渠道,描述:9:Open API 2:二维码 14:分享 13:搜索 其他数字:其他渠道

示例值:0

func (*TicketEventBuilder) ChatId

func (builder *TicketEventBuilder) ChatId(chatId string) *TicketEventBuilder

oc_xxxxxxx

示例值:oc_xxxxxxx

func (*TicketEventBuilder) ClosedAt

func (builder *TicketEventBuilder) ClosedAt(closedAt int) *TicketEventBuilder

关单时间

示例值:1616920429000

func (*TicketEventBuilder) ClosedBy

func (builder *TicketEventBuilder) ClosedBy(closedBy *TicketUserEvent) *TicketEventBuilder

closed user of this ticket

示例值:

func (*TicketEventBuilder) Collaborators

func (builder *TicketEventBuilder) Collaborators(collaborators []*TicketUserEvent) *TicketEventBuilder

collaborators of this ticket

示例值:

func (*TicketEventBuilder) CreatedAt

func (builder *TicketEventBuilder) CreatedAt(createdAt int) *TicketEventBuilder

创建时间

示例值:1616920429000

func (*TicketEventBuilder) CustomizedFields

func (builder *TicketEventBuilder) CustomizedFields(customizedFields []*CustomizedFieldDisplayItem) *TicketEventBuilder

自定义字段

示例值:

func (*TicketEventBuilder) Guest

func (builder *TicketEventBuilder) Guest(guest *TicketUserEvent) *TicketEventBuilder

用户id

示例值:

func (*TicketEventBuilder) HelpdeskId

func (builder *TicketEventBuilder) HelpdeskId(helpdeskId string) *TicketEventBuilder

服务台id

示例值:6626871355780366330

func (*TicketEventBuilder) Score

func (builder *TicketEventBuilder) Score(score int) *TicketEventBuilder

工单评分,1:不满意,2:一般,3:满意

示例值:1

func (*TicketEventBuilder) Solve

func (builder *TicketEventBuilder) Solve(solve int) *TicketEventBuilder

工单是否解决 1:没解决 2:已解决

示例值:1

func (*TicketEventBuilder) Stage

func (builder *TicketEventBuilder) Stage(stage int) *TicketEventBuilder

工单阶段:1. 机器人 2. 人工

示例值:1

func (*TicketEventBuilder) Status

func (builder *TicketEventBuilder) Status(status int) *TicketEventBuilder

工单状态,1:已创建 2: 处理中 3: 排队中 4:待定 5:待用户响应 50: 被机器人关闭 51: 被客服关闭 52: 用户自己关闭

示例值:1

func (*TicketEventBuilder) TicketId

func (builder *TicketEventBuilder) TicketId(ticketId string) *TicketEventBuilder

工单ID;;[可以从工单列表里面取](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/list);;[也可以订阅工单创建事件获取](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/events/created)

示例值:6626871355780366331

func (*TicketEventBuilder) UpdatedAt

func (builder *TicketEventBuilder) UpdatedAt(updatedAt int) *TicketEventBuilder

工单更新时间,没有值时为-1

示例值:1616920429000

type TicketEventUpdateInfo

type TicketEventUpdateInfo struct {
	Stage     *int `json:"stage,omitempty"`      // ticket stage
	Status    *int `json:"status,omitempty"`     // ticket status
	UpdatedAt *int `json:"updated_at,omitempty"` // ticket update time
}

type TicketEventUpdateInfoBuilder

type TicketEventUpdateInfoBuilder struct {
	// contains filtered or unexported fields
}

func NewTicketEventUpdateInfoBuilder

func NewTicketEventUpdateInfoBuilder() *TicketEventUpdateInfoBuilder

func (*TicketEventUpdateInfoBuilder) Build

func (*TicketEventUpdateInfoBuilder) Stage

ticket stage

示例值:1

func (*TicketEventUpdateInfoBuilder) Status

ticket status

示例值:50

func (*TicketEventUpdateInfoBuilder) UpdatedAt

func (builder *TicketEventUpdateInfoBuilder) UpdatedAt(updatedAt int) *TicketEventUpdateInfoBuilder

ticket update time

示例值:1616920429000

type TicketImageTicketReq

type TicketImageTicketReq struct {
	// contains filtered or unexported fields
}

type TicketImageTicketReqBuilder

type TicketImageTicketReqBuilder struct {
	// contains filtered or unexported fields
}

func NewTicketImageTicketReqBuilder

func NewTicketImageTicketReqBuilder() *TicketImageTicketReqBuilder

func (*TicketImageTicketReqBuilder) Build

func (*TicketImageTicketReqBuilder) Index

index,当消息类型为post时,需指定图片index,index从0开始。当消息类型为img时,无需index

示例值:0

func (*TicketImageTicketReqBuilder) MsgId

消息ID;;[查询消息ID](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket-message/list)

示例值:12345

func (*TicketImageTicketReqBuilder) TicketId

func (builder *TicketImageTicketReqBuilder) TicketId(ticketId string) *TicketImageTicketReqBuilder

工单ID

示例值:12345

type TicketImageTicketResp

type TicketImageTicketResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	File     io.Reader `json:"-"`
	FileName string    `json:"-"`
}

func (*TicketImageTicketResp) Success

func (resp *TicketImageTicketResp) Success() bool

func (*TicketImageTicketResp) WriteFile

func (resp *TicketImageTicketResp) WriteFile(fileName string) error

type TicketMessage

type TicketMessage struct {
	Id          *string `json:"id,omitempty"`           // 工单消息ID
	MessageId   *string `json:"message_id,omitempty"`   // chat消息ID
	MessageType *string `json:"message_type,omitempty"` // 消息类型;text:纯文本;post:富文本
	CreatedAt   *int    `json:"created_at,omitempty"`   // 创建时间
	Content     *string `json:"content,omitempty"`      // 内容
	UserName    *string `json:"user_name,omitempty"`    // 用户名
	AvatarUrl   *string `json:"avatar_url,omitempty"`   // 用户图片url
	UserId      *string `json:"user_id,omitempty"`      // 用户open ID
}

type TicketMessageBuilder

type TicketMessageBuilder struct {
	// contains filtered or unexported fields
}

func NewTicketMessageBuilder

func NewTicketMessageBuilder() *TicketMessageBuilder

func (*TicketMessageBuilder) Build

func (builder *TicketMessageBuilder) Build() *TicketMessage

func (*TicketMessageBuilder) Content

func (builder *TicketMessageBuilder) Content(content string) *TicketMessageBuilder

内容

示例值:"{\"content\":\"进入人工服务。 @李宁 为你提供服务,开始聊起来吧~\",\"msg_type\":\"text\"}"

func (*TicketMessageBuilder) CreatedAt

func (builder *TicketMessageBuilder) CreatedAt(createdAt int) *TicketMessageBuilder

创建时间

示例值:1617960686000

func (*TicketMessageBuilder) Id

工单消息ID

示例值:6948728206392295444

func (*TicketMessageBuilder) MessageId

func (builder *TicketMessageBuilder) MessageId(messageId string) *TicketMessageBuilder

chat消息ID

示例值:6949088236610273307

func (*TicketMessageBuilder) MessageType

func (builder *TicketMessageBuilder) MessageType(messageType string) *TicketMessageBuilder

消息类型;text:纯文本;post:富文本

示例值:text

func (*TicketMessageBuilder) UserId

func (builder *TicketMessageBuilder) UserId(userId string) *TicketMessageBuilder

用户open ID

示例值:ou_37019b7c830210acd88fdce886e25c71

func (*TicketMessageBuilder) UserName

func (builder *TicketMessageBuilder) UserName(userName string) *TicketMessageBuilder

用户名

示例值:李宁

type TicketMessageContent

type TicketMessageContent struct {
	Content   *string  `json:"content,omitempty"`    // 内容
	MsgType   *string  `json:"msg_type,omitempty"`   // 消息类型;text:纯文本;post:富文本;image:图片
	ImageKeys []string `json:"image_keys,omitempty"` // 图片ID
	ImageKey  *string  `json:"image_key,omitempty"`  // 图片ID
}

type TicketMessageContentBuilder

type TicketMessageContentBuilder struct {
	// contains filtered or unexported fields
}

func NewTicketMessageContentBuilder

func NewTicketMessageContentBuilder() *TicketMessageContentBuilder

func (*TicketMessageContentBuilder) Build

func (*TicketMessageContentBuilder) Content

内容

示例值:请问vpn怎么下载

func (*TicketMessageContentBuilder) ImageKey

func (builder *TicketMessageContentBuilder) ImageKey(imageKey string) *TicketMessageContentBuilder

图片ID

示例值:xxx

func (*TicketMessageContentBuilder) ImageKeys

func (builder *TicketMessageContentBuilder) ImageKeys(imageKeys []string) *TicketMessageContentBuilder

图片ID

示例值:

func (*TicketMessageContentBuilder) MsgType

消息类型;text:纯文本;post:富文本;image:图片

示例值:text

type TicketMessageEvent

type TicketMessageEvent struct {
	TicketMessageId *string               `json:"ticket_message_id,omitempty"` // ticket message id
	MessageId       *string               `json:"message_id,omitempty"`        // open message id
	MsgType         *string               `json:"msg_type,omitempty"`          // message type, text is the only supported type
	Position        *string               `json:"position,omitempty"`          // position of the message
	SenderId        *UserId               `json:"sender_id,omitempty"`         // 用户 ID
	SenderType      *int                  `json:"sender_type,omitempty"`       // sender type, 1 for bot, 2 for guest, 3 for agent
	Text            *string               `json:"text,omitempty"`              // message content
	Ticket          *Ticket               `json:"ticket,omitempty"`            // ticket related information
	EventId         *string               `json:"event_id,omitempty"`          // event id
	ChatId          *string               `json:"chat_id,omitempty"`           // chat id
	Content         *TicketMessageContent `json:"content,omitempty"`           // message content
}

type TicketMessageEventBuilder

type TicketMessageEventBuilder struct {
	// contains filtered or unexported fields
}

func NewTicketMessageEventBuilder

func NewTicketMessageEventBuilder() *TicketMessageEventBuilder

func (*TicketMessageEventBuilder) Build

func (*TicketMessageEventBuilder) ChatId

chat id

示例值:6949088236610273307

func (*TicketMessageEventBuilder) Content

message content

示例值:

func (*TicketMessageEventBuilder) EventId

func (builder *TicketMessageEventBuilder) EventId(eventId string) *TicketMessageEventBuilder

event id

示例值:118a6492-122d-04ad-4370-010a3bb384d3

func (*TicketMessageEventBuilder) MessageId

func (builder *TicketMessageEventBuilder) MessageId(messageId string) *TicketMessageEventBuilder

open message id

示例值:om_8baa3656c7b41900d29bf9104bf5310b

func (*TicketMessageEventBuilder) MsgType

func (builder *TicketMessageEventBuilder) MsgType(msgType string) *TicketMessageEventBuilder

message type, text is the only supported type

示例值:text

func (*TicketMessageEventBuilder) Position

func (builder *TicketMessageEventBuilder) Position(position string) *TicketMessageEventBuilder

position of the message

示例值:10

func (*TicketMessageEventBuilder) SenderId

func (builder *TicketMessageEventBuilder) SenderId(senderId *UserId) *TicketMessageEventBuilder

用户 ID

示例值:

func (*TicketMessageEventBuilder) SenderType

func (builder *TicketMessageEventBuilder) SenderType(senderType int) *TicketMessageEventBuilder

sender type, 1 for bot, 2 for guest, 3 for agent

示例值:1

func (*TicketMessageEventBuilder) Text

message content

示例值:请问vpn怎么下载

func (*TicketMessageEventBuilder) Ticket

ticket related information

示例值:

func (*TicketMessageEventBuilder) TicketMessageId

func (builder *TicketMessageEventBuilder) TicketMessageId(ticketMessageId string) *TicketMessageEventBuilder

ticket message id

示例值:6949088240624222236

type TicketUser

type TicketUser struct {
	Id         *string `json:"id,omitempty"`         // 用户ID
	AvatarUrl  *string `json:"avatar_url,omitempty"` // 用户头像url
	Name       *string `json:"name,omitempty"`       // 用户名
	Email      *string `json:"email,omitempty"`      // 用户邮箱
	Department *string `json:"department,omitempty"` // 所在部门名称
	City       *string `json:"city,omitempty"`       // 城市
	Country    *string `json:"country,omitempty"`    // 国家代号(CountryCode),参考:http://www.mamicode.com/info-detail-2186501.html
}

type TicketUserBuilder

type TicketUserBuilder struct {
	// contains filtered or unexported fields
}

func NewTicketUserBuilder

func NewTicketUserBuilder() *TicketUserBuilder

func (*TicketUserBuilder) AvatarUrl

func (builder *TicketUserBuilder) AvatarUrl(avatarUrl string) *TicketUserBuilder

用户头像url

示例值:https://xxxx

func (*TicketUserBuilder) Build

func (builder *TicketUserBuilder) Build() *TicketUser

func (*TicketUserBuilder) City

func (builder *TicketUserBuilder) City(city string) *TicketUserBuilder

城市

示例值:城市

func (*TicketUserBuilder) Country

func (builder *TicketUserBuilder) Country(country string) *TicketUserBuilder

国家代号(CountryCode),参考:http://www.mamicode.com/info-detail-2186501.html

示例值:国家

func (*TicketUserBuilder) Department

func (builder *TicketUserBuilder) Department(department string) *TicketUserBuilder

所在部门名称

示例值:用户部门名称(有权限才展示)

func (*TicketUserBuilder) Email

func (builder *TicketUserBuilder) Email(email string) *TicketUserBuilder

用户邮箱

示例值:xxxx@abc.com

func (*TicketUserBuilder) Id

func (builder *TicketUserBuilder) Id(id string) *TicketUserBuilder

用户ID

示例值:ou_37019b7c830210acd88fdce886e25c71

func (*TicketUserBuilder) Name

func (builder *TicketUserBuilder) Name(name string) *TicketUserBuilder

用户名

示例值:abc

type TicketUserEvent

type TicketUserEvent struct {
	Id        *UserId `json:"id,omitempty"`         // id
	AvatarUrl *string `json:"avatar_url,omitempty"` // user avartal url
	Name      *string `json:"name,omitempty"`       // 名称
	Email     *string `json:"email,omitempty"`      // user email
}

type TicketUserEventBuilder

type TicketUserEventBuilder struct {
	// contains filtered or unexported fields
}

func NewTicketUserEventBuilder

func NewTicketUserEventBuilder() *TicketUserEventBuilder

func (*TicketUserEventBuilder) AvatarUrl

func (builder *TicketUserEventBuilder) AvatarUrl(avatarUrl string) *TicketUserEventBuilder

user avartal url

示例值:

func (*TicketUserEventBuilder) Build

func (builder *TicketUserEventBuilder) Build() *TicketUserEvent

func (*TicketUserEventBuilder) Email

func (builder *TicketUserEventBuilder) Email(email string) *TicketUserEventBuilder

user email

示例值:

func (*TicketUserEventBuilder) Id

id

示例值:

func (*TicketUserEventBuilder) Name

名称

示例值:abc

type UnsubscribeEventPathReqBodyBuilder

type UnsubscribeEventPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewUnsubscribeEventPathReqBodyBuilder

func NewUnsubscribeEventPathReqBodyBuilder() *UnsubscribeEventPathReqBodyBuilder

func (*UnsubscribeEventPathReqBodyBuilder) Build

func (*UnsubscribeEventPathReqBodyBuilder) Events

event list to unsubscribe

示例值:

type UnsubscribeEventReq

type UnsubscribeEventReq struct {
	Body *UnsubscribeEventReqBody `body:""`
	// contains filtered or unexported fields
}

type UnsubscribeEventReqBody

type UnsubscribeEventReqBody struct {
	Events []*Event `json:"events,omitempty"` // event list to unsubscribe
}

type UnsubscribeEventReqBodyBuilder

type UnsubscribeEventReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewUnsubscribeEventReqBodyBuilder

func NewUnsubscribeEventReqBodyBuilder() *UnsubscribeEventReqBodyBuilder

func (*UnsubscribeEventReqBodyBuilder) Build

func (*UnsubscribeEventReqBodyBuilder) Events

event list to unsubscribe

示例值:

type UnsubscribeEventReqBuilder

type UnsubscribeEventReqBuilder struct {
	// contains filtered or unexported fields
}

func NewUnsubscribeEventReqBuilder

func NewUnsubscribeEventReqBuilder() *UnsubscribeEventReqBuilder

func (*UnsubscribeEventReqBuilder) Body

用于取消订阅服务台事件

func (*UnsubscribeEventReqBuilder) Build

type UnsubscribeEventResp

type UnsubscribeEventResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*UnsubscribeEventResp) Success

func (resp *UnsubscribeEventResp) Success() bool

type UpdateTicketPathReqBodyBuilder

type UpdateTicketPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewUpdateTicketPathReqBodyBuilder

func NewUpdateTicketPathReqBodyBuilder() *UpdateTicketPathReqBodyBuilder

func (*UpdateTicketPathReqBodyBuilder) Build

func (*UpdateTicketPathReqBodyBuilder) Channel

工单来源渠道ID

示例值:1

func (*UpdateTicketPathReqBodyBuilder) Comment

新评论

示例值:good

func (*UpdateTicketPathReqBodyBuilder) CustomizedFields

func (builder *UpdateTicketPathReqBodyBuilder) CustomizedFields(customizedFields []*CustomizedFieldDisplayItem) *UpdateTicketPathReqBodyBuilder

自定义字段

示例值:

func (*UpdateTicketPathReqBodyBuilder) Solved

工单是否解决,1: 未解决, 2: 已解决

示例值:1

func (*UpdateTicketPathReqBodyBuilder) Status

new status, 1: 已创建, 2: 处理中, 3: 排队中, 5: 待定, 50: 机器人关闭工单, 51: 关闭工单

示例值:1

func (*UpdateTicketPathReqBodyBuilder) TagNames

新标签名

示例值:abc

func (*UpdateTicketPathReqBodyBuilder) TicketType

func (builder *UpdateTicketPathReqBodyBuilder) TicketType(ticketType int) *UpdateTicketPathReqBodyBuilder

ticket stage

示例值:1

type UpdateTicketReq

type UpdateTicketReq struct {
	Body *UpdateTicketReqBody `body:""`
	// contains filtered or unexported fields
}

type UpdateTicketReqBody

type UpdateTicketReqBody struct {
	Status           *int                          `json:"status,omitempty"`            // new status, 1: 已创建, 2: 处理中, 3: 排队中, 5: 待定, 50: 机器人关闭工单, 51: 关闭工单
	TagNames         []string                      `json:"tag_names,omitempty"`         // 新标签名
	Comment          *string                       `json:"comment,omitempty"`           // 新评论
	CustomizedFields []*CustomizedFieldDisplayItem `json:"customized_fields,omitempty"` // 自定义字段
	TicketType       *int                          `json:"ticket_type,omitempty"`       // ticket stage
	Solved           *int                          `json:"solved,omitempty"`            // 工单是否解决,1: 未解决, 2: 已解决
	Channel          *int                          `json:"channel,omitempty"`           // 工单来源渠道ID
}

type UpdateTicketReqBodyBuilder

type UpdateTicketReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewUpdateTicketReqBodyBuilder

func NewUpdateTicketReqBodyBuilder() *UpdateTicketReqBodyBuilder

func (*UpdateTicketReqBodyBuilder) Build

func (*UpdateTicketReqBodyBuilder) Channel

func (builder *UpdateTicketReqBodyBuilder) Channel(channel int) *UpdateTicketReqBodyBuilder

工单来源渠道ID

示例值:1

func (*UpdateTicketReqBodyBuilder) Comment

新评论

示例值:good

func (*UpdateTicketReqBodyBuilder) CustomizedFields

func (builder *UpdateTicketReqBodyBuilder) CustomizedFields(customizedFields []*CustomizedFieldDisplayItem) *UpdateTicketReqBodyBuilder

自定义字段

示例值:

func (*UpdateTicketReqBodyBuilder) Solved

工单是否解决,1: 未解决, 2: 已解决

示例值:1

func (*UpdateTicketReqBodyBuilder) Status

new status, 1: 已创建, 2: 处理中, 3: 排队中, 5: 待定, 50: 机器人关闭工单, 51: 关闭工单

示例值:1

func (*UpdateTicketReqBodyBuilder) TagNames

func (builder *UpdateTicketReqBodyBuilder) TagNames(tagNames []string) *UpdateTicketReqBodyBuilder

新标签名

示例值:abc

func (*UpdateTicketReqBodyBuilder) TicketType

func (builder *UpdateTicketReqBodyBuilder) TicketType(ticketType int) *UpdateTicketReqBodyBuilder

ticket stage

示例值:1

type UpdateTicketReqBuilder

type UpdateTicketReqBuilder struct {
	// contains filtered or unexported fields
}

func NewUpdateTicketReqBuilder

func NewUpdateTicketReqBuilder() *UpdateTicketReqBuilder

func (*UpdateTicketReqBuilder) Body

该接口用于更新服务台工单详情。只会更新数据,不会触发相关操作。如修改工单状态到关单,不会关闭聊天页面。仅支持自建应用。要更新的工单字段必须至少输入一项。

func (*UpdateTicketReqBuilder) Build

func (builder *UpdateTicketReqBuilder) Build() *UpdateTicketReq

func (*UpdateTicketReqBuilder) TicketId

func (builder *UpdateTicketReqBuilder) TicketId(ticketId string) *UpdateTicketReqBuilder

工单ID

示例值:6945345902185807891

type UpdateTicketResp

type UpdateTicketResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*UpdateTicketResp) Success

func (resp *UpdateTicketResp) Success() bool

type UserCustomizedField

type UserCustomizedField struct {
	UserCustomizedFieldId *string `json:"user_customized_field_id,omitempty"` // 字段ID
	Id                    *string `json:"id,omitempty"`                       // 旧字段ID,向后兼容用
	HelpdeskId            *string `json:"helpdesk_id,omitempty"`              // 服务台ID
	KeyName               *string `json:"key_name,omitempty"`                 // 字段键
	DisplayName           *string `json:"display_name,omitempty"`             // 字段展示名称
	Position              *string `json:"position,omitempty"`                 // 字段在列表中的展示位置
	FieldType             *string `json:"field_type,omitempty"`               // 字段类型
	Description           *string `json:"description,omitempty"`              // 字段描述信息
	Visible               *bool   `json:"visible,omitempty"`                  // 字段是否可见
	Editable              *bool   `json:"editable,omitempty"`                 // 字段是否可编辑
	Required              *bool   `json:"required,omitempty"`                 // 字段是否必填
	CreatedAt             *string `json:"created_at,omitempty"`               // 字段创建时间
	UpdatedAt             *string `json:"updated_at,omitempty"`               // 字段修改时间
}

type UserCustomizedFieldBuilder

type UserCustomizedFieldBuilder struct {
	// contains filtered or unexported fields
}

func NewUserCustomizedFieldBuilder

func NewUserCustomizedFieldBuilder() *UserCustomizedFieldBuilder

func (*UserCustomizedFieldBuilder) Build

func (*UserCustomizedFieldBuilder) CreatedAt

func (builder *UserCustomizedFieldBuilder) CreatedAt(createdAt string) *UserCustomizedFieldBuilder

字段创建时间

示例值:1574040677000

func (*UserCustomizedFieldBuilder) Description

func (builder *UserCustomizedFieldBuilder) Description(description string) *UserCustomizedFieldBuilder

字段描述信息

示例值:租户ID

func (*UserCustomizedFieldBuilder) DisplayName

func (builder *UserCustomizedFieldBuilder) DisplayName(displayName string) *UserCustomizedFieldBuilder

字段展示名称

示例值:Company ID

func (*UserCustomizedFieldBuilder) Editable

func (builder *UserCustomizedFieldBuilder) Editable(editable bool) *UserCustomizedFieldBuilder

字段是否可编辑

示例值:false

func (*UserCustomizedFieldBuilder) FieldType

func (builder *UserCustomizedFieldBuilder) FieldType(fieldType string) *UserCustomizedFieldBuilder

字段类型

示例值:string

func (*UserCustomizedFieldBuilder) HelpdeskId

func (builder *UserCustomizedFieldBuilder) HelpdeskId(helpdeskId string) *UserCustomizedFieldBuilder

服务台ID

示例值:1542164574896126

func (*UserCustomizedFieldBuilder) Id

旧字段ID,向后兼容用

示例值:6746384425543548981

func (*UserCustomizedFieldBuilder) KeyName

字段键

示例值:company_id3

func (*UserCustomizedFieldBuilder) Position

func (builder *UserCustomizedFieldBuilder) Position(position string) *UserCustomizedFieldBuilder

字段在列表中的展示位置

示例值:1

func (*UserCustomizedFieldBuilder) Required

func (builder *UserCustomizedFieldBuilder) Required(required bool) *UserCustomizedFieldBuilder

字段是否必填

示例值:false

func (*UserCustomizedFieldBuilder) UpdatedAt

func (builder *UserCustomizedFieldBuilder) UpdatedAt(updatedAt string) *UserCustomizedFieldBuilder

字段修改时间

示例值:1574040677000

func (*UserCustomizedFieldBuilder) UserCustomizedFieldId

func (builder *UserCustomizedFieldBuilder) UserCustomizedFieldId(userCustomizedFieldId string) *UserCustomizedFieldBuilder

字段ID

示例值:6746384425543548981

func (*UserCustomizedFieldBuilder) Visible

func (builder *UserCustomizedFieldBuilder) Visible(visible bool) *UserCustomizedFieldBuilder

字段是否可见

示例值:false

type UserId

type UserId struct {
	UserId  *string `json:"user_id,omitempty"`  //
	OpenId  *string `json:"open_id,omitempty"`  //
	UnionId *string `json:"union_id,omitempty"` //
}

type UserIdBuilder

type UserIdBuilder struct {
	// contains filtered or unexported fields
}

func NewUserIdBuilder

func NewUserIdBuilder() *UserIdBuilder

func (*UserIdBuilder) Build

func (builder *UserIdBuilder) Build() *UserId

func (*UserIdBuilder) OpenId

func (builder *UserIdBuilder) OpenId(openId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UnionId

func (builder *UserIdBuilder) UnionId(unionId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UserId

func (builder *UserIdBuilder) UserId(userId string) *UserIdBuilder

示例值:

type UserQueryFaqInfo

type UserQueryFaqInfo struct {
	Id    *string  `json:"id,omitempty"`    // faq服务台内唯一标识
	Score *float64 `json:"score,omitempty"` // faq匹配得分
}

type UserQueryFaqInfoBuilder

type UserQueryFaqInfoBuilder struct {
	// contains filtered or unexported fields
}

func NewUserQueryFaqInfoBuilder

func NewUserQueryFaqInfoBuilder() *UserQueryFaqInfoBuilder

func (*UserQueryFaqInfoBuilder) Build

func (builder *UserQueryFaqInfoBuilder) Build() *UserQueryFaqInfo

func (*UserQueryFaqInfoBuilder) Id

faq服务台内唯一标识

示例值:12345

func (*UserQueryFaqInfoBuilder) Score

faq匹配得分

示例值:0.9

type WeekdaySchedule

type WeekdaySchedule struct {
	StartTime *string `json:"start_time,omitempty"` // 开始时间, format 00:00 - 23:59
	EndTime   *string `json:"end_time,omitempty"`   // 结束时间, format 00:00 - 23:59
	Weekday   *int    `json:"weekday,omitempty"`    // 星期几, 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday, 6 - Saturday, 7 - Sunday, 9 - Everday, 10 - Weekday, 11 - Weekend
}

type WeekdayScheduleBuilder

type WeekdayScheduleBuilder struct {
	// contains filtered or unexported fields
}

func NewWeekdayScheduleBuilder

func NewWeekdayScheduleBuilder() *WeekdayScheduleBuilder

func (*WeekdayScheduleBuilder) Build

func (builder *WeekdayScheduleBuilder) Build() *WeekdaySchedule

func (*WeekdayScheduleBuilder) EndTime

func (builder *WeekdayScheduleBuilder) EndTime(endTime string) *WeekdayScheduleBuilder

结束时间, format 00:00 - 23:59

示例值:24:00

func (*WeekdayScheduleBuilder) StartTime

func (builder *WeekdayScheduleBuilder) StartTime(startTime string) *WeekdayScheduleBuilder

开始时间, format 00:00 - 23:59

示例值:00:00

func (*WeekdayScheduleBuilder) Weekday

func (builder *WeekdayScheduleBuilder) Weekday(weekday int) *WeekdayScheduleBuilder

星期几, 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday, 6 - Saturday, 7 - Sunday, 9 - Everday, 10 - Weekday, 11 - Weekend

示例值:9

Jump to

Keyboard shortcuts

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