1 Star 1 Fork 0

Ostaer/go-workwx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
appchat.go 565 Bytes
一键复制 编辑 原始数据 按行查看 历史
Wang Xuerui 提交于 2019-08-03 18:19 +08:00 . feat: implement appchat/get and appchat/create
package workwx
// CreateAppchat 创建群聊会话
func (c *WorkwxApp) CreateAppchat(chatInfo *ChatInfo) (chatid string, err error) {
resp, err := c.execAppchatCreate(reqAppchatCreate{
ChatInfo: chatInfo,
})
if err != nil {
return "", err
}
return resp.ChatID, nil
}
// GetAppchat 获取群聊会话
func (c *WorkwxApp) GetAppchat(chatid string) (*ChatInfo, error) {
resp, err := c.execAppchatGet(reqAppchatGet{
ChatID: chatid,
})
if err != nil {
return nil, err
}
// TODO: return bare T instead of &T?
obj := resp.ChatInfo
return obj, nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ostaer/go-workwx.git
git@gitee.com:ostaer/go-workwx.git
ostaer
go-workwx
go-workwx
b16c285aee72

搜索帮助