txim/api/group.go

22 lines
588 B
Go
Raw Normal View History

2022-01-11 10:14:11 +08:00
package api
import (
"gitee.ltd/lxh/txim/api/param"
"gitee.ltd/lxh/txim/common"
)
// GroupCreate 建群
//https://cloud.tencent.com/document/product/269/1615
func GroupCreate(r *param.GroupCreateReq) (*param.GroupCreateRes, error) {
a := param.GroupCreateRes{}
err := Api(common.GroupCreate, r, &a)
return &a, err
}
// PushOrdinaryMsgToGroup 发送普通群消息
func PushOrdinaryMsgToGroup(p *param.PushOrdinaryMsgToGroupReq) (*param.PushOrdinaryMsgToGroupRes, error) {
a := param.PushOrdinaryMsgToGroupRes{}
err := Api(common.PushOrdinaryMsgToGroup, p, &a)
return &a, err
}