From 0e34286d785f4e68073b33583b0074b31c1fabc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=A3=E5=A4=B4?= Date: Tue, 23 Jun 2026 14:44:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(external=5Fuser):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=A4=96=E9=83=A8=E8=81=94=E7=B3=BB=E4=BA=BA=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E4=BD=93=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B=E5=B9=B6=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E5=AF=B9=E9=BD=90=20(#890)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将ExternalProfile字段从字符串类型修正为指针结构体类型,适配企业微信API返回的JSON对象格式;同时对齐所有结构体字段的JSON标签,提升代码可读性 Co-authored-by: SuperX --- work/externalcontact/external_user.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/work/externalcontact/external_user.go b/work/externalcontact/external_user.go index 0d40fc2..885af4c 100644 --- a/work/externalcontact/external_user.go +++ b/work/externalcontact/external_user.go @@ -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 批量获取外部联系人跟进人信息