|
@@ -276,7 +276,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) {
|
|
|
EmployeeConfig: NewEmployeeConfigClient(cfg),
|
|
|
Label: NewLabelClient(cfg),
|
|
|
LabelRelationship: NewLabelRelationshipClient(cfg),
|
|
|
- LabelTagging: NewLabelTaggingClient(cfg),
|
|
|
+ LabelTagging: NewLabelTaggingClient(cfg),
|
|
|
Message: NewMessageClient(cfg),
|
|
|
MessageRecords: NewMessageRecordsClient(cfg),
|
|
|
Msg: NewMsgClient(cfg),
|
|
@@ -329,7 +329,7 @@ func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
|
|
|
EmployeeConfig: NewEmployeeConfigClient(cfg),
|
|
|
Label: NewLabelClient(cfg),
|
|
|
LabelRelationship: NewLabelRelationshipClient(cfg),
|
|
|
- LabelTagging: NewLabelTaggingClient(cfg),
|
|
|
+ LabelTagging: NewLabelTaggingClient(cfg),
|
|
|
Message: NewMessageClient(cfg),
|
|
|
MessageRecords: NewMessageRecordsClient(cfg),
|
|
|
Msg: NewMsgClient(cfg),
|
|
@@ -384,9 +384,9 @@ func (c *Client) Use(hooks ...Hook) {
|
|
|
c.ChatSession, c.Contact, c.Employee, c.EmployeeConfig, c.Label,
|
|
|
c.LabelRelationship, c.LabelTagging, c.Message, c.MessageRecords, c.Msg,
|
|
|
c.Server, c.SopNode, c.SopStage, c.SopTask, c.Token, c.Tutorial, c.UsageDetail,
|
|
|
- c.UsageStatisticDay,
|
|
|
- c.UsageStatisticHour, c.UsageStatisticMonth, c.UsageTotal, c.WorkExperience,
|
|
|
- c.WpChatroom, c.WpChatroomMember, c.Wx, c.WxCard, c.WxCardUser, c.WxCardVisit,
|
|
|
+ c.UsageStatisticDay, c.UsageStatisticHour, c.UsageStatisticMonth, c.UsageTotal,
|
|
|
+ c.WorkExperience, c.WpChatroom, c.WpChatroomMember, c.Wx, c.WxCard,
|
|
|
+ c.WxCardUser, c.WxCardVisit,
|
|
|
} {
|
|
|
n.Use(hooks...)
|
|
|
}
|
|
@@ -400,9 +400,9 @@ func (c *Client) Intercept(interceptors ...Interceptor) {
|
|
|
c.ChatSession, c.Contact, c.Employee, c.EmployeeConfig, c.Label,
|
|
|
c.LabelRelationship, c.LabelTagging, c.Message, c.MessageRecords, c.Msg,
|
|
|
c.Server, c.SopNode, c.SopStage, c.SopTask, c.Token, c.Tutorial, c.UsageDetail,
|
|
|
- c.UsageStatisticDay,
|
|
|
- c.UsageStatisticHour, c.UsageStatisticMonth, c.UsageTotal, c.WorkExperience,
|
|
|
- c.WpChatroom, c.WpChatroomMember, c.Wx, c.WxCard, c.WxCardUser, c.WxCardVisit,
|
|
|
+ c.UsageStatisticDay, c.UsageStatisticHour, c.UsageStatisticMonth, c.UsageTotal,
|
|
|
+ c.WorkExperience, c.WpChatroom, c.WpChatroomMember, c.Wx, c.WxCard,
|
|
|
+ c.WxCardUser, c.WxCardVisit,
|
|
|
} {
|
|
|
n.Intercept(interceptors...)
|
|
|
}
|
|
@@ -2235,14 +2235,12 @@ func (c *LabelRelationshipClient) QueryLabels(lr *LabelRelationship) *LabelQuery
|
|
|
|
|
|
// Hooks returns the client hooks.
|
|
|
func (c *LabelRelationshipClient) Hooks() []Hook {
|
|
|
- hooks := c.hooks.LabelRelationship
|
|
|
- return append(hooks[:len(hooks):len(hooks)], labelrelationship.Hooks[:]...)
|
|
|
+ return c.hooks.LabelRelationship
|
|
|
}
|
|
|
|
|
|
// Interceptors returns the client interceptors.
|
|
|
func (c *LabelRelationshipClient) Interceptors() []Interceptor {
|
|
|
- inters := c.inters.LabelRelationship
|
|
|
- return append(inters[:len(inters):len(inters)], labelrelationship.Interceptors[:]...)
|
|
|
+ return c.inters.LabelRelationship
|
|
|
}
|
|
|
|
|
|
func (c *LabelRelationshipClient) mutate(ctx context.Context, m *LabelRelationshipMutation) (Value, error) {
|
|
@@ -5464,17 +5462,17 @@ type (
|
|
|
Agent, AgentBase, AliyunAvatar, BatchMsg, Category, ChatRecords, ChatSession,
|
|
|
Contact, Employee, EmployeeConfig, Label, LabelRelationship, LabelTagging,
|
|
|
Message, MessageRecords, Msg, Server, SopNode, SopStage, SopTask, Token,
|
|
|
- Tutorial, UsageDetail, UsageStatisticDay, UsageStatisticHour, UsageStatisticMonth,
|
|
|
- UsageTotal, WorkExperience, WpChatroom, WpChatroomMember, Wx, WxCard,
|
|
|
- WxCardUser, WxCardVisit []ent.Hook
|
|
|
+ Tutorial, UsageDetail, UsageStatisticDay, UsageStatisticHour,
|
|
|
+ UsageStatisticMonth, UsageTotal, WorkExperience, WpChatroom, WpChatroomMember,
|
|
|
+ Wx, WxCard, WxCardUser, WxCardVisit []ent.Hook
|
|
|
}
|
|
|
inters struct {
|
|
|
Agent, AgentBase, AliyunAvatar, BatchMsg, Category, ChatRecords, ChatSession,
|
|
|
Contact, Employee, EmployeeConfig, Label, LabelRelationship, LabelTagging,
|
|
|
Message, MessageRecords, Msg, Server, SopNode, SopStage, SopTask, Token,
|
|
|
- Tutorial, UsageDetail, UsageStatisticDay, UsageStatisticHour, UsageStatisticMonth,
|
|
|
- UsageTotal, WorkExperience, WpChatroom, WpChatroomMember, Wx, WxCard,
|
|
|
- WxCardUser, WxCardVisit []ent.Interceptor
|
|
|
+ Tutorial, UsageDetail, UsageStatisticDay, UsageStatisticHour,
|
|
|
+ UsageStatisticMonth, UsageTotal, WorkExperience, WpChatroom, WpChatroomMember,
|
|
|
+ Wx, WxCard, WxCardUser, WxCardVisit []ent.Interceptor
|
|
|
}
|
|
|
)
|
|
|
|