Documentation ¶
Index ¶
- Constants
- type Agent
- type AgentBuilder
- func (builder *AgentBuilder) AvatarUrl(avatarUrl string) *AgentBuilder
- func (builder *AgentBuilder) Build() *Agent
- func (builder *AgentBuilder) CompanyName(companyName string) *AgentBuilder
- func (builder *AgentBuilder) Department(department string) *AgentBuilder
- func (builder *AgentBuilder) Email(email string) *AgentBuilder
- func (builder *AgentBuilder) Id(id string) *AgentBuilder
- func (builder *AgentBuilder) Name(name string) *AgentBuilder
- type AgentEmailAgentResp
- type AgentEmailAgentRespData
- type AgentSchedule
- type AgentScheduleBuilder
- func (builder *AgentScheduleBuilder) Agent(agent *AgentUser) *AgentScheduleBuilder
- func (builder *AgentScheduleBuilder) AgentSkills(agentSkills []*AgentSkillLessInfo) *AgentScheduleBuilder
- func (builder *AgentScheduleBuilder) Build() *AgentSchedule
- func (builder *AgentScheduleBuilder) Schedule(schedule []*WeekdaySchedule) *AgentScheduleBuilder
- func (builder *AgentScheduleBuilder) Status(status int) *AgentScheduleBuilder
- type AgentScheduleUpdateInfo
- type AgentScheduleUpdateInfoBuilder
- func (builder *AgentScheduleUpdateInfoBuilder) AgentId(agentId string) *AgentScheduleUpdateInfoBuilder
- func (builder *AgentScheduleUpdateInfoBuilder) AgentSkillIds(agentSkillIds []string) *AgentScheduleUpdateInfoBuilder
- func (builder *AgentScheduleUpdateInfoBuilder) Build() *AgentScheduleUpdateInfo
- func (builder *AgentScheduleUpdateInfoBuilder) Schedule(schedule []*WeekdaySchedule) *AgentScheduleUpdateInfoBuilder
- type AgentSchedules
- type AgentSchedulesBuilder
- func (builder *AgentSchedulesBuilder) Agent(agent *AgentUser) *AgentSchedulesBuilder
- func (builder *AgentSchedulesBuilder) AgentSkills(agentSkills []*AgentSkillLessInfo) *AgentSchedulesBuilder
- func (builder *AgentSchedulesBuilder) Build() *AgentSchedules
- func (builder *AgentSchedulesBuilder) Schedule(schedule []*WeekdaySchedule) *AgentSchedulesBuilder
- func (builder *AgentSchedulesBuilder) Status(status int) *AgentSchedulesBuilder
- type AgentSkill
- type AgentSkillBuilder
- func (builder *AgentSkillBuilder) AgentIds(agentIds []string) *AgentSkillBuilder
- func (builder *AgentSkillBuilder) Agents(agents []*Agent) *AgentSkillBuilder
- func (builder *AgentSkillBuilder) Build() *AgentSkill
- func (builder *AgentSkillBuilder) HelpdeskId(helpdeskId string) *AgentSkillBuilder
- func (builder *AgentSkillBuilder) Id(id string) *AgentSkillBuilder
- func (builder *AgentSkillBuilder) IsDefault(isDefault bool) *AgentSkillBuilder
- func (builder *AgentSkillBuilder) Name(name string) *AgentSkillBuilder
- func (builder *AgentSkillBuilder) Rules(rules []*AgentSkillRule) *AgentSkillBuilder
- type AgentSkillLessInfo
- type AgentSkillLessInfoBuilder
- func (builder *AgentSkillLessInfoBuilder) Build() *AgentSkillLessInfo
- func (builder *AgentSkillLessInfoBuilder) Id(id string) *AgentSkillLessInfoBuilder
- func (builder *AgentSkillLessInfoBuilder) IsDefault(isDefault bool) *AgentSkillLessInfoBuilder
- func (builder *AgentSkillLessInfoBuilder) Name(name string) *AgentSkillLessInfoBuilder
- type AgentSkillRule
- type AgentSkillRuleBuilder
- func (builder *AgentSkillRuleBuilder) Build() *AgentSkillRule
- func (builder *AgentSkillRuleBuilder) Category(category int) *AgentSkillRuleBuilder
- func (builder *AgentSkillRuleBuilder) DisplayName(displayName string) *AgentSkillRuleBuilder
- func (builder *AgentSkillRuleBuilder) Id(id string) *AgentSkillRuleBuilder
- func (builder *AgentSkillRuleBuilder) Operand(operand string) *AgentSkillRuleBuilder
- func (builder *AgentSkillRuleBuilder) OperatorOptions(operatorOptions []int) *AgentSkillRuleBuilder
- func (builder *AgentSkillRuleBuilder) SelectedOperator(selectedOperator int) *AgentSkillRuleBuilder
- type AgentUser
- type AgentUserBuilder
- func (builder *AgentUserBuilder) AvatarUrl(avatarUrl string) *AgentUserBuilder
- func (builder *AgentUserBuilder) Build() *AgentUser
- func (builder *AgentUserBuilder) CompanyName(companyName string) *AgentUserBuilder
- func (builder *AgentUserBuilder) Department(department string) *AgentUserBuilder
- func (builder *AgentUserBuilder) Email(email string) *AgentUserBuilder
- func (builder *AgentUserBuilder) Id(id string) *AgentUserBuilder
- func (builder *AgentUserBuilder) Name(name string) *AgentUserBuilder
- type AnswerUserQueryTicketPathReqBodyBuilder
- func (builder *AnswerUserQueryTicketPathReqBodyBuilder) Build() (*AnswerUserQueryTicketReqBody, error)
- func (builder *AnswerUserQueryTicketPathReqBodyBuilder) EventId(eventId string) *AnswerUserQueryTicketPathReqBodyBuilder
- func (builder *AnswerUserQueryTicketPathReqBodyBuilder) Faqs(faqs []*UserQueryFaqInfo) *AnswerUserQueryTicketPathReqBodyBuilder
- type AnswerUserQueryTicketReq
- type AnswerUserQueryTicketReqBody
- type AnswerUserQueryTicketReqBodyBuilder
- func (builder *AnswerUserQueryTicketReqBodyBuilder) Build() *AnswerUserQueryTicketReqBody
- func (builder *AnswerUserQueryTicketReqBodyBuilder) EventId(eventId string) *AnswerUserQueryTicketReqBodyBuilder
- func (builder *AnswerUserQueryTicketReqBodyBuilder) Faqs(faqs []*UserQueryFaqInfo) *AnswerUserQueryTicketReqBodyBuilder
- type AnswerUserQueryTicketReqBuilder
- func (builder *AnswerUserQueryTicketReqBuilder) Body(body *AnswerUserQueryTicketReqBody) *AnswerUserQueryTicketReqBuilder
- func (builder *AnswerUserQueryTicketReqBuilder) Build() *AnswerUserQueryTicketReq
- func (builder *AnswerUserQueryTicketReqBuilder) TicketId(ticketId string) *AnswerUserQueryTicketReqBuilder
- type AnswerUserQueryTicketResp
- type BotMessage
- type BotMessageBuilder
- func (builder *BotMessageBuilder) Build() *BotMessage
- func (builder *BotMessageBuilder) Content(content string) *BotMessageBuilder
- func (builder *BotMessageBuilder) MsgType(msgType string) *BotMessageBuilder
- func (builder *BotMessageBuilder) ReceiveType(receiveType string) *BotMessageBuilder
- func (builder *BotMessageBuilder) ReceiverId(receiverId string) *BotMessageBuilder
- type CancelApproveNotificationReq
- type CancelApproveNotificationReqBuilder
- type CancelApproveNotificationResp
- type CancelSendNotificationPathReqBodyBuilder
- type CancelSendNotificationReq
- type CancelSendNotificationReqBody
- type CancelSendNotificationReqBodyBuilder
- type CancelSendNotificationReqBuilder
- func (builder *CancelSendNotificationReqBuilder) Body(body *CancelSendNotificationReqBody) *CancelSendNotificationReqBuilder
- func (builder *CancelSendNotificationReqBuilder) Build() *CancelSendNotificationReq
- func (builder *CancelSendNotificationReqBuilder) NotificationId(notificationId string) *CancelSendNotificationReqBuilder
- type CancelSendNotificationResp
- type Category
- type CategoryBuilder
- func (builder *CategoryBuilder) Build() *Category
- func (builder *CategoryBuilder) CategoryId(categoryId string) *CategoryBuilder
- func (builder *CategoryBuilder) HelpdeskId(helpdeskId string) *CategoryBuilder
- func (builder *CategoryBuilder) Id(id string) *CategoryBuilder
- func (builder *CategoryBuilder) Language(language string) *CategoryBuilder
- func (builder *CategoryBuilder) Name(name string) *CategoryBuilder
- func (builder *CategoryBuilder) ParentId(parentId string) *CategoryBuilder
- type Comments
- type CommentsBuilder
- func (builder *CommentsBuilder) Build() *Comments
- func (builder *CommentsBuilder) Content(content string) *CommentsBuilder
- func (builder *CommentsBuilder) CreatedAt(createdAt int) *CommentsBuilder
- func (builder *CommentsBuilder) Id(id int) *CommentsBuilder
- func (builder *CommentsBuilder) UserAvatarUrl(userAvatarUrl string) *CommentsBuilder
- func (builder *CommentsBuilder) UserId(userId int) *CommentsBuilder
- func (builder *CommentsBuilder) UserName(userName string) *CommentsBuilder
- type CreateAgentSchedulePathReqBodyBuilder
- type CreateAgentScheduleReq
- type CreateAgentScheduleReqBody
- type CreateAgentScheduleReqBodyBuilder
- type CreateAgentScheduleReqBuilder
- type CreateAgentScheduleResp
- type CreateAgentSkillPathReqBodyBuilder
- func (builder *CreateAgentSkillPathReqBodyBuilder) AgentIds(agentIds []string) *CreateAgentSkillPathReqBodyBuilder
- func (builder *CreateAgentSkillPathReqBodyBuilder) Build() (*CreateAgentSkillReqBody, error)
- func (builder *CreateAgentSkillPathReqBodyBuilder) Name(name string) *CreateAgentSkillPathReqBodyBuilder
- func (builder *CreateAgentSkillPathReqBodyBuilder) Rules(rules []*AgentSkillRule) *CreateAgentSkillPathReqBodyBuilder
- type CreateAgentSkillReq
- type CreateAgentSkillReqBody
- type CreateAgentSkillReqBodyBuilder
- func (builder *CreateAgentSkillReqBodyBuilder) AgentIds(agentIds []string) *CreateAgentSkillReqBodyBuilder
- func (builder *CreateAgentSkillReqBodyBuilder) Build() *CreateAgentSkillReqBody
- func (builder *CreateAgentSkillReqBodyBuilder) Name(name string) *CreateAgentSkillReqBodyBuilder
- func (builder *CreateAgentSkillReqBodyBuilder) Rules(rules []*AgentSkillRule) *CreateAgentSkillReqBodyBuilder
- type CreateAgentSkillReqBuilder
- type CreateAgentSkillResp
- type CreateAgentSkillRespData
- type CreateBotMessageReq
- type CreateBotMessageReqBuilder
- type CreateBotMessageResp
- type CreateBotMessageRespData
- type CreateCategoryReq
- type CreateCategoryReqBuilder
- type CreateCategoryResp
- type CreateCategoryRespData
- type CreateFaqPathReqBodyBuilder
- type CreateFaqReq
- type CreateFaqReqBody
- type CreateFaqReqBodyBuilder
- type CreateFaqReqBuilder
- type CreateFaqResp
- type CreateFaqRespData
- type CreateNotificationReq
- type CreateNotificationReqBuilder
- type CreateNotificationResp
- type CreateNotificationRespData
- type CreateTicketCustomizedFieldReq
- type CreateTicketCustomizedFieldReqBuilder
- type CreateTicketCustomizedFieldResp
- type CreateTicketMessagePathReqBodyBuilder
- func (builder *CreateTicketMessagePathReqBodyBuilder) Build() (*CreateTicketMessageReqBody, error)
- func (builder *CreateTicketMessagePathReqBodyBuilder) Content(content string) *CreateTicketMessagePathReqBodyBuilder
- func (builder *CreateTicketMessagePathReqBodyBuilder) MsgType(msgType string) *CreateTicketMessagePathReqBodyBuilder
- type CreateTicketMessageReq
- type CreateTicketMessageReqBody
- type CreateTicketMessageReqBodyBuilder
- func (builder *CreateTicketMessageReqBodyBuilder) Build() *CreateTicketMessageReqBody
- func (builder *CreateTicketMessageReqBodyBuilder) Content(content string) *CreateTicketMessageReqBodyBuilder
- func (builder *CreateTicketMessageReqBodyBuilder) MsgType(msgType string) *CreateTicketMessageReqBodyBuilder
- type CreateTicketMessageReqBuilder
- type CreateTicketMessageResp
- type CreateTicketMessageRespData
- type CustomizedFieldDisplayItem
- type CustomizedFieldDisplayItemBuilder
- func (builder *CustomizedFieldDisplayItemBuilder) Build() *CustomizedFieldDisplayItem
- func (builder *CustomizedFieldDisplayItemBuilder) DisplayName(displayName string) *CustomizedFieldDisplayItemBuilder
- func (builder *CustomizedFieldDisplayItemBuilder) Editable(editable bool) *CustomizedFieldDisplayItemBuilder
- func (builder *CustomizedFieldDisplayItemBuilder) Id(id string) *CustomizedFieldDisplayItemBuilder
- func (builder *CustomizedFieldDisplayItemBuilder) KeyName(keyName string) *CustomizedFieldDisplayItemBuilder
- func (builder *CustomizedFieldDisplayItemBuilder) Position(position int) *CustomizedFieldDisplayItemBuilder
- func (builder *CustomizedFieldDisplayItemBuilder) Required(required bool) *CustomizedFieldDisplayItemBuilder
- func (builder *CustomizedFieldDisplayItemBuilder) Value(value string) *CustomizedFieldDisplayItemBuilder
- type CustomizedFieldsTicketReq
- type CustomizedFieldsTicketReqBuilder
- type CustomizedFieldsTicketResp
- type CustomizedFieldsTicketRespData
- type DeleteAgentSchedulesReq
- type DeleteAgentSchedulesReqBuilder
- type DeleteAgentSchedulesResp
- type DeleteAgentSkillReq
- type DeleteAgentSkillReqBuilder
- type DeleteAgentSkillResp
- type DeleteCategoryReq
- type DeleteCategoryReqBuilder
- type DeleteCategoryResp
- type DeleteFaqReq
- type DeleteFaqReqBuilder
- type DeleteFaqResp
- type DeleteTicketCustomizedFieldReq
- type DeleteTicketCustomizedFieldReqBuilder
- type DeleteTicketCustomizedFieldResp
- type Event
- type EventBuilder
- type ExecuteSendNotificationPathReqBodyBuilder
- type ExecuteSendNotificationReq
- type ExecuteSendNotificationReqBody
- type ExecuteSendNotificationReqBodyBuilder
- type ExecuteSendNotificationReqBuilder
- func (builder *ExecuteSendNotificationReqBuilder) Body(body *ExecuteSendNotificationReqBody) *ExecuteSendNotificationReqBuilder
- func (builder *ExecuteSendNotificationReqBuilder) Build() *ExecuteSendNotificationReq
- func (builder *ExecuteSendNotificationReqBuilder) NotificationId(notificationId string) *ExecuteSendNotificationReqBuilder
- type ExecuteSendNotificationResp
- type Faq
- type FaqBuilder
- func (builder *FaqBuilder) Answer(answer string) *FaqBuilder
- func (builder *FaqBuilder) AnswerRichtext(answerRichtext []*Richtext) *FaqBuilder
- func (builder *FaqBuilder) Build() *Faq
- func (builder *FaqBuilder) Categories(categories []*Category) *FaqBuilder
- func (builder *FaqBuilder) CreateTime(createTime int) *FaqBuilder
- func (builder *FaqBuilder) CreateUser(createUser *TicketUser) *FaqBuilder
- func (builder *FaqBuilder) ExpireTime(expireTime int) *FaqBuilder
- func (builder *FaqBuilder) FaqId(faqId string) *FaqBuilder
- func (builder *FaqBuilder) HelpdeskId(helpdeskId string) *FaqBuilder
- func (builder *FaqBuilder) Id(id string) *FaqBuilder
- func (builder *FaqBuilder) Question(question string) *FaqBuilder
- func (builder *FaqBuilder) Tags(tags []string) *FaqBuilder
- func (builder *FaqBuilder) UpdateTime(updateTime int) *FaqBuilder
- func (builder *FaqBuilder) UpdateUser(updateUser *TicketUser) *FaqBuilder
- type FaqImageFaqReq
- type FaqImageFaqReqBuilder
- type FaqImageFaqResp
- type FaqUpdateInfo
- type FaqUpdateInfoBuilder
- func (builder *FaqUpdateInfoBuilder) Answer(answer string) *FaqUpdateInfoBuilder
- func (builder *FaqUpdateInfoBuilder) AnswerRichtext(answerRichtext string) *FaqUpdateInfoBuilder
- func (builder *FaqUpdateInfoBuilder) Build() *FaqUpdateInfo
- func (builder *FaqUpdateInfoBuilder) CategoryId(categoryId string) *FaqUpdateInfoBuilder
- func (builder *FaqUpdateInfoBuilder) Question(question string) *FaqUpdateInfoBuilder
- func (builder *FaqUpdateInfoBuilder) Tags(tags []string) *FaqUpdateInfoBuilder
- type GetAgentSchedulesReq
- type GetAgentSchedulesReqBuilder
- type GetAgentSchedulesResp
- type GetAgentSchedulesRespData
- type GetAgentSkillReq
- type GetAgentSkillReqBuilder
- type GetAgentSkillResp
- type GetAgentSkillRespData
- type GetCategoryReq
- type GetCategoryReqBuilder
- type GetCategoryResp
- type GetCategoryRespData
- type GetFaqReq
- type GetFaqReqBuilder
- type GetFaqResp
- type GetFaqRespData
- type GetNotificationReq
- type GetNotificationReqBuilder
- type GetNotificationResp
- type GetNotificationRespData
- type GetTicketCustomizedFieldReq
- type GetTicketCustomizedFieldReqBuilder
- type GetTicketCustomizedFieldResp
- type GetTicketCustomizedFieldRespData
- type GetTicketReq
- type GetTicketReqBuilder
- type GetTicketResp
- type GetTicketRespData
- type HelpdeskService
- type ListAgentScheduleReq
- type ListAgentScheduleReqBuilder
- type ListAgentScheduleResp
- type ListAgentScheduleRespData
- type ListAgentSkillResp
- type ListAgentSkillRespData
- type ListAgentSkillRuleResp
- type ListAgentSkillRuleRespData
- type ListCategoryReq
- type ListCategoryReqBuilder
- func (builder *ListCategoryReqBuilder) Asc(asc bool) *ListCategoryReqBuilder
- func (builder *ListCategoryReqBuilder) Build() *ListCategoryReq
- func (builder *ListCategoryReqBuilder) Lang(lang string) *ListCategoryReqBuilder
- func (builder *ListCategoryReqBuilder) OrderBy(orderBy int) *ListCategoryReqBuilder
- type ListCategoryResp
- type ListCategoryRespData
- type ListFaqIterator
- type ListFaqReq
- type ListFaqReqBuilder
- func (builder *ListFaqReqBuilder) Build() *ListFaqReq
- func (builder *ListFaqReqBuilder) CategoryId(categoryId string) *ListFaqReqBuilder
- func (builder *ListFaqReqBuilder) Limit(limit int) *ListFaqReqBuilder
- func (builder *ListFaqReqBuilder) PageSize(pageSize int) *ListFaqReqBuilder
- func (builder *ListFaqReqBuilder) PageToken(pageToken string) *ListFaqReqBuilder
- func (builder *ListFaqReqBuilder) Search(search string) *ListFaqReqBuilder
- func (builder *ListFaqReqBuilder) Status(status string) *ListFaqReqBuilder
- type ListFaqResp
- type ListFaqRespData
- type ListTicketCustomizedFieldPathReqBodyBuilder
- type ListTicketCustomizedFieldReq
- type ListTicketCustomizedFieldReqBody
- type ListTicketCustomizedFieldReqBodyBuilder
- type ListTicketCustomizedFieldReqBuilder
- func (builder *ListTicketCustomizedFieldReqBuilder) Body(body *ListTicketCustomizedFieldReqBody) *ListTicketCustomizedFieldReqBuilder
- func (builder *ListTicketCustomizedFieldReqBuilder) Build() *ListTicketCustomizedFieldReq
- func (builder *ListTicketCustomizedFieldReqBuilder) PageSize(pageSize int) *ListTicketCustomizedFieldReqBuilder
- func (builder *ListTicketCustomizedFieldReqBuilder) PageToken(pageToken string) *ListTicketCustomizedFieldReqBuilder
- type ListTicketCustomizedFieldResp
- type ListTicketCustomizedFieldRespData
- type ListTicketMessageReq
- type ListTicketMessageReqBuilder
- func (builder *ListTicketMessageReqBuilder) Build() *ListTicketMessageReq
- func (builder *ListTicketMessageReqBuilder) Page(page int) *ListTicketMessageReqBuilder
- func (builder *ListTicketMessageReqBuilder) PageSize(pageSize int) *ListTicketMessageReqBuilder
- func (builder *ListTicketMessageReqBuilder) TicketId(ticketId string) *ListTicketMessageReqBuilder
- func (builder *ListTicketMessageReqBuilder) TimeEnd(timeEnd int) *ListTicketMessageReqBuilder
- func (builder *ListTicketMessageReqBuilder) TimeStart(timeStart int) *ListTicketMessageReqBuilder
- type ListTicketMessageResp
- type ListTicketMessageRespData
- type ListTicketReq
- type ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) AgentId(agentId string) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) Build() *ListTicketReq
- func (builder *ListTicketReqBuilder) Channel(channel int) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) ClosedById(closedById string) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) CreateTimeEnd(createTimeEnd int) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) CreateTimeStart(createTimeStart int) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) GuestId(guestId string) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) GuestName(guestName string) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) Page(page int) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) PageSize(pageSize int) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) Score(score int) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) Solved(solved int) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) StatusList(statusList []int) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) Tags(tags []string) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) TicketId(ticketId string) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) Type(type_ int) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) UpdateTimeEnd(updateTimeEnd int) *ListTicketReqBuilder
- func (builder *ListTicketReqBuilder) UpdateTimeStart(updateTimeStart int) *ListTicketReqBuilder
- type ListTicketResp
- type ListTicketRespData
- type Notification
- type NotificationBuilder
- func (builder *NotificationBuilder) Build() *Notification
- func (builder *NotificationBuilder) ChatList(chatList []*NotificationChat) *NotificationBuilder
- func (builder *NotificationBuilder) CreateUser(createUser *NotificationUser) *NotificationBuilder
- func (builder *NotificationBuilder) CreatedAt(createdAt string) *NotificationBuilder
- func (builder *NotificationBuilder) DepartmentList(departmentList []*NotificationDepartment) *NotificationBuilder
- func (builder *NotificationBuilder) Ext(ext string) *NotificationBuilder
- func (builder *NotificationBuilder) Id(id string) *NotificationBuilder
- func (builder *NotificationBuilder) JobName(jobName string) *NotificationBuilder
- func (builder *NotificationBuilder) NewStaffScopeDepartmentList(newStaffScopeDepartmentList []*NotificationDepartment) *NotificationBuilder
- func (builder *NotificationBuilder) NewStaffScopeType(newStaffScopeType int) *NotificationBuilder
- func (builder *NotificationBuilder) PushContent(pushContent string) *NotificationBuilder
- func (builder *NotificationBuilder) PushScopeType(pushScopeType int) *NotificationBuilder
- func (builder *NotificationBuilder) PushType(pushType int) *NotificationBuilder
- func (builder *NotificationBuilder) ReadUserCount(readUserCount int) *NotificationBuilder
- func (builder *NotificationBuilder) SendAt(sendAt string) *NotificationBuilder
- func (builder *NotificationBuilder) SentUserCount(sentUserCount int) *NotificationBuilder
- func (builder *NotificationBuilder) Status(status int) *NotificationBuilder
- func (builder *NotificationBuilder) TargetUserCount(targetUserCount int) *NotificationBuilder
- func (builder *NotificationBuilder) UpdateUser(updateUser *NotificationUser) *NotificationBuilder
- func (builder *NotificationBuilder) UpdatedAt(updatedAt string) *NotificationBuilder
- func (builder *NotificationBuilder) UserList(userList []*NotificationUser) *NotificationBuilder
- type NotificationChat
- type NotificationChatBuilder
- type NotificationDepartment
- type NotificationDepartmentBuilder
- type NotificationUser
- type NotificationUserBuilder
- func (builder *NotificationUserBuilder) AvatarUrl(avatarUrl string) *NotificationUserBuilder
- func (builder *NotificationUserBuilder) Build() *NotificationUser
- func (builder *NotificationUserBuilder) Name(name string) *NotificationUserBuilder
- func (builder *NotificationUserBuilder) UserId(userId string) *NotificationUserBuilder
- type P2NotificationApproveV1
- type P2NotificationApproveV1Data
- type P2NotificationApproveV1Handler
- type P2TicketCreatedV1
- type P2TicketCreatedV1Data
- type P2TicketCreatedV1Handler
- type P2TicketMessageCreatedV1
- type P2TicketMessageCreatedV1Data
- type P2TicketMessageCreatedV1Handler
- type P2TicketUpdatedV1
- type P2TicketUpdatedV1Data
- type P2TicketUpdatedV1Handler
- type PatchAgentPathReqBodyBuilder
- type PatchAgentReq
- type PatchAgentReqBody
- type PatchAgentReqBodyBuilder
- type PatchAgentReqBuilder
- type PatchAgentResp
- type PatchAgentSchedulesPathReqBodyBuilder
- type PatchAgentSchedulesReq
- type PatchAgentSchedulesReqBody
- type PatchAgentSchedulesReqBodyBuilder
- type PatchAgentSchedulesReqBuilder
- type PatchAgentSchedulesResp
- type PatchAgentSkillPathReqBodyBuilder
- type PatchAgentSkillReq
- type PatchAgentSkillReqBody
- type PatchAgentSkillReqBodyBuilder
- type PatchAgentSkillReqBuilder
- type PatchAgentSkillResp
- type PatchCategoryReq
- type PatchCategoryReqBuilder
- type PatchCategoryResp
- type PatchFaqPathReqBodyBuilder
- type PatchFaqReq
- type PatchFaqReqBody
- type PatchFaqReqBodyBuilder
- type PatchFaqReqBuilder
- type PatchFaqResp
- type PatchNotificationReq
- type PatchNotificationReqBuilder
- func (builder *PatchNotificationReqBuilder) Build() *PatchNotificationReq
- func (builder *PatchNotificationReqBuilder) Notification(notification *Notification) *PatchNotificationReqBuilder
- func (builder *PatchNotificationReqBuilder) NotificationId(notificationId string) *PatchNotificationReqBuilder
- func (builder *PatchNotificationReqBuilder) UserIdType(userIdType string) *PatchNotificationReqBuilder
- type PatchNotificationResp
- type PatchTicketCustomizedFieldReq
- type PatchTicketCustomizedFieldReqBuilder
- func (builder *PatchTicketCustomizedFieldReqBuilder) Build() *PatchTicketCustomizedFieldReq
- func (builder *PatchTicketCustomizedFieldReqBuilder) TicketCustomizedField(ticketCustomizedField *TicketCustomizedField) *PatchTicketCustomizedFieldReqBuilder
- func (builder *PatchTicketCustomizedFieldReqBuilder) TicketCustomizedFieldId(ticketCustomizedFieldId string) *PatchTicketCustomizedFieldReqBuilder
- type PatchTicketCustomizedFieldResp
- type PreviewNotificationReq
- type PreviewNotificationReqBuilder
- type PreviewNotificationResp
- type Richtext
- type RichtextBuilder
- type SearchFaqIterator
- type SearchFaqReq
- type SearchFaqReqBuilder
- func (builder *SearchFaqReqBuilder) Base64(base64 string) *SearchFaqReqBuilder
- func (builder *SearchFaqReqBuilder) Build() *SearchFaqReq
- func (builder *SearchFaqReqBuilder) Limit(limit int) *SearchFaqReqBuilder
- func (builder *SearchFaqReqBuilder) PageSize(pageSize int) *SearchFaqReqBuilder
- func (builder *SearchFaqReqBuilder) PageToken(pageToken string) *SearchFaqReqBuilder
- func (builder *SearchFaqReqBuilder) Query(query string) *SearchFaqReqBuilder
- type SearchFaqResp
- type SearchFaqRespData
- type StartServiceTicketPathReqBodyBuilder
- func (builder *StartServiceTicketPathReqBodyBuilder) AppointedAgents(appointedAgents []string) *StartServiceTicketPathReqBodyBuilder
- func (builder *StartServiceTicketPathReqBodyBuilder) Build() (*StartServiceTicketReqBody, error)
- func (builder *StartServiceTicketPathReqBodyBuilder) CustomizedInfo(customizedInfo string) *StartServiceTicketPathReqBodyBuilder
- func (builder *StartServiceTicketPathReqBodyBuilder) HumanService(humanService bool) *StartServiceTicketPathReqBodyBuilder
- func (builder *StartServiceTicketPathReqBodyBuilder) OpenId(openId string) *StartServiceTicketPathReqBodyBuilder
- type StartServiceTicketReq
- type StartServiceTicketReqBody
- type StartServiceTicketReqBodyBuilder
- func (builder *StartServiceTicketReqBodyBuilder) AppointedAgents(appointedAgents []string) *StartServiceTicketReqBodyBuilder
- func (builder *StartServiceTicketReqBodyBuilder) Build() *StartServiceTicketReqBody
- func (builder *StartServiceTicketReqBodyBuilder) CustomizedInfo(customizedInfo string) *StartServiceTicketReqBodyBuilder
- func (builder *StartServiceTicketReqBodyBuilder) HumanService(humanService bool) *StartServiceTicketReqBodyBuilder
- func (builder *StartServiceTicketReqBodyBuilder) OpenId(openId string) *StartServiceTicketReqBodyBuilder
- type StartServiceTicketReqBuilder
- type StartServiceTicketResp
- type StartServiceTicketRespData
- type SubmitApproveNotificationPathReqBodyBuilder
- type SubmitApproveNotificationReq
- type SubmitApproveNotificationReqBody
- type SubmitApproveNotificationReqBodyBuilder
- type SubmitApproveNotificationReqBuilder
- func (builder *SubmitApproveNotificationReqBuilder) Body(body *SubmitApproveNotificationReqBody) *SubmitApproveNotificationReqBuilder
- func (builder *SubmitApproveNotificationReqBuilder) Build() *SubmitApproveNotificationReq
- func (builder *SubmitApproveNotificationReqBuilder) NotificationId(notificationId string) *SubmitApproveNotificationReqBuilder
- type SubmitApproveNotificationResp
- type SubmitApproveNotificationRespData
- type SubscribeEventPathReqBodyBuilder
- type SubscribeEventReq
- type SubscribeEventReqBody
- type SubscribeEventReqBodyBuilder
- type SubscribeEventReqBuilder
- type SubscribeEventResp
- type Ticket
- type TicketBuilder
- func (builder *TicketBuilder) ActualProcessingTime(actualProcessingTime int) *TicketBuilder
- func (builder *TicketBuilder) AgentEntryTime(agentEntryTime int) *TicketBuilder
- func (builder *TicketBuilder) AgentFirstResponseDuration(agentFirstResponseDuration int) *TicketBuilder
- func (builder *TicketBuilder) AgentFirstResponseTime(agentFirstResponseTime int) *TicketBuilder
- func (builder *TicketBuilder) AgentLastResponseTime(agentLastResponseTime int) *TicketBuilder
- func (builder *TicketBuilder) AgentOwner(agentOwner *TicketUser) *TicketBuilder
- func (builder *TicketBuilder) AgentResolutionTime(agentResolutionTime int) *TicketBuilder
- func (builder *TicketBuilder) AgentServiceDuration(agentServiceDuration float64) *TicketBuilder
- func (builder *TicketBuilder) Agents(agents []*TicketUser) *TicketBuilder
- func (builder *TicketBuilder) BotServiceDuration(botServiceDuration int) *TicketBuilder
- func (builder *TicketBuilder) Build() *Ticket
- func (builder *TicketBuilder) Channel(channel int) *TicketBuilder
- func (builder *TicketBuilder) ClosedAt(closedAt int) *TicketBuilder
- func (builder *TicketBuilder) ClosedBy(closedBy *TicketUser) *TicketBuilder
- func (builder *TicketBuilder) Collaborators(collaborators []*TicketUser) *TicketBuilder
- func (builder *TicketBuilder) Comments(comments *Comments) *TicketBuilder
- func (builder *TicketBuilder) CreatedAt(createdAt int) *TicketBuilder
- func (builder *TicketBuilder) CustomizedFields(customizedFields []*CustomizedFieldDisplayItem) *TicketBuilder
- func (builder *TicketBuilder) DissatisfactionReason(dissatisfactionReason []string) *TicketBuilder
- func (builder *TicketBuilder) Guest(guest *TicketUser) *TicketBuilder
- func (builder *TicketBuilder) HelpdeskId(helpdeskId string) *TicketBuilder
- func (builder *TicketBuilder) Score(score int) *TicketBuilder
- func (builder *TicketBuilder) Solve(solve int) *TicketBuilder
- func (builder *TicketBuilder) Status(status int) *TicketBuilder
- func (builder *TicketBuilder) TicketId(ticketId string) *TicketBuilder
- func (builder *TicketBuilder) TicketType(ticketType int) *TicketBuilder
- func (builder *TicketBuilder) UpdatedAt(updatedAt int) *TicketBuilder
- type TicketCustomizedField
- type TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) Build() *TicketCustomizedField
- func (builder *TicketCustomizedFieldBuilder) CreatedAt(createdAt string) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) CreatedBy(createdBy *TicketUser) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) Description(description string) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) DisplayName(displayName string) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) DropdownAllowMultiple(dropdownAllowMultiple bool) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) Editable(editable bool) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) FieldType(fieldType string) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) HelpdeskId(helpdeskId string) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) KeyName(keyName string) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) Position(position string) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) Required(required bool) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) TicketCustomizedFieldId(ticketCustomizedFieldId string) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) UpdatedAt(updatedAt string) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) UpdatedBy(updatedBy *TicketUser) *TicketCustomizedFieldBuilder
- func (builder *TicketCustomizedFieldBuilder) Visible(visible bool) *TicketCustomizedFieldBuilder
- type TicketEvent
- type TicketEventBuilder
- func (builder *TicketEventBuilder) Agents(agents []*TicketUserEvent) *TicketEventBuilder
- func (builder *TicketEventBuilder) Build() *TicketEvent
- func (builder *TicketEventBuilder) Channel(channel int) *TicketEventBuilder
- func (builder *TicketEventBuilder) ChatId(chatId string) *TicketEventBuilder
- func (builder *TicketEventBuilder) ClosedAt(closedAt int) *TicketEventBuilder
- func (builder *TicketEventBuilder) ClosedBy(closedBy *TicketUserEvent) *TicketEventBuilder
- func (builder *TicketEventBuilder) Collaborators(collaborators []*TicketUserEvent) *TicketEventBuilder
- func (builder *TicketEventBuilder) CreatedAt(createdAt int) *TicketEventBuilder
- func (builder *TicketEventBuilder) CustomizedFields(customizedFields []*CustomizedFieldDisplayItem) *TicketEventBuilder
- func (builder *TicketEventBuilder) Guest(guest *TicketUserEvent) *TicketEventBuilder
- func (builder *TicketEventBuilder) HelpdeskId(helpdeskId string) *TicketEventBuilder
- func (builder *TicketEventBuilder) Score(score int) *TicketEventBuilder
- func (builder *TicketEventBuilder) Solve(solve int) *TicketEventBuilder
- func (builder *TicketEventBuilder) Stage(stage int) *TicketEventBuilder
- func (builder *TicketEventBuilder) Status(status int) *TicketEventBuilder
- func (builder *TicketEventBuilder) TicketId(ticketId string) *TicketEventBuilder
- func (builder *TicketEventBuilder) UpdatedAt(updatedAt int) *TicketEventBuilder
- type TicketEventUpdateInfo
- type TicketEventUpdateInfoBuilder
- func (builder *TicketEventUpdateInfoBuilder) Build() *TicketEventUpdateInfo
- func (builder *TicketEventUpdateInfoBuilder) Stage(stage int) *TicketEventUpdateInfoBuilder
- func (builder *TicketEventUpdateInfoBuilder) Status(status int) *TicketEventUpdateInfoBuilder
- func (builder *TicketEventUpdateInfoBuilder) UpdatedAt(updatedAt int) *TicketEventUpdateInfoBuilder
- type TicketImageTicketReq
- type TicketImageTicketReqBuilder
- func (builder *TicketImageTicketReqBuilder) Build() *TicketImageTicketReq
- func (builder *TicketImageTicketReqBuilder) Index(index int) *TicketImageTicketReqBuilder
- func (builder *TicketImageTicketReqBuilder) MsgId(msgId string) *TicketImageTicketReqBuilder
- func (builder *TicketImageTicketReqBuilder) TicketId(ticketId string) *TicketImageTicketReqBuilder
- type TicketImageTicketResp
- type TicketMessage
- type TicketMessageBuilder
- func (builder *TicketMessageBuilder) AvatarUrl(avatarUrl string) *TicketMessageBuilder
- func (builder *TicketMessageBuilder) Build() *TicketMessage
- func (builder *TicketMessageBuilder) Content(content string) *TicketMessageBuilder
- func (builder *TicketMessageBuilder) CreatedAt(createdAt int) *TicketMessageBuilder
- func (builder *TicketMessageBuilder) Id(id string) *TicketMessageBuilder
- func (builder *TicketMessageBuilder) MessageId(messageId string) *TicketMessageBuilder
- func (builder *TicketMessageBuilder) MessageType(messageType string) *TicketMessageBuilder
- func (builder *TicketMessageBuilder) UserId(userId string) *TicketMessageBuilder
- func (builder *TicketMessageBuilder) UserName(userName string) *TicketMessageBuilder
- type TicketMessageContent
- type TicketMessageContentBuilder
- func (builder *TicketMessageContentBuilder) Build() *TicketMessageContent
- func (builder *TicketMessageContentBuilder) Content(content string) *TicketMessageContentBuilder
- func (builder *TicketMessageContentBuilder) ImageKey(imageKey string) *TicketMessageContentBuilder
- func (builder *TicketMessageContentBuilder) ImageKeys(imageKeys []string) *TicketMessageContentBuilder
- func (builder *TicketMessageContentBuilder) MsgType(msgType string) *TicketMessageContentBuilder
- type TicketMessageEvent
- type TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) Build() *TicketMessageEvent
- func (builder *TicketMessageEventBuilder) ChatId(chatId string) *TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) Content(content *TicketMessageContent) *TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) EventId(eventId string) *TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) MessageId(messageId string) *TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) MsgType(msgType string) *TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) Position(position string) *TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) SenderId(senderId *UserId) *TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) SenderType(senderType int) *TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) Text(text string) *TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) Ticket(ticket *Ticket) *TicketMessageEventBuilder
- func (builder *TicketMessageEventBuilder) TicketMessageId(ticketMessageId string) *TicketMessageEventBuilder
- type TicketUser
- type TicketUserBuilder
- func (builder *TicketUserBuilder) AvatarUrl(avatarUrl string) *TicketUserBuilder
- func (builder *TicketUserBuilder) Build() *TicketUser
- func (builder *TicketUserBuilder) City(city string) *TicketUserBuilder
- func (builder *TicketUserBuilder) Country(country string) *TicketUserBuilder
- func (builder *TicketUserBuilder) Department(department string) *TicketUserBuilder
- func (builder *TicketUserBuilder) Email(email string) *TicketUserBuilder
- func (builder *TicketUserBuilder) Id(id string) *TicketUserBuilder
- func (builder *TicketUserBuilder) Name(name string) *TicketUserBuilder
- type TicketUserEvent
- type TicketUserEventBuilder
- func (builder *TicketUserEventBuilder) AvatarUrl(avatarUrl string) *TicketUserEventBuilder
- func (builder *TicketUserEventBuilder) Build() *TicketUserEvent
- func (builder *TicketUserEventBuilder) Email(email string) *TicketUserEventBuilder
- func (builder *TicketUserEventBuilder) Id(id *UserId) *TicketUserEventBuilder
- func (builder *TicketUserEventBuilder) Name(name string) *TicketUserEventBuilder
- type UnsubscribeEventPathReqBodyBuilder
- type UnsubscribeEventReq
- type UnsubscribeEventReqBody
- type UnsubscribeEventReqBodyBuilder
- type UnsubscribeEventReqBuilder
- type UnsubscribeEventResp
- type UpdateTicketPathReqBodyBuilder
- func (builder *UpdateTicketPathReqBodyBuilder) Build() (*UpdateTicketReqBody, error)
- func (builder *UpdateTicketPathReqBodyBuilder) Channel(channel int) *UpdateTicketPathReqBodyBuilder
- func (builder *UpdateTicketPathReqBodyBuilder) Comment(comment string) *UpdateTicketPathReqBodyBuilder
- func (builder *UpdateTicketPathReqBodyBuilder) CustomizedFields(customizedFields []*CustomizedFieldDisplayItem) *UpdateTicketPathReqBodyBuilder
- func (builder *UpdateTicketPathReqBodyBuilder) Solved(solved int) *UpdateTicketPathReqBodyBuilder
- func (builder *UpdateTicketPathReqBodyBuilder) Status(status int) *UpdateTicketPathReqBodyBuilder
- func (builder *UpdateTicketPathReqBodyBuilder) TagNames(tagNames []string) *UpdateTicketPathReqBodyBuilder
- func (builder *UpdateTicketPathReqBodyBuilder) TicketType(ticketType int) *UpdateTicketPathReqBodyBuilder
- type UpdateTicketReq
- type UpdateTicketReqBody
- type UpdateTicketReqBodyBuilder
- func (builder *UpdateTicketReqBodyBuilder) Build() *UpdateTicketReqBody
- func (builder *UpdateTicketReqBodyBuilder) Channel(channel int) *UpdateTicketReqBodyBuilder
- func (builder *UpdateTicketReqBodyBuilder) Comment(comment string) *UpdateTicketReqBodyBuilder
- func (builder *UpdateTicketReqBodyBuilder) CustomizedFields(customizedFields []*CustomizedFieldDisplayItem) *UpdateTicketReqBodyBuilder
- func (builder *UpdateTicketReqBodyBuilder) Solved(solved int) *UpdateTicketReqBodyBuilder
- func (builder *UpdateTicketReqBodyBuilder) Status(status int) *UpdateTicketReqBodyBuilder
- func (builder *UpdateTicketReqBodyBuilder) TagNames(tagNames []string) *UpdateTicketReqBodyBuilder
- func (builder *UpdateTicketReqBodyBuilder) TicketType(ticketType int) *UpdateTicketReqBodyBuilder
- type UpdateTicketReqBuilder
- type UpdateTicketResp
- type UserCustomizedField
- type UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) Build() *UserCustomizedField
- func (builder *UserCustomizedFieldBuilder) CreatedAt(createdAt string) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) Description(description string) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) DisplayName(displayName string) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) Editable(editable bool) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) FieldType(fieldType string) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) HelpdeskId(helpdeskId string) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) Id(id string) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) KeyName(keyName string) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) Position(position string) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) Required(required bool) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) UpdatedAt(updatedAt string) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) UserCustomizedFieldId(userCustomizedFieldId string) *UserCustomizedFieldBuilder
- func (builder *UserCustomizedFieldBuilder) Visible(visible bool) *UserCustomizedFieldBuilder
- type UserId
- type UserIdBuilder
- type UserQueryFaqInfo
- type UserQueryFaqInfoBuilder
- type WeekdaySchedule
- type WeekdayScheduleBuilder
- func (builder *WeekdayScheduleBuilder) Build() *WeekdaySchedule
- func (builder *WeekdayScheduleBuilder) EndTime(endTime string) *WeekdayScheduleBuilder
- func (builder *WeekdayScheduleBuilder) StartTime(startTime string) *WeekdayScheduleBuilder
- func (builder *WeekdayScheduleBuilder) Weekday(weekday int) *WeekdayScheduleBuilder
Constants ¶
const ( MsgTypeText = "text" // 普通文本 MsgTypePost = "post" // 富文本 MsgTypeImage = "image" // 图片 MsgTypeInteractive = "interactive" // 卡片消息 )
const ( ReceiveTypeChat = "chat" // 通过服务台专属群发送 ReceiveTypeUser = "user" // 通过服务台机器人私聊发送 )
const ( UserIdTypeUserId = "user_id" // 以user_id来识别用户 UserIdTypeUnionId = "union_id" // 以union_id来识别用户 UserIdTypeOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeCreateNotificationUserId = "user_id" // 以user_id来识别用户 UserIdTypeCreateNotificationUnionId = "union_id" // 以union_id来识别用户 UserIdTypeCreateNotificationOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeGetNotificationUserId = "user_id" // 以user_id来识别用户 UserIdTypeGetNotificationUnionId = "union_id" // 以union_id来识别用户 UserIdTypeGetNotificationOpenId = "open_id" // 以open_id来识别用户 )
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
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 ¶
func (builder *AgentScheduleUpdateInfoBuilder) AgentId(agentId string) *AgentScheduleUpdateInfoBuilder
客服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 (builder *AgentScheduleUpdateInfoBuilder) Build() *AgentScheduleUpdateInfo
func (*AgentScheduleUpdateInfoBuilder) Schedule ¶
func (builder *AgentScheduleUpdateInfoBuilder) Schedule(schedule []*WeekdaySchedule) *AgentScheduleUpdateInfoBuilder
工作日程列表
示例值:
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 AgentSkillLessInfoBuilder ¶
type AgentSkillLessInfoBuilder struct {
// contains filtered or unexported fields
}
func NewAgentSkillLessInfoBuilder ¶
func NewAgentSkillLessInfoBuilder() *AgentSkillLessInfoBuilder
func (*AgentSkillLessInfoBuilder) Build ¶
func (builder *AgentSkillLessInfoBuilder) Build() *AgentSkillLessInfo
func (*AgentSkillLessInfoBuilder) Id ¶
func (builder *AgentSkillLessInfoBuilder) Id(id string) *AgentSkillLessInfoBuilder
客服技能 id
示例值:agent-skill-id
func (*AgentSkillLessInfoBuilder) IsDefault ¶
func (builder *AgentSkillLessInfoBuilder) IsDefault(isDefault bool) *AgentSkillLessInfoBuilder
是默认技能
示例值:false
func (*AgentSkillLessInfoBuilder) Name ¶
func (builder *AgentSkillLessInfoBuilder) Name(name string) *AgentSkillLessInfoBuilder
客服技能名
示例值: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 ¶
func (builder *AgentSkillRuleBuilder) Id(id string) *AgentSkillRuleBuilder
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
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
示例值: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 (builder *AnswerUserQueryTicketPathReqBodyBuilder) Build() (*AnswerUserQueryTicketReqBody, error)
func (*AnswerUserQueryTicketPathReqBodyBuilder) EventId ¶
func (builder *AnswerUserQueryTicketPathReqBodyBuilder) EventId(eventId string) *AnswerUserQueryTicketPathReqBodyBuilder
事件ID,可从订阅事件中提取
示例值:abcd
func (*AnswerUserQueryTicketPathReqBodyBuilder) Faqs ¶
func (builder *AnswerUserQueryTicketPathReqBodyBuilder) Faqs(faqs []*UserQueryFaqInfo) *AnswerUserQueryTicketPathReqBodyBuilder
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 (builder *AnswerUserQueryTicketReqBodyBuilder) Build() *AnswerUserQueryTicketReqBody
func (*AnswerUserQueryTicketReqBodyBuilder) EventId ¶
func (builder *AnswerUserQueryTicketReqBodyBuilder) EventId(eventId string) *AnswerUserQueryTicketReqBodyBuilder
事件ID,可从订阅事件中提取
示例值:abcd
func (*AnswerUserQueryTicketReqBodyBuilder) Faqs ¶
func (builder *AnswerUserQueryTicketReqBodyBuilder) Faqs(faqs []*UserQueryFaqInfo) *AnswerUserQueryTicketReqBodyBuilder
faq结果列表
示例值:
type AnswerUserQueryTicketReqBuilder ¶
type AnswerUserQueryTicketReqBuilder struct {
// contains filtered or unexported fields
}
func NewAnswerUserQueryTicketReqBuilder ¶
func NewAnswerUserQueryTicketReqBuilder() *AnswerUserQueryTicketReqBuilder
func (*AnswerUserQueryTicketReqBuilder) Body ¶
func (builder *AnswerUserQueryTicketReqBuilder) Body(body *AnswerUserQueryTicketReqBody) *AnswerUserQueryTicketReqBuilder
该接口用于回复用户提问结果至工单,需要工单仍处于进行中且未接入人工状态。仅支持自建应用。
func (*AnswerUserQueryTicketReqBuilder) Build ¶
func (builder *AnswerUserQueryTicketReqBuilder) Build() *AnswerUserQueryTicketReq
func (*AnswerUserQueryTicketReqBuilder) TicketId ¶
func (builder *AnswerUserQueryTicketReqBuilder) TicketId(ticketId string) *AnswerUserQueryTicketReqBuilder
工单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 (builder *CancelApproveNotificationReqBuilder) Build() *CancelApproveNotificationReq
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 (builder *CancelSendNotificationPathReqBodyBuilder) Build() (*CancelSendNotificationReqBody, error)
func (*CancelSendNotificationPathReqBodyBuilder) IsRecall ¶
func (builder *CancelSendNotificationPathReqBodyBuilder) IsRecall(isRecall bool) *CancelSendNotificationPathReqBodyBuilder
是否召回已发送的消息,新人入职消息同样适用
示例值: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 (builder *CancelSendNotificationReqBodyBuilder) Build() *CancelSendNotificationReqBody
func (*CancelSendNotificationReqBodyBuilder) IsRecall ¶
func (builder *CancelSendNotificationReqBodyBuilder) IsRecall(isRecall bool) *CancelSendNotificationReqBodyBuilder
是否召回已发送的消息,新人入职消息同样适用
示例值:true
type CancelSendNotificationReqBuilder ¶
type CancelSendNotificationReqBuilder struct {
// contains filtered or unexported fields
}
func NewCancelSendNotificationReqBuilder ¶
func NewCancelSendNotificationReqBuilder() *CancelSendNotificationReqBuilder
func (*CancelSendNotificationReqBuilder) Body ¶
func (builder *CancelSendNotificationReqBuilder) Body(body *CancelSendNotificationReqBody) *CancelSendNotificationReqBuilder
取消推送接口,审核通过后待调度可以调用,发送过程中可以调用(会撤回已发送的消息),发送完成后可以需要推送(会撤回所有已发送的消息)
func (*CancelSendNotificationReqBuilder) Build ¶
func (builder *CancelSendNotificationReqBuilder) Build() *CancelSendNotificationReq
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 (builder *CreateAgentSchedulePathReqBodyBuilder) AgentSchedules(agentSchedules []*AgentScheduleUpdateInfo) *CreateAgentSchedulePathReqBodyBuilder
新客服日程
示例值:
func (*CreateAgentSchedulePathReqBodyBuilder) Build ¶
func (builder *CreateAgentSchedulePathReqBodyBuilder) Build() (*CreateAgentScheduleReqBody, error)
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 (builder *CreateAgentScheduleReqBodyBuilder) AgentSchedules(agentSchedules []*AgentScheduleUpdateInfo) *CreateAgentScheduleReqBodyBuilder
新客服日程
示例值:
func (*CreateAgentScheduleReqBodyBuilder) Build ¶
func (builder *CreateAgentScheduleReqBodyBuilder) Build() *CreateAgentScheduleReqBody
type CreateAgentScheduleReqBuilder ¶
type CreateAgentScheduleReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateAgentScheduleReqBuilder ¶
func NewCreateAgentScheduleReqBuilder() *CreateAgentScheduleReqBuilder
func (*CreateAgentScheduleReqBuilder) Body ¶
func (builder *CreateAgentScheduleReqBuilder) Body(body *CreateAgentScheduleReqBody) *CreateAgentScheduleReqBuilder
该接口用于创建客服
func (*CreateAgentScheduleReqBuilder) Build ¶
func (builder *CreateAgentScheduleReqBuilder) Build() *CreateAgentScheduleReq
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 ¶
func (builder *CreateAgentSkillPathReqBodyBuilder) AgentIds(agentIds []string) *CreateAgentSkillPathReqBodyBuilder
客服 ids
示例值:["客服ID"]
func (*CreateAgentSkillPathReqBodyBuilder) Build ¶
func (builder *CreateAgentSkillPathReqBodyBuilder) Build() (*CreateAgentSkillReqBody, error)
func (*CreateAgentSkillPathReqBodyBuilder) Name ¶
func (builder *CreateAgentSkillPathReqBodyBuilder) Name(name string) *CreateAgentSkillPathReqBodyBuilder
技能名
示例值:test-skill
func (*CreateAgentSkillPathReqBodyBuilder) Rules ¶
func (builder *CreateAgentSkillPathReqBodyBuilder) Rules(rules []*AgentSkillRule) *CreateAgentSkillPathReqBodyBuilder
技能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 ¶
func (builder *CreateAgentSkillReqBodyBuilder) AgentIds(agentIds []string) *CreateAgentSkillReqBodyBuilder
客服 ids
示例值:["客服ID"]
func (*CreateAgentSkillReqBodyBuilder) Build ¶
func (builder *CreateAgentSkillReqBodyBuilder) Build() *CreateAgentSkillReqBody
func (*CreateAgentSkillReqBodyBuilder) Name ¶
func (builder *CreateAgentSkillReqBodyBuilder) Name(name string) *CreateAgentSkillReqBodyBuilder
技能名
示例值:test-skill
func (*CreateAgentSkillReqBodyBuilder) Rules ¶
func (builder *CreateAgentSkillReqBodyBuilder) Rules(rules []*AgentSkillRule) *CreateAgentSkillReqBodyBuilder
技能rules
示例值:
type CreateAgentSkillReqBuilder ¶
type CreateAgentSkillReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateAgentSkillReqBuilder ¶
func NewCreateAgentSkillReqBuilder() *CreateAgentSkillReqBuilder
func (*CreateAgentSkillReqBuilder) Body ¶
func (builder *CreateAgentSkillReqBuilder) Body(body *CreateAgentSkillReqBody) *CreateAgentSkillReqBuilder
该接口用于创建客服技能
func (*CreateAgentSkillReqBuilder) Build ¶
func (builder *CreateAgentSkillReqBuilder) Build() *CreateAgentSkillReq
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 (builder *CreateBotMessageReqBuilder) Build() *CreateBotMessageReq
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 ¶
func (builder *CreateFaqPathReqBodyBuilder) Faq(faq *FaqUpdateInfo) *CreateFaqPathReqBodyBuilder
知识库详情
示例值:
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 ¶
func (builder *CreateFaqReqBodyBuilder) Faq(faq *FaqUpdateInfo) *CreateFaqReqBodyBuilder
知识库详情
示例值:
type CreateFaqReqBuilder ¶
type CreateFaqReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateFaqReqBuilder ¶
func NewCreateFaqReqBuilder() *CreateFaqReqBuilder
func (*CreateFaqReqBuilder) Body ¶
func (builder *CreateFaqReqBuilder) Body(body *CreateFaqReqBody) *CreateFaqReqBuilder
该接口用于创建知识库。
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 (builder *CreateNotificationReqBuilder) Build() *CreateNotificationReq
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 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 (builder *CreateTicketCustomizedFieldReqBuilder) Build() *CreateTicketCustomizedFieldReq
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 (builder *CreateTicketMessagePathReqBodyBuilder) Build() (*CreateTicketMessageReqBody, error)
func (*CreateTicketMessagePathReqBodyBuilder) Content ¶
func (builder *CreateTicketMessagePathReqBodyBuilder) Content(content string) *CreateTicketMessagePathReqBodyBuilder
- 纯文本,参考[发送文本消息](/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 ¶
func (builder *CreateTicketMessagePathReqBodyBuilder) MsgType(msgType string) *CreateTicketMessagePathReqBodyBuilder
消息类型;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 (builder *CreateTicketMessageReqBodyBuilder) Build() *CreateTicketMessageReqBody
func (*CreateTicketMessageReqBodyBuilder) Content ¶
func (builder *CreateTicketMessageReqBodyBuilder) Content(content string) *CreateTicketMessageReqBodyBuilder
- 纯文本,参考[发送文本消息](/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 ¶
func (builder *CreateTicketMessageReqBodyBuilder) MsgType(msgType string) *CreateTicketMessageReqBodyBuilder
消息类型;text:纯文本;post:富文本
示例值:post
type CreateTicketMessageReqBuilder ¶
type CreateTicketMessageReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateTicketMessageReqBuilder ¶
func NewCreateTicketMessageReqBuilder() *CreateTicketMessageReqBuilder
func (*CreateTicketMessageReqBuilder) Body ¶
func (builder *CreateTicketMessageReqBuilder) Body(body *CreateTicketMessageReqBody) *CreateTicketMessageReqBuilder
该接口用于工单发送消息。
func (*CreateTicketMessageReqBuilder) Build ¶
func (builder *CreateTicketMessageReqBuilder) Build() *CreateTicketMessageReq
func (*CreateTicketMessageReqBuilder) TicketId ¶
func (builder *CreateTicketMessageReqBuilder) TicketId(ticketId string) *CreateTicketMessageReqBuilder
工单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 (builder *CustomizedFieldDisplayItemBuilder) Build() *CustomizedFieldDisplayItem
func (*CustomizedFieldDisplayItemBuilder) DisplayName ¶
func (builder *CustomizedFieldDisplayItemBuilder) DisplayName(displayName string) *CustomizedFieldDisplayItemBuilder
展示名称
示例值:display name
func (*CustomizedFieldDisplayItemBuilder) Editable ¶
func (builder *CustomizedFieldDisplayItemBuilder) Editable(editable bool) *CustomizedFieldDisplayItemBuilder
是否可修改
示例值:true
func (*CustomizedFieldDisplayItemBuilder) Id ¶
func (builder *CustomizedFieldDisplayItemBuilder) Id(id string) *CustomizedFieldDisplayItemBuilder
自定义字段ID
示例值:123
func (*CustomizedFieldDisplayItemBuilder) KeyName ¶
func (builder *CustomizedFieldDisplayItemBuilder) KeyName(keyName string) *CustomizedFieldDisplayItemBuilder
键名
示例值:key
func (*CustomizedFieldDisplayItemBuilder) Position ¶
func (builder *CustomizedFieldDisplayItemBuilder) Position(position int) *CustomizedFieldDisplayItemBuilder
展示位置
示例值:1
func (*CustomizedFieldDisplayItemBuilder) Required ¶
func (builder *CustomizedFieldDisplayItemBuilder) Required(required bool) *CustomizedFieldDisplayItemBuilder
是否必填
示例值:true
func (*CustomizedFieldDisplayItemBuilder) Value ¶
func (builder *CustomizedFieldDisplayItemBuilder) Value(value string) *CustomizedFieldDisplayItemBuilder
自定义字段值
示例值: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 (builder *CustomizedFieldsTicketReqBuilder) Build() *CustomizedFieldsTicketReq
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 ¶
func (builder *DeleteAgentSchedulesReqBuilder) AgentId(agentId string) *DeleteAgentSchedulesReqBuilder
agent user id
示例值:12345
func (*DeleteAgentSchedulesReqBuilder) Build ¶
func (builder *DeleteAgentSchedulesReqBuilder) Build() *DeleteAgentSchedulesReq
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 ¶
func (builder *DeleteAgentSkillReqBuilder) Build() *DeleteAgentSkillReq
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 ¶
func (builder *DeleteCategoryReqBuilder) Id(id string) *DeleteCategoryReqBuilder
知识库分类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 ¶
func (builder *DeleteFaqReqBuilder) Id(id string) *DeleteFaqReqBuilder
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 (builder *DeleteTicketCustomizedFieldReqBuilder) Build() *DeleteTicketCustomizedFieldReq
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 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 (builder *ExecuteSendNotificationPathReqBodyBuilder) Build() (*ExecuteSendNotificationReqBody, error)
func (*ExecuteSendNotificationPathReqBodyBuilder) SendAt ¶
func (builder *ExecuteSendNotificationPathReqBodyBuilder) SendAt(sendAt string) *ExecuteSendNotificationPathReqBodyBuilder
发送时间戳(毫秒)
示例值: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 (builder *ExecuteSendNotificationReqBodyBuilder) Build() *ExecuteSendNotificationReqBody
func (*ExecuteSendNotificationReqBodyBuilder) SendAt ¶
func (builder *ExecuteSendNotificationReqBodyBuilder) SendAt(sendAt string) *ExecuteSendNotificationReqBodyBuilder
发送时间戳(毫秒)
示例值:1624326025000
type ExecuteSendNotificationReqBuilder ¶
type ExecuteSendNotificationReqBuilder struct {
// contains filtered or unexported fields
}
func NewExecuteSendNotificationReqBuilder ¶
func NewExecuteSendNotificationReqBuilder() *ExecuteSendNotificationReqBuilder
func (*ExecuteSendNotificationReqBuilder) Body ¶
func (builder *ExecuteSendNotificationReqBuilder) Body(body *ExecuteSendNotificationReqBody) *ExecuteSendNotificationReqBuilder
审核通过后调用此接口设置推送时间,等待调度系统调度,发送消息
func (*ExecuteSendNotificationReqBuilder) Build ¶
func (builder *ExecuteSendNotificationReqBuilder) Build() *ExecuteSendNotificationReq
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) 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) 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 ¶
func (builder *FaqImageFaqReqBuilder) Id(id string) *FaqImageFaqReqBuilder
知识库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 ¶
func (builder *GetAgentSchedulesReqBuilder) AgentId(agentId string) *GetAgentSchedulesReqBuilder
客服 id
示例值: 客服 id
func (*GetAgentSchedulesReqBuilder) Build ¶
func (builder *GetAgentSchedulesReqBuilder) Build() *GetAgentSchedulesReq
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 ¶
func (builder *GetCategoryReqBuilder) Id(id string) *GetCategoryReqBuilder
知识库分类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 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 (builder *GetNotificationReqBuilder) Build() *GetNotificationReq
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 (builder *GetTicketCustomizedFieldReqBuilder) Build() *GetTicketCustomizedFieldReq
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 (builder *ListAgentScheduleReqBuilder) Build() *ListAgentScheduleReq
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 ¶
func (builder *ListCategoryReqBuilder) Asc(asc bool) *ListCategoryReqBuilder
顺序。true: 正序;false:反序
示例值:true
func (*ListCategoryReqBuilder) Build ¶
func (builder *ListCategoryReqBuilder) Build() *ListCategoryReq
func (*ListCategoryReqBuilder) Lang ¶
func (builder *ListCategoryReqBuilder) Lang(lang string) *ListCategoryReqBuilder
知识库分类语言
示例值: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) 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 (builder *ListTicketCustomizedFieldPathReqBodyBuilder) Build() (*ListTicketCustomizedFieldReqBody, error)
func (*ListTicketCustomizedFieldPathReqBodyBuilder) Visible ¶
func (builder *ListTicketCustomizedFieldPathReqBodyBuilder) Visible(visible bool) *ListTicketCustomizedFieldPathReqBodyBuilder
是否可见
示例值: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 (builder *ListTicketCustomizedFieldReqBodyBuilder) Build() *ListTicketCustomizedFieldReqBody
func (*ListTicketCustomizedFieldReqBodyBuilder) Visible ¶
func (builder *ListTicketCustomizedFieldReqBodyBuilder) Visible(visible bool) *ListTicketCustomizedFieldReqBodyBuilder
是否可见
示例值:true
type ListTicketCustomizedFieldReqBuilder ¶
type ListTicketCustomizedFieldReqBuilder struct {
// contains filtered or unexported fields
}
func NewListTicketCustomizedFieldReqBuilder ¶
func NewListTicketCustomizedFieldReqBuilder() *ListTicketCustomizedFieldReqBuilder
func (*ListTicketCustomizedFieldReqBuilder) Body ¶
func (builder *ListTicketCustomizedFieldReqBuilder) Body(body *ListTicketCustomizedFieldReqBody) *ListTicketCustomizedFieldReqBuilder
该接口用于获取全部工单自定义字段。
func (*ListTicketCustomizedFieldReqBuilder) Build ¶
func (builder *ListTicketCustomizedFieldReqBuilder) Build() *ListTicketCustomizedFieldReq
func (*ListTicketCustomizedFieldReqBuilder) PageSize ¶
func (builder *ListTicketCustomizedFieldReqBuilder) PageSize(pageSize int) *ListTicketCustomizedFieldReqBuilder
示例值:10;默认为20
func (*ListTicketCustomizedFieldReqBuilder) PageToken ¶
func (builder *ListTicketCustomizedFieldReqBuilder) PageToken(pageToken string) *ListTicketCustomizedFieldReqBuilder
示例值: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 (builder *ListTicketMessageReqBuilder) Build() *ListTicketMessageReq
func (*ListTicketMessageReqBuilder) Page ¶
func (builder *ListTicketMessageReqBuilder) Page(page int) *ListTicketMessageReqBuilder
页数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 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 ¶
func (builder *NotificationBuilder) Id(id string) *NotificationBuilder
非必填,创建成功后返回
示例值: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 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 ¶
func (builder *NotificationChatBuilder) Name(name string) *NotificationChatBuilder
非必填,会话名称
示例值:测试群聊
type NotificationDepartment ¶
type NotificationDepartmentBuilder ¶
type NotificationDepartmentBuilder struct {
// contains filtered or unexported fields
}
func NewNotificationDepartmentBuilder ¶
func NewNotificationDepartmentBuilder() *NotificationDepartmentBuilder
func (*NotificationDepartmentBuilder) Build ¶
func (builder *NotificationDepartmentBuilder) Build() *NotificationDepartment
func (*NotificationDepartmentBuilder) DepartmentId ¶
func (builder *NotificationDepartmentBuilder) DepartmentId(departmentId string) *NotificationDepartmentBuilder
部门ID
示例值:od_7277fd1262bfafc363d5b2a1f9c2ac90
func (*NotificationDepartmentBuilder) Name ¶
func (builder *NotificationDepartmentBuilder) Name(name string) *NotificationDepartmentBuilder
非必填,部门名称
示例值:测试部门
type NotificationUser ¶
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 ¶
func (builder *NotificationUserBuilder) Name(name string) *NotificationUserBuilder
非必填,用户名称
示例值: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 P2NotificationApproveV1Handler ¶
type P2NotificationApproveV1Handler struct {
// contains filtered or unexported fields
}
消息处理器定义
func NewP2NotificationApproveV1Handler ¶
func NewP2NotificationApproveV1Handler(handler func(context.Context, *P2NotificationApproveV1) error) *P2NotificationApproveV1Handler
func (*P2NotificationApproveV1Handler) Event ¶
func (h *P2NotificationApproveV1Handler) Event() interface{}
返回事件的消息体的实例,用于反序列化用
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{}
返回事件的消息体的实例,用于反序列化用
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 NewP2TicketMessageCreatedV1Handler ¶
func NewP2TicketMessageCreatedV1Handler(handler func(context.Context, *P2TicketMessageCreatedV1) error) *P2TicketMessageCreatedV1Handler
func (*P2TicketMessageCreatedV1Handler) Event ¶
func (h *P2TicketMessageCreatedV1Handler) Event() interface{}
返回事件的消息体的实例,用于反序列化用
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{}
返回事件的消息体的实例,用于反序列化用
type PatchAgentPathReqBodyBuilder ¶
type PatchAgentPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewPatchAgentPathReqBodyBuilder ¶
func NewPatchAgentPathReqBodyBuilder() *PatchAgentPathReqBodyBuilder
func (*PatchAgentPathReqBodyBuilder) Build ¶
func (builder *PatchAgentPathReqBodyBuilder) Build() (*PatchAgentReqBody, error)
func (*PatchAgentPathReqBodyBuilder) Status ¶
func (builder *PatchAgentPathReqBodyBuilder) Status(status int) *PatchAgentPathReqBodyBuilder
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 (builder *PatchAgentReqBuilder) Body(body *PatchAgentReqBody) *PatchAgentReqBuilder
更新客服状态等信息
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 (builder *PatchAgentSchedulesPathReqBodyBuilder) AgentSchedule(agentSchedule *AgentScheduleUpdateInfo) *PatchAgentSchedulesPathReqBodyBuilder
工作日程列表
示例值:
func (*PatchAgentSchedulesPathReqBodyBuilder) Build ¶
func (builder *PatchAgentSchedulesPathReqBodyBuilder) Build() (*PatchAgentSchedulesReqBody, error)
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 (builder *PatchAgentSchedulesReqBodyBuilder) AgentSchedule(agentSchedule *AgentScheduleUpdateInfo) *PatchAgentSchedulesReqBodyBuilder
工作日程列表
示例值:
func (*PatchAgentSchedulesReqBodyBuilder) Build ¶
func (builder *PatchAgentSchedulesReqBodyBuilder) Build() *PatchAgentSchedulesReqBody
type PatchAgentSchedulesReqBuilder ¶
type PatchAgentSchedulesReqBuilder struct {
// contains filtered or unexported fields
}
func NewPatchAgentSchedulesReqBuilder ¶
func NewPatchAgentSchedulesReqBuilder() *PatchAgentSchedulesReqBuilder
func (*PatchAgentSchedulesReqBuilder) AgentId ¶
func (builder *PatchAgentSchedulesReqBuilder) AgentId(agentId string) *PatchAgentSchedulesReqBuilder
客服 id
示例值:123456
func (*PatchAgentSchedulesReqBuilder) Body ¶
func (builder *PatchAgentSchedulesReqBuilder) Body(body *PatchAgentSchedulesReqBody) *PatchAgentSchedulesReqBuilder
该接口用于更新客服的日程
func (*PatchAgentSchedulesReqBuilder) Build ¶
func (builder *PatchAgentSchedulesReqBuilder) Build() *PatchAgentSchedulesReq
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 (builder *PatchAgentSkillPathReqBodyBuilder) AgentSkill(agentSkill *AgentSkill) *PatchAgentSkillPathReqBodyBuilder
更新技能
示例值:
func (*PatchAgentSkillPathReqBodyBuilder) Build ¶
func (builder *PatchAgentSkillPathReqBodyBuilder) Build() (*PatchAgentSkillReqBody, error)
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 (builder *PatchAgentSkillReqBodyBuilder) AgentSkill(agentSkill *AgentSkill) *PatchAgentSkillReqBodyBuilder
更新技能
示例值:
func (*PatchAgentSkillReqBodyBuilder) Build ¶
func (builder *PatchAgentSkillReqBodyBuilder) Build() *PatchAgentSkillReqBody
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 (builder *PatchAgentSkillReqBuilder) Body(body *PatchAgentSkillReqBody) *PatchAgentSkillReqBuilder
该接口用于更新客服技能
func (*PatchAgentSkillReqBuilder) Build ¶
func (builder *PatchAgentSkillReqBuilder) Build() *PatchAgentSkillReq
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 ¶
func (builder *PatchCategoryReqBuilder) Id(id string) *PatchCategoryReqBuilder
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 ¶
func (builder *PatchFaqPathReqBodyBuilder) Faq(faq *FaqUpdateInfo) *PatchFaqPathReqBodyBuilder
修改的知识库内容
示例值:
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 ¶
func (builder *PatchFaqReqBodyBuilder) Faq(faq *FaqUpdateInfo) *PatchFaqReqBodyBuilder
修改的知识库内容
示例值:
type PatchFaqReqBuilder ¶
type PatchFaqReqBuilder struct {
// contains filtered or unexported fields
}
func NewPatchFaqReqBuilder ¶
func NewPatchFaqReqBuilder() *PatchFaqReqBuilder
func (*PatchFaqReqBuilder) Body ¶
func (builder *PatchFaqReqBuilder) Body(body *PatchFaqReqBody) *PatchFaqReqBuilder
该接口用于修改知识库。
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 (builder *PatchNotificationReqBuilder) Build() *PatchNotificationReq
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 (builder *PatchTicketCustomizedFieldReqBuilder) Build() *PatchTicketCustomizedFieldReq
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 (builder *PreviewNotificationReqBuilder) Build() *PreviewNotificationReq
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 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) 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 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 (builder *StartServiceTicketPathReqBodyBuilder) Build() (*StartServiceTicketReqBody, error)
func (*StartServiceTicketPathReqBodyBuilder) CustomizedInfo ¶
func (builder *StartServiceTicketPathReqBodyBuilder) CustomizedInfo(customizedInfo string) *StartServiceTicketPathReqBodyBuilder
工单来源自定义信息,长度限制1024字符,如设置,[获取工单详情](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/get)会返回此信息
示例值:测试自定义字段信息
func (*StartServiceTicketPathReqBodyBuilder) HumanService ¶
func (builder *StartServiceTicketPathReqBodyBuilder) HumanService(humanService bool) *StartServiceTicketPathReqBodyBuilder
是否直接进入人工(若appointed_agents填写了,该值为必填)
示例值:false
func (*StartServiceTicketPathReqBodyBuilder) OpenId ¶
func (builder *StartServiceTicketPathReqBodyBuilder) OpenId(openId string) *StartServiceTicketPathReqBodyBuilder
用户 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 (builder *StartServiceTicketReqBodyBuilder) Build() *StartServiceTicketReqBody
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 ¶
func (builder *StartServiceTicketReqBodyBuilder) OpenId(openId string) *StartServiceTicketReqBodyBuilder
用户 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 (builder *StartServiceTicketReqBuilder) Body(body *StartServiceTicketReqBody) *StartServiceTicketReqBuilder
该接口用于创建服务台对话。
func (*StartServiceTicketReqBuilder) Build ¶
func (builder *StartServiceTicketReqBuilder) Build() *StartServiceTicketReq
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 (builder *SubmitApproveNotificationPathReqBodyBuilder) Build() (*SubmitApproveNotificationReqBody, error)
func (*SubmitApproveNotificationPathReqBodyBuilder) Reason ¶
func (builder *SubmitApproveNotificationPathReqBodyBuilder) Reason(reason string) *SubmitApproveNotificationPathReqBodyBuilder
提交审批理由
示例值:测试发送消息
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 (builder *SubmitApproveNotificationReqBodyBuilder) Build() *SubmitApproveNotificationReqBody
func (*SubmitApproveNotificationReqBodyBuilder) Reason ¶
func (builder *SubmitApproveNotificationReqBodyBuilder) Reason(reason string) *SubmitApproveNotificationReqBodyBuilder
提交审批理由
示例值:测试发送消息
type SubmitApproveNotificationReqBuilder ¶
type SubmitApproveNotificationReqBuilder struct {
// contains filtered or unexported fields
}
func NewSubmitApproveNotificationReqBuilder ¶
func NewSubmitApproveNotificationReqBuilder() *SubmitApproveNotificationReqBuilder
func (*SubmitApproveNotificationReqBuilder) Body ¶
func (builder *SubmitApproveNotificationReqBuilder) Body(body *SubmitApproveNotificationReqBody) *SubmitApproveNotificationReqBuilder
正常情况下调用创建推送接口后,就可以调用提交审核接口,如果创建人是服务台owner则会自动审核通过,否则会通知服务台owner审核此推送信息
func (*SubmitApproveNotificationReqBuilder) Build ¶
func (builder *SubmitApproveNotificationReqBuilder) Build() *SubmitApproveNotificationReq
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 (builder *SubscribeEventPathReqBodyBuilder) Build() (*SubscribeEventReqBody, error)
func (*SubscribeEventPathReqBodyBuilder) Events ¶
func (builder *SubscribeEventPathReqBodyBuilder) Events(events []*Event) *SubscribeEventPathReqBodyBuilder
可订阅的事件列表
示例值:
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 (builder *SubscribeEventReqBodyBuilder) Build() *SubscribeEventReqBody
func (*SubscribeEventReqBodyBuilder) Events ¶
func (builder *SubscribeEventReqBodyBuilder) Events(events []*Event) *SubscribeEventReqBodyBuilder
可订阅的事件列表
示例值:
type SubscribeEventReqBuilder ¶
type SubscribeEventReqBuilder struct {
// contains filtered or unexported fields
}
func NewSubscribeEventReqBuilder ¶
func NewSubscribeEventReqBuilder() *SubscribeEventReqBuilder
func (*SubscribeEventReqBuilder) Body ¶
func (builder *SubscribeEventReqBuilder) Body(body *SubscribeEventReqBody) *SubscribeEventReqBuilder
用于订阅服务台事件
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 (builder *TicketCustomizedFieldBuilder) Build() *TicketCustomizedField
func (*TicketCustomizedFieldBuilder) CreatedAt ¶
func (builder *TicketCustomizedFieldBuilder) CreatedAt(createdAt string) *TicketCustomizedFieldBuilder
创建时间
示例值:1591239289000
func (*TicketCustomizedFieldBuilder) CreatedBy ¶
func (builder *TicketCustomizedFieldBuilder) CreatedBy(createdBy *TicketUser) *TicketCustomizedFieldBuilder
创建用户
示例值:
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 ¶
func (builder *TicketCustomizedFieldBuilder) KeyName(keyName string) *TicketCustomizedFieldBuilder
键名
示例值:test dropdown
func (*TicketCustomizedFieldBuilder) Position ¶
func (builder *TicketCustomizedFieldBuilder) Position(position string) *TicketCustomizedFieldBuilder
字段在列表后台管理列表中的位置
示例值: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 (builder *TicketCustomizedFieldBuilder) UpdatedBy(updatedBy *TicketUser) *TicketCustomizedFieldBuilder
更新用户
示例值:
func (*TicketCustomizedFieldBuilder) Visible ¶
func (builder *TicketCustomizedFieldBuilder) Visible(visible bool) *TicketCustomizedFieldBuilder
是否可见
示例值: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 TicketEventUpdateInfoBuilder ¶
type TicketEventUpdateInfoBuilder struct {
// contains filtered or unexported fields
}
func NewTicketEventUpdateInfoBuilder ¶
func NewTicketEventUpdateInfoBuilder() *TicketEventUpdateInfoBuilder
func (*TicketEventUpdateInfoBuilder) Build ¶
func (builder *TicketEventUpdateInfoBuilder) Build() *TicketEventUpdateInfo
func (*TicketEventUpdateInfoBuilder) Stage ¶
func (builder *TicketEventUpdateInfoBuilder) Stage(stage int) *TicketEventUpdateInfoBuilder
ticket stage
示例值:1
func (*TicketEventUpdateInfoBuilder) Status ¶
func (builder *TicketEventUpdateInfoBuilder) Status(status int) *TicketEventUpdateInfoBuilder
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 (builder *TicketImageTicketReqBuilder) Build() *TicketImageTicketReq
func (*TicketImageTicketReqBuilder) Index ¶
func (builder *TicketImageTicketReqBuilder) Index(index int) *TicketImageTicketReqBuilder
index,当消息类型为post时,需指定图片index,index从0开始。当消息类型为img时,无需index
示例值:0
func (*TicketImageTicketReqBuilder) MsgId ¶
func (builder *TicketImageTicketReqBuilder) MsgId(msgId string) *TicketImageTicketReqBuilder
消息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) AvatarUrl ¶
func (builder *TicketMessageBuilder) AvatarUrl(avatarUrl string) *TicketMessageBuilder
用户图片url
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 ¶
func (builder *TicketMessageBuilder) Id(id string) *TicketMessageBuilder
工单消息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 TicketMessageContentBuilder ¶
type TicketMessageContentBuilder struct {
// contains filtered or unexported fields
}
func NewTicketMessageContentBuilder ¶
func NewTicketMessageContentBuilder() *TicketMessageContentBuilder
func (*TicketMessageContentBuilder) Build ¶
func (builder *TicketMessageContentBuilder) Build() *TicketMessageContent
func (*TicketMessageContentBuilder) Content ¶
func (builder *TicketMessageContentBuilder) Content(content string) *TicketMessageContentBuilder
内容
示例值:请问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 ¶
func (builder *TicketMessageContentBuilder) MsgType(msgType string) *TicketMessageContentBuilder
消息类型;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 (builder *TicketMessageEventBuilder) Build() *TicketMessageEvent
func (*TicketMessageEventBuilder) ChatId ¶
func (builder *TicketMessageEventBuilder) ChatId(chatId string) *TicketMessageEventBuilder
chat id
示例值:6949088236610273307
func (*TicketMessageEventBuilder) Content ¶
func (builder *TicketMessageEventBuilder) Content(content *TicketMessageContent) *TicketMessageEventBuilder
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 ¶
func (builder *TicketMessageEventBuilder) Text(text string) *TicketMessageEventBuilder
message content
示例值:请问vpn怎么下载
func (*TicketMessageEventBuilder) Ticket ¶
func (builder *TicketMessageEventBuilder) Ticket(ticket *Ticket) *TicketMessageEventBuilder
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 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 ¶
func (builder *TicketUserEventBuilder) Id(id *UserId) *TicketUserEventBuilder
id
示例值:
func (*TicketUserEventBuilder) Name ¶
func (builder *TicketUserEventBuilder) Name(name string) *TicketUserEventBuilder
名称
示例值:abc
type UnsubscribeEventPathReqBodyBuilder ¶
type UnsubscribeEventPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewUnsubscribeEventPathReqBodyBuilder ¶
func NewUnsubscribeEventPathReqBodyBuilder() *UnsubscribeEventPathReqBodyBuilder
func (*UnsubscribeEventPathReqBodyBuilder) Build ¶
func (builder *UnsubscribeEventPathReqBodyBuilder) Build() (*UnsubscribeEventReqBody, error)
func (*UnsubscribeEventPathReqBodyBuilder) Events ¶
func (builder *UnsubscribeEventPathReqBodyBuilder) Events(events []*Event) *UnsubscribeEventPathReqBodyBuilder
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 (builder *UnsubscribeEventReqBodyBuilder) Build() *UnsubscribeEventReqBody
func (*UnsubscribeEventReqBodyBuilder) Events ¶
func (builder *UnsubscribeEventReqBodyBuilder) Events(events []*Event) *UnsubscribeEventReqBodyBuilder
event list to unsubscribe
示例值:
type UnsubscribeEventReqBuilder ¶
type UnsubscribeEventReqBuilder struct {
// contains filtered or unexported fields
}
func NewUnsubscribeEventReqBuilder ¶
func NewUnsubscribeEventReqBuilder() *UnsubscribeEventReqBuilder
func (*UnsubscribeEventReqBuilder) Body ¶
func (builder *UnsubscribeEventReqBuilder) Body(body *UnsubscribeEventReqBody) *UnsubscribeEventReqBuilder
用于取消订阅服务台事件
func (*UnsubscribeEventReqBuilder) Build ¶
func (builder *UnsubscribeEventReqBuilder) Build() *UnsubscribeEventReq
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 (builder *UpdateTicketPathReqBodyBuilder) Build() (*UpdateTicketReqBody, error)
func (*UpdateTicketPathReqBodyBuilder) Channel ¶
func (builder *UpdateTicketPathReqBodyBuilder) Channel(channel int) *UpdateTicketPathReqBodyBuilder
工单来源渠道ID
示例值:1
func (*UpdateTicketPathReqBodyBuilder) Comment ¶
func (builder *UpdateTicketPathReqBodyBuilder) Comment(comment string) *UpdateTicketPathReqBodyBuilder
新评论
示例值:good
func (*UpdateTicketPathReqBodyBuilder) CustomizedFields ¶
func (builder *UpdateTicketPathReqBodyBuilder) CustomizedFields(customizedFields []*CustomizedFieldDisplayItem) *UpdateTicketPathReqBodyBuilder
自定义字段
示例值:
func (*UpdateTicketPathReqBodyBuilder) Solved ¶
func (builder *UpdateTicketPathReqBodyBuilder) Solved(solved int) *UpdateTicketPathReqBodyBuilder
工单是否解决,1: 未解决, 2: 已解决
示例值:1
func (*UpdateTicketPathReqBodyBuilder) Status ¶
func (builder *UpdateTicketPathReqBodyBuilder) Status(status int) *UpdateTicketPathReqBodyBuilder
new status, 1: 已创建, 2: 处理中, 3: 排队中, 5: 待定, 50: 机器人关闭工单, 51: 关闭工单
示例值:1
func (*UpdateTicketPathReqBodyBuilder) TagNames ¶
func (builder *UpdateTicketPathReqBodyBuilder) TagNames(tagNames []string) *UpdateTicketPathReqBodyBuilder
新标签名
示例值: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 (builder *UpdateTicketReqBodyBuilder) Build() *UpdateTicketReqBody
func (*UpdateTicketReqBodyBuilder) Channel ¶
func (builder *UpdateTicketReqBodyBuilder) Channel(channel int) *UpdateTicketReqBodyBuilder
工单来源渠道ID
示例值:1
func (*UpdateTicketReqBodyBuilder) Comment ¶
func (builder *UpdateTicketReqBodyBuilder) Comment(comment string) *UpdateTicketReqBodyBuilder
新评论
示例值:good
func (*UpdateTicketReqBodyBuilder) CustomizedFields ¶
func (builder *UpdateTicketReqBodyBuilder) CustomizedFields(customizedFields []*CustomizedFieldDisplayItem) *UpdateTicketReqBodyBuilder
自定义字段
示例值:
func (*UpdateTicketReqBodyBuilder) Solved ¶
func (builder *UpdateTicketReqBodyBuilder) Solved(solved int) *UpdateTicketReqBodyBuilder
工单是否解决,1: 未解决, 2: 已解决
示例值:1
func (*UpdateTicketReqBodyBuilder) Status ¶
func (builder *UpdateTicketReqBodyBuilder) Status(status int) *UpdateTicketReqBodyBuilder
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 (builder *UpdateTicketReqBuilder) Body(body *UpdateTicketReqBody) *UpdateTicketReqBuilder
该接口用于更新服务台工单详情。只会更新数据,不会触发相关操作。如修改工单状态到关单,不会关闭聊天页面。仅支持自建应用。要更新的工单字段必须至少输入一项。
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 (builder *UserCustomizedFieldBuilder) Build() *UserCustomizedField
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 ¶
func (builder *UserCustomizedFieldBuilder) Id(id string) *UserCustomizedFieldBuilder
旧字段ID,向后兼容用
示例值:6746384425543548981
func (*UserCustomizedFieldBuilder) KeyName ¶
func (builder *UserCustomizedFieldBuilder) KeyName(keyName string) *UserCustomizedFieldBuilder
字段键
示例值: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 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 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 ¶
func (builder *UserQueryFaqInfoBuilder) Id(id string) *UserQueryFaqInfoBuilder
faq服务台内唯一标识
示例值:12345
func (*UserQueryFaqInfoBuilder) Score ¶
func (builder *UserQueryFaqInfoBuilder) Score(score float64) *UserQueryFaqInfoBuilder
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