fix(external_user): 修复外部联系人结构体字段类型并格式化对齐 (#890)

将ExternalProfile字段从字符串类型修正为指针结构体类型,适配企业微信API返回的JSON对象格式;同时对齐所有结构体字段的JSON标签,提升代码可读性

Co-authored-by: SuperX <xiang.song@todreamer.com>
This commit is contained in:
劣头andSuperX authored and GitHub committed 2026-06-23 14:44:44 +08:00
1 parent fb3009e337
commit 0e34286d78
1 file changed
+10 -10
+10 -10
View File
@@ -187,16 +187,16 @@ type ExternalUserForBatch struct {
// ExternalContact 批量获取外部联系人用户信息
type ExternalContact struct {
ExternalUserID string `json:"external_userid"`
Name string `json:"name"`
Position string `json:"position"`
Avatar string `json:"avatar"`
CorpName string `json:"corp_name"`
CorpFullName string `json:"corp_full_name"`
Type int64 `json:"type"`
Gender int64 `json:"gender"`
UnionID string `json:"unionid"`
ExternalProfile string `json:"external_profile"`
ExternalUserID string `json:"external_userid"`
Name string `json:"name"`
Position string `json:"position"`
Avatar string `json:"avatar"`
CorpName string `json:"corp_name"`
CorpFullName string `json:"corp_full_name"`
Type int64 `json:"type"`
Gender int64 `json:"gender"`
UnionID string `json:"unionid"`
ExternalProfile *ExternalProfile `json:"external_profile"`
}
// FollowInfo 批量获取外部联系人跟进人信息