代码拉取完成,页面将自动刷新
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"`
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。