1 Star 0 Fork 0

h79 / gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
agent.go 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2022-09-25 13:17 . token管理 1.0.23
package work
import "gitee.com/h79/gothird/token"
// AGGetDetail 获取指定的应用详情
// 对于互联企业的应用,如果需要获取应用可见范围内其他互联企业的部门与成员,请调用互联企业-获取应用可见范围接口
// 请求方式:GET(HTTPS)
// 请求地址:https://qyapi.weixin.qq.com/cgi-bin/agent/get?access_token=ACCESS_TOKEN&agentid=AGENTID
func AGGetDetail(api *token.Api) {
}
// AGGetList 请求方式:GET(HTTPS)
// 请求地址:https://qyapi.weixin.qq.com/cgi-bin/agent/list?access_token=ACCESS_TOKEN
func AGGetList(api *token.Api) ([]AgentBase, error) {
return nil, nil
}
type AgentBase struct {
AgentId int `json:"agentid"`
Name string `json:"name"`
SquareLogoUrl string `json:"square_logo_url"`
}
type AgentDetail struct {
AgentBase
Description string `json:"description"`
AllowUserInfos AllowUserinfos `json:"allow_userinfos"`
AllowPartys AllowPartys `json:"allow_partys"`
AllowTags AllowTags `json:"allow_tags"`
Close int `json:"close"`
RedirectDomain string `json:"redirect_domain"`
ReportLocationFlag int `json:"report_location_flag"`
Isreportenter int `json:"isreportenter"`
HomeUrl string `json:"home_url"`
CustomizedPublishStatus int `json:"customized_publish_status"`
}
type AllowUserinfos struct {
User []AllowUser `json:"user"`
}
type AllowUser struct {
Userid string `json:"userid"`
}
type AllowPartys struct {
Partyid []int `json:"partyid"`
}
type AllowTags struct {
Tagid []int `json:"tagid"`
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.0.55

搜索帮助

344bd9b3 5694891 D2dac590 5694891