Ai
1 Star 1 Fork 0

Ostaer/go-workwx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cmd_appchat_get.go 387 Bytes
一键复制 编辑 原始数据 按行查看 历史
Wang Xuerui 提交于 2019-08-03 18:19 +08:00 . feat: implement appchat/get and appchat/create
package commands
import (
"fmt"
"gopkg.in/urfave/cli.v2"
)
func cmdAppchatGet(c *cli.Context) error {
cfg := mustGetConfig(c)
chatid := c.Args().Get(0)
app := cfg.MakeWorkwxApp()
// TODO: failed requests currently panics
info, err := app.GetAppchat(chatid)
if err != nil {
fmt.Printf("error = %+v\n", err)
} else {
fmt.Printf("appchat = %+v\n", info)
}
return err
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ostaer/go-workwx.git
git@gitee.com:ostaer/go-workwx.git
ostaer
go-workwx
go-workwx
b16c285aee72

搜索帮助