mirror of
https://github.com/silenceper/wechat.git
synced 2026-11-16 05:12:03 +08:00
fix(external_user): 修复外部联系人结构体字段类型并格式化对齐 (#890)
将ExternalProfile字段从字符串类型修正为指针结构体类型,适配企业微信API返回的JSON对象格式;同时对齐所有结构体字段的JSON标签,提升代码可读性 Co-authored-by: SuperX <xiang.song@todreamer.com>
This commit is contained in:
1 parent
fb3009e337
commit
0e34286d78
1 file changed
+1
-1
@@ -196,7 +196,7 @@ type ExternalContact struct {
|
|||||||
Type int64 `json:"type"`
|
Type int64 `json:"type"`
|
||||||
Gender int64 `json:"gender"`
|
Gender int64 `json:"gender"`
|
||||||
UnionID string `json:"unionid"`
|
UnionID string `json:"unionid"`
|
||||||
ExternalProfile string `json:"external_profile"`
|
ExternalProfile *ExternalProfile `json:"external_profile"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// FollowInfo 批量获取外部联系人跟进人信息
|
// FollowInfo 批量获取外部联系人跟进人信息
|
||||||
|
|||||||
Reference in new issue
Block a user