1 Star 0 Fork 0

h79 / gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
contact.go 4.22 KB
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2024-01-22 16:50 . 请求参数
package structs
// ExternalRemark
// remark_company只在此外部联系人为微信用户时有效。
// remark,description,remark_company,remark_mobiles和remark_pic_mediaid不可同时为空。
// 如果填写了remark_mobiles,将会覆盖旧的备注手机号。
// 如果要清除所有备注手机号,请在remark_mobiles填写一个空字符串("")。
// remark_pic_mediaid可以通过素材管理接口获得。
type ExternalRemark struct {
Userid string `json:"userid"`
ExternalUserid string `json:"external_userid"`
Remark string `json:"remark"`
Description string `json:"description"`
RemarkCompany string `json:"remark_company"`
RemarkPicMediaId string `json:"remark_pic_mediaid"`
RemarkMobiles interface{} `json:"remark_mobiles"` //正常是一个 []string, 如果要清除所有备注手机号,请在remark_mobiles填写一个空字符串("")
}
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"`
UnionId string `json:"unionid"`
Type int `json:"type"`
Gender int `json:"gender"`
ExternalProfile *ExternalProfile `json:"external_profile,omitempty"`
}
type ExternalContactDetail struct {
ExternalContact ExternalContact `json:"external_contact"`
FollowInfo *FollowUser `json:"follow_info,omitempty"` //for batch
FollowUser []FollowUser `json:"follow_user,omitempty"` // for detail
}
type ExternalUserIdInfo struct {
CorpId string `json:"corpid"`
ExternalUserid string `json:"external_userid"`
}
type ExternalContactTagGroup struct {
GroupId string `json:"group_id"`
GroupName string `json:"group_name"`
CreateTime int64 `json:"create_time"`
Order int `json:"order"`
StrategyId int `json:"strategy_id,omitempty"`
Deleted bool `json:"deleted"`
Tag []ExternalContactTagGroupItem `json:"tag"`
}
type ExternalContactTagGroupItem struct {
Id string `json:"id"`
Name string `json:"name"`
CreateTime int64 `json:"create_time"`
Order int `json:"order"`
Deleted bool `json:"deleted"`
}
type ExternalContactAddTagReq struct {
GroupId string `json:"group_id,omitempty"`
GroupName string `json:"group_name,omitempty"`
Order int `json:"order,omitempty"`
AgentId int64 `json:"agentid,omitempty"` //授权方安装的应用agentid。仅旧的第三方多应用套件需要填此参数
Tag []ExternalContactTagInfo `json:"tag"`
}
type ExternalContactAddStrategyTagReq struct {
ExternalContactAddTagReq
StrategyId int `json:"strategy_id"`
}
type ExternalContactTagInfo struct {
Name string `json:"name"`
Order int `json:"order,omitempty"`
}
type ExternalContactEditTagReq struct {
Id string `json:"id"`
Name string `json:"name"`
Order int `json:"order"`
AgentId int64 `json:"agentid,omitempty"` //授权方安装的应用agentid。仅旧的第三方多应用套件需要填此参数
}
type ExternalContactMarkTagReq struct {
Userid string `json:"userid"`
ExternalUserid string `json:"external_userid"`
AddTag []string `json:"add_tag,omitempty"`
RemoveTag []string `json:"remove_tag,omitempty"`
}
type ExternalContactTagId struct {
TagId []string `json:"tag_id,omitempty"`
GroupId []string `json:"group_id,omitempty"`
}
type ExternalGroupListReq struct {
OwnerFilter OwnerFilter `json:"owner_filter"`
Cursor string `json:"cursor"`
Limit int `json:"limit"`
StatusFilter int `json:"status_filter"`
}
type ExternalTagIDResult struct {
Items []struct {
TmpExternalUserid string `json:"external_tagid"`
ExternalUserid string `json:"open_external_tagid"`
} `json:"items"`
InvalidTagIdList []string `json:"invalid_external_tagid_list"`
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.8.74

搜索帮助

344bd9b3 5694891 D2dac590 5694891