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
+10
-10
@@ -187,16 +187,16 @@ type ExternalUserForBatch struct {
|
|||||||
|
|
||||||
// ExternalContact 批量获取外部联系人用户信息
|
// ExternalContact 批量获取外部联系人用户信息
|
||||||
type ExternalContact struct {
|
type ExternalContact struct {
|
||||||
ExternalUserID string `json:"external_userid"`
|
ExternalUserID string `json:"external_userid"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Position string `json:"position"`
|
Position string `json:"position"`
|
||||||
Avatar string `json:"avatar"`
|
Avatar string `json:"avatar"`
|
||||||
CorpName string `json:"corp_name"`
|
CorpName string `json:"corp_name"`
|
||||||
CorpFullName string `json:"corp_full_name"`
|
CorpFullName string `json:"corp_full_name"`
|
||||||
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