|
@@ -461,12 +461,13 @@ func (c *Client) Use(hooks ...Hook) {
|
|
|
c.Agent, c.AgentBase, c.AliyunAvatar, c.AllocAgent, c.ApiKey, c.BatchMsg,
|
|
|
c.Category, c.ChatRecords, c.ChatSession, c.CompapiAsynctask, c.Contact,
|
|
|
c.ContactField, c.ContactFieldTemplate, c.CreditBalance, c.CreditUsage,
|
|
|
- c.Employee, c.EmployeeConfig, c.Label, c.LabelLog,c.LabelRelationship, c.LabelTagging,
|
|
|
- c.Message, c.MessageRecords, c.Msg, c.PayRecharge, c.Server, c.SopNode,
|
|
|
- c.SopStage, c.SopTask, c.Token, c.Tutorial, c.UsageDetail, c.UsageStatisticDay,
|
|
|
- c.UsageStatisticHour, c.UsageStatisticMonth, c.UsageTotal, c.Whatsapp,
|
|
|
- c.WhatsappChannel, c.WorkExperience, c.WpChatroom, c.WpChatroomMember, c.Wx,
|
|
|
- c.WxCard, c.WxCardUser, c.WxCardVisit, c.Xunji, c.XunjiService,
|
|
|
+ c.Employee, c.EmployeeConfig, c.Label, c.LabelLog, c.LabelRelationship,
|
|
|
+ c.LabelTagging, c.Message, c.MessageRecords, c.Msg, c.PayRecharge, c.Server,
|
|
|
+ c.SopNode, c.SopStage, c.SopTask, c.Token, c.Tutorial, c.UsageDetail,
|
|
|
+ c.UsageStatisticDay, c.UsageStatisticHour, c.UsageStatisticMonth, c.UsageTotal,
|
|
|
+ c.Whatsapp, c.WhatsappChannel, c.WorkExperience, c.WpChatroom,
|
|
|
+ c.WpChatroomMember, c.Wx, c.WxCard, c.WxCardUser, c.WxCardVisit, c.Xunji,
|
|
|
+ c.XunjiService,
|
|
|
} {
|
|
|
n.Use(hooks...)
|
|
|
}
|
|
@@ -479,12 +480,13 @@ func (c *Client) Intercept(interceptors ...Interceptor) {
|
|
|
c.Agent, c.AgentBase, c.AliyunAvatar, c.AllocAgent, c.ApiKey, c.BatchMsg,
|
|
|
c.Category, c.ChatRecords, c.ChatSession, c.CompapiAsynctask, c.Contact,
|
|
|
c.ContactField, c.ContactFieldTemplate, c.CreditBalance, c.CreditUsage,
|
|
|
- c.Employee, c.EmployeeConfig, c.Label, c.LabelLog,c.LabelRelationship, c.LabelTagging,
|
|
|
- c.Message, c.MessageRecords, c.Msg, c.PayRecharge, c.Server, c.SopNode,
|
|
|
- c.SopStage, c.SopTask, c.Token, c.Tutorial, c.UsageDetail, c.UsageStatisticDay,
|
|
|
- c.UsageStatisticHour, c.UsageStatisticMonth, c.UsageTotal, c.Whatsapp,
|
|
|
- c.WhatsappChannel, c.WorkExperience, c.WpChatroom, c.WpChatroomMember, c.Wx,
|
|
|
- c.WxCard, c.WxCardUser, c.WxCardVisit, c.Xunji, c.XunjiService,
|
|
|
+ c.Employee, c.EmployeeConfig, c.Label, c.LabelLog, c.LabelRelationship,
|
|
|
+ c.LabelTagging, c.Message, c.MessageRecords, c.Msg, c.PayRecharge, c.Server,
|
|
|
+ c.SopNode, c.SopStage, c.SopTask, c.Token, c.Tutorial, c.UsageDetail,
|
|
|
+ c.UsageStatisticDay, c.UsageStatisticHour, c.UsageStatisticMonth, c.UsageTotal,
|
|
|
+ c.Whatsapp, c.WhatsappChannel, c.WorkExperience, c.WpChatroom,
|
|
|
+ c.WpChatroomMember, c.Wx, c.WxCard, c.WxCardUser, c.WxCardVisit, c.Xunji,
|
|
|
+ c.XunjiService,
|
|
|
} {
|
|
|
n.Intercept(interceptors...)
|
|
|
}
|
|
@@ -2174,7 +2176,6 @@ func (c *ContactClient) QueryContactRelationships(co *Contact) *LabelRelationshi
|
|
|
return query
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// QueryContactFields queries the contact_fields edge of a Contact.
|
|
|
func (c *ContactClient) QueryContactFields(co *Contact) *ContactFieldQuery {
|
|
|
query := (&ContactFieldClient{config: c.config}).Query()
|