@@ -593,6 +593,186 @@ type respExternalContactBatchList struct {
593
593
ExternalContactList []ExternalContactBatchInfo `json:"external_contact_list"`
594
594
}
595
595
596
+ // ExternalContactCustomerAcquisitionLinkListResp 获取获客链接列表
597
+ type ExternalContactCustomerAcquisitionLinkListResp struct {
598
+ Result []string
599
+ NextCursor string
600
+ }
601
+
602
+ // reqExternalContactCustomerAcquisitionLinkList 获取获客链接列表
603
+ type reqExternalContactCustomerAcquisitionLinkList struct {
604
+ Cursor string `json:"cursor"`
605
+ Limit int `json:"limit"`
606
+ }
607
+
608
+ var _ bodyer = reqExternalContactCustomerAcquisitionLinkList {}
609
+
610
+ func (x reqExternalContactCustomerAcquisitionLinkList ) intoBody () ([]byte , error ) {
611
+ return marshalIntoJSONBody (x )
612
+ }
613
+
614
+ // respExternalContactBatchList 获取获客链接列表
615
+ type respExternalContactCustomerAcquisitionLinkList struct {
616
+ respCommon
617
+ NextCursor string `json:"next_cursor"`
618
+ LinkIDList []string `json:"link_id_list"`
619
+ }
620
+
621
+ // ExternalContactCustomerAcquisitionInfo 获客链接信息
622
+ type ExternalContactCustomerAcquisitionInfo struct {
623
+ //获客链接的名称
624
+ LinkName string `json:"link_name"`
625
+ //获客链接实际的url
626
+ URL string `json:"url"`
627
+ //创建时间
628
+ CreateTime time.Time `json:"create_time"`
629
+ //是否无需验证,默认为true
630
+ SkipVerify bool `json:"skip_verify"`
631
+ //该获客链接使用范围
632
+ Range ExternalContactCustomerAcquisitionRange `json:"range"`
633
+ //优先级选项
634
+ PriorityOption ExternalContactCustomerAcquisitionPriorityOption `json:"priority_option"`
635
+ }
636
+
637
+ // ExternalContactCustomerAcquisitionRange 该获客链接使用范围
638
+ type ExternalContactCustomerAcquisitionRange struct {
639
+ //该获客链接使用范围成员列表
640
+ UserList []string `json:"user_list"`
641
+ //该获客链接使用范围的部门列表
642
+ DepartmentList []int `json:"department_list"`
643
+ }
644
+
645
+ // ExternalContactCustomerAcquisitionPriorityOption 优先级选项
646
+ type ExternalContactCustomerAcquisitionPriorityOption struct {
647
+ //优先分配类型,1-全企业范围内优先分配给有好友关系的;2-指定范围内优先分配有好友关系的
648
+ PriorityType int `json:"priority_type"`
649
+ //priority_type为2时的指定成员列表
650
+ PriorityUseridList []string `json:"priority_userid_list"`
651
+ }
652
+
653
+ // reqExternalContactCustomerAcquisitionCreate 创建获客链接
654
+ type reqExternalContactCustomerAcquisitionCreate struct {
655
+ //获客链接的名称
656
+ LinkName string `json:"link_name"`
657
+ //该获客链接使用范围
658
+ Range ExternalContactCustomerAcquisitionRange `json:"range"`
659
+ //优先级选项
660
+ PriorityOption ExternalContactCustomerAcquisitionPriorityOption `json:"priority_option"`
661
+ //是否无需验证,默认为true
662
+ SkipVerify bool `json:"skip_verify"`
663
+ }
664
+
665
+ var _ bodyer = reqExternalContactCustomerAcquisitionCreate {}
666
+
667
+ func (x reqExternalContactCustomerAcquisitionCreate ) intoBody () ([]byte , error ) {
668
+
669
+ obj := map [string ]any {
670
+ "link_name" : x .LinkName ,
671
+ "skip_verify" : x .SkipVerify ,
672
+ }
673
+
674
+ if len (x .Range .UserList ) > 0 || len (x .Range .DepartmentList ) > 0 {
675
+ obj ["range" ] = x .Range
676
+ }
677
+ if len (x .PriorityOption .PriorityUseridList ) > 0 || x .PriorityOption .PriorityType != 0 {
678
+ obj ["priority_option" ] = x .PriorityOption
679
+ }
680
+ return marshalIntoJSONBody (obj )
681
+ }
682
+
683
+ // respExternalContactCustomerAcquisitionCreate 创建获客链接
684
+ type respExternalContactCustomerAcquisitionCreate struct {
685
+ respCommon
686
+ Link struct {
687
+ //获客链接的id
688
+ LinkID string `json:"link_id"`
689
+ //获客链接的名称
690
+ LinkName string `json:"link_name"`
691
+ //获客链接实际的url
692
+ URL string `json:"url"`
693
+ //创建时间
694
+ CreateTime int `json:"create_time"`
695
+ } `json:"link"`
696
+ }
697
+
698
+ type ExternalContactCustomerAcquisitionCreateResp struct {
699
+ LinkID string `json:"link_id"`
700
+ //获客链接的名称
701
+ LinkName string `json:"link_name"`
702
+ //获客链接实际的url
703
+ URL string `json:"url"`
704
+ //创建时间
705
+ CreateTime time.Time `json:"create_time"`
706
+ }
707
+
708
+ // reqExternalContactCustomerAcquisitionInfo 获客链接信息
709
+ type reqExternalContactCustomerAcquisitionInfo struct {
710
+ LinkID string `json:"link_id"`
711
+ }
712
+
713
+ var _ bodyer = reqExternalContactCustomerAcquisitionInfo {}
714
+
715
+ func (x reqExternalContactCustomerAcquisitionInfo ) intoBody () ([]byte , error ) {
716
+ return marshalIntoJSONBody (x )
717
+ }
718
+
719
+ // respExternalContactCustomerAcquisitionInfo 获客链接信息
720
+ type respExternalContactCustomerAcquisitionInfo struct {
721
+ respCommon
722
+ Link struct {
723
+ //获客链接的名称
724
+ LinkName string `json:"link_name"`
725
+ //获客链接实际的url
726
+ URL string `json:"url"`
727
+ //创建时间
728
+ CreateTime int `json:"create_time"`
729
+ //是否无需验证,默认为true
730
+ SkipVerify bool `json:"skip_verify"`
731
+ //该获客链接使用范围
732
+ Range ExternalContactCustomerAcquisitionRange `json:"range"`
733
+ //优先级选项
734
+ PriorityOption ExternalContactCustomerAcquisitionPriorityOption `json:"priority_option"`
735
+ } `json:"link"`
736
+ }
737
+
738
+ // ExternalContactCustomerAcquisitionCustomerInfo 获客助手客户信息
739
+ type ExternalContactCustomerAcquisitionCustomerInfo struct {
740
+ //客户external_userid
741
+ ExternalUserid string `json:"external_userid"`
742
+ //通过获客链接添加此客户的跟进人userid
743
+ UserID string `json:"userid"`
744
+ //会话状态,0-客户未发消息 1-客户已发送消息 2-客户发送消息状态未知
745
+ ChatStatus int `json:"chat_status"`
746
+ //用于区分客户具体是通过哪个获客链接进行添加,用户可在获客链接后拼接customer_channel=自定义字符串,字符串不超过64字节,超过会被截断。通过点击带有customer_channel参数的链接获取到的客户,调用获客信息接口或获取客户详情接口时,返回的state参数即为链接后拼接自定义字符串
747
+ State string `json:"state"`
748
+ }
749
+
750
+ // ExternalContactCustomerAcquisitionCustomerResp 获客助手客户信息
751
+ type ExternalContactCustomerAcquisitionCustomerResp struct {
752
+ Result []ExternalContactCustomerAcquisitionCustomerInfo
753
+ NextCursor string
754
+ }
755
+
756
+ // reqExternalContactCustomerAcquisitionCustomer 获客助手客户信息
757
+ type reqExternalContactCustomerAcquisitionCustomer struct {
758
+ LinkID string `json:"link_id"`
759
+ Cursor string `json:"cursor"`
760
+ Limit int `json:"limit"`
761
+ }
762
+
763
+ var _ bodyer = reqExternalContactCustomerAcquisitionCustomer {}
764
+
765
+ func (x reqExternalContactCustomerAcquisitionCustomer ) intoBody () ([]byte , error ) {
766
+ return marshalIntoJSONBody (x )
767
+ }
768
+
769
+ // respExternalContactBatchList 获客助手客户信息
770
+ type respExternalContactCustomerAcquisitionCustomer struct {
771
+ respCommon
772
+ NextCursor string `json:"next_cursor"`
773
+ CustomerList []ExternalContactCustomerAcquisitionCustomerInfo `json:"customer_list"`
774
+ }
775
+
596
776
// reqExternalContactRemark 获取客户详情
597
777
type reqExternalContactRemark struct {
598
778
Remark * ExternalContactRemark
0 commit comments