mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
group pb
This commit is contained in:
parent
cdc2428aca
commit
79d097c903
@ -4,22 +4,23 @@ import (
|
|||||||
"Open_IM/pkg/cms_api_struct"
|
"Open_IM/pkg/cms_api_struct"
|
||||||
"Open_IM/pkg/common/config"
|
"Open_IM/pkg/common/config"
|
||||||
"Open_IM/pkg/common/constant"
|
"Open_IM/pkg/common/constant"
|
||||||
"Open_IM/pkg/common/log"
|
|
||||||
openIMHttp "Open_IM/pkg/common/http"
|
openIMHttp "Open_IM/pkg/common/http"
|
||||||
|
"Open_IM/pkg/common/log"
|
||||||
"Open_IM/pkg/grpc-etcdv3/getcdv3"
|
"Open_IM/pkg/grpc-etcdv3/getcdv3"
|
||||||
"Open_IM/pkg/utils"
|
"Open_IM/pkg/utils"
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
"context"
|
|
||||||
|
|
||||||
pbGroup "Open_IM/pkg/proto/group"
|
pbGroup "Open_IM/pkg/proto/group"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetGroups(c *gin.Context) {
|
func GetGroups(c *gin.Context) {
|
||||||
var (
|
var (
|
||||||
req cms_api_struct.GetGroupsRequest
|
req cms_api_struct.GetGroupsRequest
|
||||||
resp cms_api_struct.GetGroupsResponse
|
resp cms_api_struct.GetGroupsResponse
|
||||||
reqPb pbGroup.GetGroupsReq
|
reqPb pbGroup.GetGroupsReq
|
||||||
)
|
)
|
||||||
if err := c.ShouldBindQuery(&req); err != nil {
|
if err := c.ShouldBindQuery(&req); err != nil {
|
||||||
@ -42,8 +43,8 @@ func GetGroups(c *gin.Context) {
|
|||||||
|
|
||||||
func GetGroup(c *gin.Context) {
|
func GetGroup(c *gin.Context) {
|
||||||
var (
|
var (
|
||||||
req cms_api_struct.GetGroupRequest
|
req cms_api_struct.GetGroupRequest
|
||||||
resp cms_api_struct.GetGroupResponse
|
resp cms_api_struct.GetGroupResponse
|
||||||
reqPb pbGroup.GetGroupReq
|
reqPb pbGroup.GetGroupReq
|
||||||
)
|
)
|
||||||
if err := c.ShouldBindQuery(&req); err != nil {
|
if err := c.ShouldBindQuery(&req); err != nil {
|
||||||
@ -66,8 +67,8 @@ func GetGroup(c *gin.Context) {
|
|||||||
|
|
||||||
func CreateGroup(c *gin.Context) {
|
func CreateGroup(c *gin.Context) {
|
||||||
var (
|
var (
|
||||||
req cms_api_struct.CreateGroupRequest
|
req cms_api_struct.CreateGroupRequest
|
||||||
resp cms_api_struct.CreateGroupResponse
|
resp cms_api_struct.CreateGroupResponse
|
||||||
reqPb pbGroup.CreateGroupReq
|
reqPb pbGroup.CreateGroupReq
|
||||||
)
|
)
|
||||||
if err := c.BindJSON(&req); err != nil {
|
if err := c.BindJSON(&req); err != nil {
|
||||||
@ -76,11 +77,10 @@ func CreateGroup(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
reqPb.GroupInfo.GroupName = req.GroupName
|
reqPb.GroupInfo.GroupName = req.GroupName
|
||||||
reqPb.
|
reqPb.GroupInfo.CreatorUserID = ""
|
||||||
etcdConn := getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImGroupName)
|
etcdConn := getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImGroupName)
|
||||||
client := pbGroup.NewGroupClient(etcdConn)
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
respPb, err := client.CreateGroup(context.Background(), &reqPb)
|
respPb, err := client.CreateGroup(context.Background(), &reqPb)
|
||||||
fmt.Println(respPb)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("s", "GetUserInfo failed ", err.Error())
|
log.NewError("s", "GetUserInfo failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
@ -89,11 +89,25 @@ func CreateGroup(c *gin.Context) {
|
|||||||
openIMHttp.RespHttp200(c, constant.OK, resp)
|
openIMHttp.RespHttp200(c, constant.OK, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func SearchGroupsMember(c *gin.Context) {
|
func BanGroupChat(c *gin.Context) {
|
||||||
|
var (
|
||||||
|
req cms_api_struct.BanGroupChatRequest
|
||||||
|
resp cms_api_struct.BanGroupChatResponse
|
||||||
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func BanPrivateChat(c *gin.Context) {
|
||||||
|
var (
|
||||||
|
req cms_api_struct.BanPrivateChatRequest
|
||||||
|
resp cms_api_struct.BanPrivateChatResponse
|
||||||
|
)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func SearchGroupsMember(c *gin.Context) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
func AddUsers(c *gin.Context) {
|
func AddUsers(c *gin.Context) {
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.26.0
|
||||||
// protoc v3.15.5
|
// protoc v3.19.3
|
||||||
// source: group/group.proto
|
// source: group/group.proto
|
||||||
|
|
||||||
package group
|
package group
|
||||||
@ -2261,6 +2261,386 @@ func (x *GetGroupMemberReq) GetOperationID() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type BanGroupChatReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
|
||||||
|
OperationID string `protobuf:"bytes,2,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanGroupChatReq) Reset() {
|
||||||
|
*x = BanGroupChatReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_group_group_proto_msgTypes[36]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanGroupChatReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*BanGroupChatReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *BanGroupChatReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_group_group_proto_msgTypes[36]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use BanGroupChatReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*BanGroupChatReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_group_group_proto_rawDescGZIP(), []int{36}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanGroupChatReq) GetGroupId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.GroupId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanGroupChatReq) GetOperationID() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.OperationID
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type BanGroupChatResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanGroupChatResp) Reset() {
|
||||||
|
*x = BanGroupChatResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_group_group_proto_msgTypes[37]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanGroupChatResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*BanGroupChatResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *BanGroupChatResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_group_group_proto_msgTypes[37]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use BanGroupChatResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*BanGroupChatResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_group_group_proto_rawDescGZIP(), []int{37}
|
||||||
|
}
|
||||||
|
|
||||||
|
type BanPrivateChatReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
|
||||||
|
OperationID string `protobuf:"bytes,2,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanPrivateChatReq) Reset() {
|
||||||
|
*x = BanPrivateChatReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_group_group_proto_msgTypes[38]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanPrivateChatReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*BanPrivateChatReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *BanPrivateChatReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_group_group_proto_msgTypes[38]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use BanPrivateChatReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*BanPrivateChatReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_group_group_proto_rawDescGZIP(), []int{38}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanPrivateChatReq) GetGroupId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.GroupId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanPrivateChatReq) GetOperationID() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.OperationID
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type BanPrivateChatResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanPrivateChatResp) Reset() {
|
||||||
|
*x = BanPrivateChatResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_group_group_proto_msgTypes[39]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BanPrivateChatResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*BanPrivateChatResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *BanPrivateChatResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_group_group_proto_msgTypes[39]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use BanPrivateChatResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*BanPrivateChatResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_group_group_proto_rawDescGZIP(), []int{39}
|
||||||
|
}
|
||||||
|
|
||||||
|
type SetMasterReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
|
||||||
|
UserId string `protobuf:"bytes,2,opt,name=UserId,proto3" json:"UserId,omitempty"`
|
||||||
|
OperationID string `protobuf:"bytes,3,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetMasterReq) Reset() {
|
||||||
|
*x = SetMasterReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_group_group_proto_msgTypes[40]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetMasterReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SetMasterReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SetMasterReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_group_group_proto_msgTypes[40]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use SetMasterReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SetMasterReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_group_group_proto_rawDescGZIP(), []int{40}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetMasterReq) GetGroupId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.GroupId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetMasterReq) GetUserId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.UserId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetMasterReq) GetOperationID() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.OperationID
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type SetMasterResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetMasterResp) Reset() {
|
||||||
|
*x = SetMasterResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_group_group_proto_msgTypes[41]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetMasterResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SetMasterResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SetMasterResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_group_group_proto_msgTypes[41]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use SetMasterResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SetMasterResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_group_group_proto_rawDescGZIP(), []int{41}
|
||||||
|
}
|
||||||
|
|
||||||
|
type DeleteGroupReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
|
||||||
|
OperationID string `protobuf:"bytes,2,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteGroupReq) Reset() {
|
||||||
|
*x = DeleteGroupReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_group_group_proto_msgTypes[42]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteGroupReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DeleteGroupReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DeleteGroupReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_group_group_proto_msgTypes[42]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use DeleteGroupReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DeleteGroupReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_group_group_proto_rawDescGZIP(), []int{42}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteGroupReq) GetGroupId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.GroupId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteGroupReq) GetOperationID() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.OperationID
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type DeleteGroupResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteGroupResp) Reset() {
|
||||||
|
*x = DeleteGroupResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_group_group_proto_msgTypes[43]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteGroupResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DeleteGroupResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DeleteGroupResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_group_group_proto_msgTypes[43]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use DeleteGroupResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DeleteGroupResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_group_group_proto_rawDescGZIP(), []int{43}
|
||||||
|
}
|
||||||
|
|
||||||
var File_group_group_proto protoreflect.FileDescriptor
|
var File_group_group_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_group_group_proto_rawDesc = []byte{
|
var file_group_group_proto_rawDesc = []byte{
|
||||||
@ -2548,7 +2928,33 @@ var file_group_group_proto_rawDesc = []byte{
|
|||||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x20,
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x20,
|
||||||
0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20,
|
0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44,
|
0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44,
|
||||||
0x32, 0xa8, 0x09, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3c, 0x0a, 0x0b, 0x63, 0x72,
|
0x22, 0x4d, 0x0a, 0x0f, 0x42, 0x61, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x68, 0x61, 0x74,
|
||||||
|
0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x20, 0x0a,
|
||||||
|
0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22,
|
||||||
|
0x12, 0x0a, 0x10, 0x42, 0x61, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x68, 0x61, 0x74, 0x52,
|
||||||
|
0x65, 0x73, 0x70, 0x22, 0x4f, 0x0a, 0x11, 0x42, 0x61, 0x6e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74,
|
||||||
|
0x65, 0x43, 0x68, 0x61, 0x74, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75,
|
||||||
|
0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
||||||
|
0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
|
||||||
|
0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
||||||
|
0x6f, 0x6e, 0x49, 0x44, 0x22, 0x14, 0x0a, 0x12, 0x42, 0x61, 0x6e, 0x50, 0x72, 0x69, 0x76, 0x61,
|
||||||
|
0x74, 0x65, 0x43, 0x68, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x62, 0x0a, 0x0c, 0x53, 0x65,
|
||||||
|
0x74, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72,
|
||||||
|
0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f,
|
||||||
|
0x75, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b,
|
||||||
|
0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x0f,
|
||||||
|
0x0a, 0x0d, 0x53, 0x65, 0x74, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22,
|
||||||
|
0x4c, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65,
|
||||||
|
0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x4f,
|
||||||
|
0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||||
|
0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x11, 0x0a,
|
||||||
|
0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x32, 0xa5, 0x0b, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3c, 0x0a, 0x0b, 0x63, 0x72,
|
||||||
0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x15, 0x2e, 0x67, 0x72, 0x6f, 0x75,
|
0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x15, 0x2e, 0x67, 0x72, 0x6f, 0x75,
|
||||||
0x70, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71,
|
0x70, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71,
|
||||||
0x1a, 0x16, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47,
|
0x1a, 0x16, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47,
|
||||||
@ -2622,9 +3028,25 @@ var file_group_group_proto_rawDesc = []byte{
|
|||||||
0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,
|
0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,
|
||||||
0x12, 0x13, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
|
0x12, 0x13, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
|
||||||
0x70, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65,
|
0x70, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65,
|
||||||
0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0f, 0x5a, 0x0d, 0x2e,
|
0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3f, 0x0a, 0x0c, 0x42,
|
||||||
0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x62, 0x06, 0x70, 0x72,
|
0x61, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x68, 0x61, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x72,
|
||||||
0x6f, 0x74, 0x6f, 0x33,
|
0x6f, 0x75, 0x70, 0x2e, 0x42, 0x61, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x68, 0x61, 0x74,
|
||||||
|
0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x42, 0x61, 0x6e, 0x47,
|
||||||
|
0x72, 0x6f, 0x75, 0x70, 0x43, 0x68, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x44, 0x0a, 0x0e,
|
||||||
|
0x42, 0x61, 0x6e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x74, 0x12, 0x18,
|
||||||
|
0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x42, 0x61, 0x6e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74,
|
||||||
|
0x65, 0x43, 0x68, 0x61, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||||||
|
0x2e, 0x42, 0x61, 0x6e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x74, 0x52,
|
||||||
|
0x65, 0x71, 0x12, 0x36, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x12,
|
||||||
|
0x13, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x53, 0x65, 0x74, 0x4d, 0x61, 0x73, 0x74, 0x65,
|
||||||
|
0x72, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x53, 0x65, 0x74,
|
||||||
|
0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3c, 0x0a, 0x0b, 0x44, 0x65,
|
||||||
|
0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x15, 0x2e, 0x67, 0x72, 0x6f, 0x75,
|
||||||
|
0x70, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71,
|
||||||
|
0x1a, 0x16, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47,
|
||||||
|
0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x2f, 0x67, 0x72,
|
||||||
|
0x6f, 0x75, 0x70, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -2639,7 +3061,7 @@ func file_group_group_proto_rawDescGZIP() []byte {
|
|||||||
return file_group_group_proto_rawDescData
|
return file_group_group_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_group_group_proto_msgTypes = make([]protoimpl.MessageInfo, 36)
|
var file_group_group_proto_msgTypes = make([]protoimpl.MessageInfo, 44)
|
||||||
var file_group_group_proto_goTypes = []interface{}{
|
var file_group_group_proto_goTypes = []interface{}{
|
||||||
(*CommonResp)(nil), // 0: group.CommonResp
|
(*CommonResp)(nil), // 0: group.CommonResp
|
||||||
(*GroupAddMemberInfo)(nil), // 1: group.GroupAddMemberInfo
|
(*GroupAddMemberInfo)(nil), // 1: group.GroupAddMemberInfo
|
||||||
@ -2677,32 +3099,40 @@ var file_group_group_proto_goTypes = []interface{}{
|
|||||||
(*GetGroupsReq)(nil), // 33: group.GetGroupsReq
|
(*GetGroupsReq)(nil), // 33: group.GetGroupsReq
|
||||||
(*GetGroupsResp)(nil), // 34: group.GetGroupsResp
|
(*GetGroupsResp)(nil), // 34: group.GetGroupsResp
|
||||||
(*GetGroupMemberReq)(nil), // 35: group.GetGroupMemberReq
|
(*GetGroupMemberReq)(nil), // 35: group.GetGroupMemberReq
|
||||||
(*sdk_ws.GroupInfo)(nil), // 36: server_api_params.GroupInfo
|
(*BanGroupChatReq)(nil), // 36: group.BanGroupChatReq
|
||||||
(*sdk_ws.GroupRequest)(nil), // 37: server_api_params.GroupRequest
|
(*BanGroupChatResp)(nil), // 37: group.BanGroupChatResp
|
||||||
(*sdk_ws.GroupMemberFullInfo)(nil), // 38: server_api_params.GroupMemberFullInfo
|
(*BanPrivateChatReq)(nil), // 38: group.BanPrivateChatReq
|
||||||
(*sdk_ws.RequestPagination)(nil), // 39: server_api_params.RequestPagination
|
(*BanPrivateChatResp)(nil), // 39: group.BanPrivateChatResp
|
||||||
|
(*SetMasterReq)(nil), // 40: group.SetMasterReq
|
||||||
|
(*SetMasterResp)(nil), // 41: group.SetMasterResp
|
||||||
|
(*DeleteGroupReq)(nil), // 42: group.DeleteGroupReq
|
||||||
|
(*DeleteGroupResp)(nil), // 43: group.DeleteGroupResp
|
||||||
|
(*sdk_ws.GroupInfo)(nil), // 44: server_api_params.GroupInfo
|
||||||
|
(*sdk_ws.GroupRequest)(nil), // 45: server_api_params.GroupRequest
|
||||||
|
(*sdk_ws.GroupMemberFullInfo)(nil), // 46: server_api_params.GroupMemberFullInfo
|
||||||
|
(*sdk_ws.RequestPagination)(nil), // 47: server_api_params.RequestPagination
|
||||||
}
|
}
|
||||||
var file_group_group_proto_depIdxs = []int32{
|
var file_group_group_proto_depIdxs = []int32{
|
||||||
1, // 0: group.CreateGroupReq.InitMemberList:type_name -> group.GroupAddMemberInfo
|
1, // 0: group.CreateGroupReq.InitMemberList:type_name -> group.GroupAddMemberInfo
|
||||||
36, // 1: group.CreateGroupReq.GroupInfo:type_name -> server_api_params.GroupInfo
|
44, // 1: group.CreateGroupReq.GroupInfo:type_name -> server_api_params.GroupInfo
|
||||||
36, // 2: group.CreateGroupResp.GroupInfo:type_name -> server_api_params.GroupInfo
|
44, // 2: group.CreateGroupResp.GroupInfo:type_name -> server_api_params.GroupInfo
|
||||||
36, // 3: group.GetGroupsInfoResp.GroupInfoList:type_name -> server_api_params.GroupInfo
|
44, // 3: group.GetGroupsInfoResp.GroupInfoList:type_name -> server_api_params.GroupInfo
|
||||||
36, // 4: group.SetGroupInfoReq.GroupInfo:type_name -> server_api_params.GroupInfo
|
44, // 4: group.SetGroupInfoReq.GroupInfo:type_name -> server_api_params.GroupInfo
|
||||||
0, // 5: group.SetGroupInfoResp.CommonResp:type_name -> group.CommonResp
|
0, // 5: group.SetGroupInfoResp.CommonResp:type_name -> group.CommonResp
|
||||||
37, // 6: group.GetGroupApplicationListResp.GroupRequestList:type_name -> server_api_params.GroupRequest
|
45, // 6: group.GetGroupApplicationListResp.GroupRequestList:type_name -> server_api_params.GroupRequest
|
||||||
0, // 7: group.TransferGroupOwnerResp.CommonResp:type_name -> group.CommonResp
|
0, // 7: group.TransferGroupOwnerResp.CommonResp:type_name -> group.CommonResp
|
||||||
0, // 8: group.JoinGroupResp.CommonResp:type_name -> group.CommonResp
|
0, // 8: group.JoinGroupResp.CommonResp:type_name -> group.CommonResp
|
||||||
0, // 9: group.GroupApplicationResponseResp.CommonResp:type_name -> group.CommonResp
|
0, // 9: group.GroupApplicationResponseResp.CommonResp:type_name -> group.CommonResp
|
||||||
0, // 10: group.QuitGroupResp.CommonResp:type_name -> group.CommonResp
|
0, // 10: group.QuitGroupResp.CommonResp:type_name -> group.CommonResp
|
||||||
38, // 11: group.GetGroupMemberListResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
46, // 11: group.GetGroupMemberListResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
||||||
38, // 12: group.GetGroupMembersInfoResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
46, // 12: group.GetGroupMembersInfoResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
||||||
23, // 13: group.KickGroupMemberResp.Id2ResultList:type_name -> group.Id2Result
|
23, // 13: group.KickGroupMemberResp.Id2ResultList:type_name -> group.Id2Result
|
||||||
36, // 14: group.GetJoinedGroupListResp.GroupList:type_name -> server_api_params.GroupInfo
|
44, // 14: group.GetJoinedGroupListResp.GroupList:type_name -> server_api_params.GroupInfo
|
||||||
23, // 15: group.InviteUserToGroupResp.Id2ResultList:type_name -> group.Id2Result
|
23, // 15: group.InviteUserToGroupResp.Id2ResultList:type_name -> group.Id2Result
|
||||||
38, // 16: group.GetGroupAllMemberResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
46, // 16: group.GetGroupAllMemberResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
||||||
36, // 17: group.GetGroupResp.GroupInfo:type_name -> server_api_params.GroupInfo
|
44, // 17: group.GetGroupResp.GroupInfo:type_name -> server_api_params.GroupInfo
|
||||||
39, // 18: group.GetGroupsReq.Pagination:type_name -> server_api_params.RequestPagination
|
47, // 18: group.GetGroupsReq.Pagination:type_name -> server_api_params.RequestPagination
|
||||||
36, // 19: group.GetGroupsResp.GroupInfo:type_name -> server_api_params.GroupInfo
|
44, // 19: group.GetGroupsResp.GroupInfo:type_name -> server_api_params.GroupInfo
|
||||||
2, // 20: group.group.createGroup:input_type -> group.CreateGroupReq
|
2, // 20: group.group.createGroup:input_type -> group.CreateGroupReq
|
||||||
12, // 21: group.group.joinGroup:input_type -> group.JoinGroupReq
|
12, // 21: group.group.joinGroup:input_type -> group.JoinGroupReq
|
||||||
16, // 22: group.group.quitGroup:input_type -> group.QuitGroupReq
|
16, // 22: group.group.quitGroup:input_type -> group.QuitGroupReq
|
||||||
@ -2719,24 +3149,32 @@ var file_group_group_proto_depIdxs = []int32{
|
|||||||
29, // 33: group.group.getGroupAllMember:input_type -> group.GetGroupAllMemberReq
|
29, // 33: group.group.getGroupAllMember:input_type -> group.GetGroupAllMemberReq
|
||||||
31, // 34: group.group.GetGroup:input_type -> group.GetGroupReq
|
31, // 34: group.group.GetGroup:input_type -> group.GetGroupReq
|
||||||
33, // 35: group.group.GetGroups:input_type -> group.GetGroupsReq
|
33, // 35: group.group.GetGroups:input_type -> group.GetGroupsReq
|
||||||
3, // 36: group.group.createGroup:output_type -> group.CreateGroupResp
|
36, // 36: group.group.BanGroupChat:input_type -> group.BanGroupChatReq
|
||||||
13, // 37: group.group.joinGroup:output_type -> group.JoinGroupResp
|
38, // 37: group.group.BanPrivateChat:input_type -> group.BanPrivateChatReq
|
||||||
17, // 38: group.group.quitGroup:output_type -> group.QuitGroupResp
|
40, // 38: group.group.SetMaster:input_type -> group.SetMasterReq
|
||||||
5, // 39: group.group.getGroupsInfo:output_type -> group.GetGroupsInfoResp
|
42, // 39: group.group.DeleteGroup:input_type -> group.DeleteGroupReq
|
||||||
7, // 40: group.group.setGroupInfo:output_type -> group.SetGroupInfoResp
|
3, // 40: group.group.createGroup:output_type -> group.CreateGroupResp
|
||||||
9, // 41: group.group.getGroupApplicationList:output_type -> group.GetGroupApplicationListResp
|
13, // 41: group.group.joinGroup:output_type -> group.JoinGroupResp
|
||||||
11, // 42: group.group.transferGroupOwner:output_type -> group.TransferGroupOwnerResp
|
17, // 42: group.group.quitGroup:output_type -> group.QuitGroupResp
|
||||||
15, // 43: group.group.groupApplicationResponse:output_type -> group.GroupApplicationResponseResp
|
5, // 43: group.group.getGroupsInfo:output_type -> group.GetGroupsInfoResp
|
||||||
19, // 44: group.group.getGroupMemberList:output_type -> group.GetGroupMemberListResp
|
7, // 44: group.group.setGroupInfo:output_type -> group.SetGroupInfoResp
|
||||||
21, // 45: group.group.getGroupMembersInfo:output_type -> group.GetGroupMembersInfoResp
|
9, // 45: group.group.getGroupApplicationList:output_type -> group.GetGroupApplicationListResp
|
||||||
24, // 46: group.group.kickGroupMember:output_type -> group.KickGroupMemberResp
|
11, // 46: group.group.transferGroupOwner:output_type -> group.TransferGroupOwnerResp
|
||||||
26, // 47: group.group.getJoinedGroupList:output_type -> group.GetJoinedGroupListResp
|
15, // 47: group.group.groupApplicationResponse:output_type -> group.GroupApplicationResponseResp
|
||||||
28, // 48: group.group.inviteUserToGroup:output_type -> group.InviteUserToGroupResp
|
19, // 48: group.group.getGroupMemberList:output_type -> group.GetGroupMemberListResp
|
||||||
30, // 49: group.group.getGroupAllMember:output_type -> group.GetGroupAllMemberResp
|
21, // 49: group.group.getGroupMembersInfo:output_type -> group.GetGroupMembersInfoResp
|
||||||
34, // 50: group.group.GetGroup:output_type -> group.GetGroupsResp
|
24, // 50: group.group.kickGroupMember:output_type -> group.KickGroupMemberResp
|
||||||
34, // 51: group.group.GetGroups:output_type -> group.GetGroupsResp
|
26, // 51: group.group.getJoinedGroupList:output_type -> group.GetJoinedGroupListResp
|
||||||
36, // [36:52] is the sub-list for method output_type
|
28, // 52: group.group.inviteUserToGroup:output_type -> group.InviteUserToGroupResp
|
||||||
20, // [20:36] is the sub-list for method input_type
|
30, // 53: group.group.getGroupAllMember:output_type -> group.GetGroupAllMemberResp
|
||||||
|
34, // 54: group.group.GetGroup:output_type -> group.GetGroupsResp
|
||||||
|
34, // 55: group.group.GetGroups:output_type -> group.GetGroupsResp
|
||||||
|
37, // 56: group.group.BanGroupChat:output_type -> group.BanGroupChatResp
|
||||||
|
38, // 57: group.group.BanPrivateChat:output_type -> group.BanPrivateChatReq
|
||||||
|
41, // 58: group.group.SetMaster:output_type -> group.SetMasterResp
|
||||||
|
43, // 59: group.group.DeleteGroup:output_type -> group.DeleteGroupResp
|
||||||
|
40, // [40:60] is the sub-list for method output_type
|
||||||
|
20, // [20:40] is the sub-list for method input_type
|
||||||
20, // [20:20] is the sub-list for extension type_name
|
20, // [20:20] is the sub-list for extension type_name
|
||||||
20, // [20:20] is the sub-list for extension extendee
|
20, // [20:20] is the sub-list for extension extendee
|
||||||
0, // [0:20] is the sub-list for field type_name
|
0, // [0:20] is the sub-list for field type_name
|
||||||
@ -3180,6 +3618,102 @@ func file_group_group_proto_init() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_group_group_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*BanGroupChatReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_group_group_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*BanGroupChatResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_group_group_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*BanPrivateChatReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_group_group_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*BanPrivateChatResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_group_group_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*SetMasterReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_group_group_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*SetMasterResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_group_group_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DeleteGroupReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_group_group_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DeleteGroupResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@ -3187,7 +3721,7 @@ func file_group_group_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_group_group_proto_rawDesc,
|
RawDescriptor: file_group_group_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 36,
|
NumMessages: 44,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
@ -3229,6 +3763,10 @@ type GroupClient interface {
|
|||||||
GetGroupAllMember(ctx context.Context, in *GetGroupAllMemberReq, opts ...grpc.CallOption) (*GetGroupAllMemberResp, error)
|
GetGroupAllMember(ctx context.Context, in *GetGroupAllMemberReq, opts ...grpc.CallOption) (*GetGroupAllMemberResp, error)
|
||||||
GetGroup(ctx context.Context, in *GetGroupReq, opts ...grpc.CallOption) (*GetGroupsResp, error)
|
GetGroup(ctx context.Context, in *GetGroupReq, opts ...grpc.CallOption) (*GetGroupsResp, error)
|
||||||
GetGroups(ctx context.Context, in *GetGroupsReq, opts ...grpc.CallOption) (*GetGroupsResp, error)
|
GetGroups(ctx context.Context, in *GetGroupsReq, opts ...grpc.CallOption) (*GetGroupsResp, error)
|
||||||
|
BanGroupChat(ctx context.Context, in *BanGroupChatReq, opts ...grpc.CallOption) (*BanGroupChatResp, error)
|
||||||
|
BanPrivateChat(ctx context.Context, in *BanPrivateChatReq, opts ...grpc.CallOption) (*BanPrivateChatReq, error)
|
||||||
|
SetMaster(ctx context.Context, in *SetMasterReq, opts ...grpc.CallOption) (*SetMasterResp, error)
|
||||||
|
DeleteGroup(ctx context.Context, in *DeleteGroupReq, opts ...grpc.CallOption) (*DeleteGroupResp, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type groupClient struct {
|
type groupClient struct {
|
||||||
@ -3383,6 +3921,42 @@ func (c *groupClient) GetGroups(ctx context.Context, in *GetGroupsReq, opts ...g
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *groupClient) BanGroupChat(ctx context.Context, in *BanGroupChatReq, opts ...grpc.CallOption) (*BanGroupChatResp, error) {
|
||||||
|
out := new(BanGroupChatResp)
|
||||||
|
err := c.cc.Invoke(ctx, "/group.group/BanGroupChat", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *groupClient) BanPrivateChat(ctx context.Context, in *BanPrivateChatReq, opts ...grpc.CallOption) (*BanPrivateChatReq, error) {
|
||||||
|
out := new(BanPrivateChatReq)
|
||||||
|
err := c.cc.Invoke(ctx, "/group.group/BanPrivateChat", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *groupClient) SetMaster(ctx context.Context, in *SetMasterReq, opts ...grpc.CallOption) (*SetMasterResp, error) {
|
||||||
|
out := new(SetMasterResp)
|
||||||
|
err := c.cc.Invoke(ctx, "/group.group/SetMaster", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *groupClient) DeleteGroup(ctx context.Context, in *DeleteGroupReq, opts ...grpc.CallOption) (*DeleteGroupResp, error) {
|
||||||
|
out := new(DeleteGroupResp)
|
||||||
|
err := c.cc.Invoke(ctx, "/group.group/DeleteGroup", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
// GroupServer is the server API for Group service.
|
// GroupServer is the server API for Group service.
|
||||||
type GroupServer interface {
|
type GroupServer interface {
|
||||||
CreateGroup(context.Context, *CreateGroupReq) (*CreateGroupResp, error)
|
CreateGroup(context.Context, *CreateGroupReq) (*CreateGroupResp, error)
|
||||||
@ -3401,6 +3975,10 @@ type GroupServer interface {
|
|||||||
GetGroupAllMember(context.Context, *GetGroupAllMemberReq) (*GetGroupAllMemberResp, error)
|
GetGroupAllMember(context.Context, *GetGroupAllMemberReq) (*GetGroupAllMemberResp, error)
|
||||||
GetGroup(context.Context, *GetGroupReq) (*GetGroupsResp, error)
|
GetGroup(context.Context, *GetGroupReq) (*GetGroupsResp, error)
|
||||||
GetGroups(context.Context, *GetGroupsReq) (*GetGroupsResp, error)
|
GetGroups(context.Context, *GetGroupsReq) (*GetGroupsResp, error)
|
||||||
|
BanGroupChat(context.Context, *BanGroupChatReq) (*BanGroupChatResp, error)
|
||||||
|
BanPrivateChat(context.Context, *BanPrivateChatReq) (*BanPrivateChatReq, error)
|
||||||
|
SetMaster(context.Context, *SetMasterReq) (*SetMasterResp, error)
|
||||||
|
DeleteGroup(context.Context, *DeleteGroupReq) (*DeleteGroupResp, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnimplementedGroupServer can be embedded to have forward compatible implementations.
|
// UnimplementedGroupServer can be embedded to have forward compatible implementations.
|
||||||
@ -3455,6 +4033,18 @@ func (*UnimplementedGroupServer) GetGroup(context.Context, *GetGroupReq) (*GetGr
|
|||||||
func (*UnimplementedGroupServer) GetGroups(context.Context, *GetGroupsReq) (*GetGroupsResp, error) {
|
func (*UnimplementedGroupServer) GetGroups(context.Context, *GetGroupsReq) (*GetGroupsResp, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method GetGroups not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method GetGroups not implemented")
|
||||||
}
|
}
|
||||||
|
func (*UnimplementedGroupServer) BanGroupChat(context.Context, *BanGroupChatReq) (*BanGroupChatResp, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method BanGroupChat not implemented")
|
||||||
|
}
|
||||||
|
func (*UnimplementedGroupServer) BanPrivateChat(context.Context, *BanPrivateChatReq) (*BanPrivateChatReq, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method BanPrivateChat not implemented")
|
||||||
|
}
|
||||||
|
func (*UnimplementedGroupServer) SetMaster(context.Context, *SetMasterReq) (*SetMasterResp, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method SetMaster not implemented")
|
||||||
|
}
|
||||||
|
func (*UnimplementedGroupServer) DeleteGroup(context.Context, *DeleteGroupReq) (*DeleteGroupResp, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteGroup not implemented")
|
||||||
|
}
|
||||||
|
|
||||||
func RegisterGroupServer(s *grpc.Server, srv GroupServer) {
|
func RegisterGroupServer(s *grpc.Server, srv GroupServer) {
|
||||||
s.RegisterService(&_Group_serviceDesc, srv)
|
s.RegisterService(&_Group_serviceDesc, srv)
|
||||||
@ -3748,6 +4338,78 @@ func _Group_GetGroups_Handler(srv interface{}, ctx context.Context, dec func(int
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func _Group_BanGroupChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(BanGroupChatReq)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(GroupServer).BanGroupChat(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/group.group/BanGroupChat",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(GroupServer).BanGroupChat(ctx, req.(*BanGroupChatReq))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Group_BanPrivateChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(BanPrivateChatReq)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(GroupServer).BanPrivateChat(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/group.group/BanPrivateChat",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(GroupServer).BanPrivateChat(ctx, req.(*BanPrivateChatReq))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Group_SetMaster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(SetMasterReq)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(GroupServer).SetMaster(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/group.group/SetMaster",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(GroupServer).SetMaster(ctx, req.(*SetMasterReq))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Group_DeleteGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(DeleteGroupReq)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(GroupServer).DeleteGroup(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/group.group/DeleteGroup",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(GroupServer).DeleteGroup(ctx, req.(*DeleteGroupReq))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
var _Group_serviceDesc = grpc.ServiceDesc{
|
var _Group_serviceDesc = grpc.ServiceDesc{
|
||||||
ServiceName: "group.group",
|
ServiceName: "group.group",
|
||||||
HandlerType: (*GroupServer)(nil),
|
HandlerType: (*GroupServer)(nil),
|
||||||
@ -3816,6 +4478,22 @@ var _Group_serviceDesc = grpc.ServiceDesc{
|
|||||||
MethodName: "GetGroups",
|
MethodName: "GetGroups",
|
||||||
Handler: _Group_GetGroups_Handler,
|
Handler: _Group_GetGroups_Handler,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MethodName: "BanGroupChat",
|
||||||
|
Handler: _Group_BanGroupChat_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "BanPrivateChat",
|
||||||
|
Handler: _Group_BanPrivateChat_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "SetMaster",
|
||||||
|
Handler: _Group_SetMaster_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "DeleteGroup",
|
||||||
|
Handler: _Group_DeleteGroup_Handler,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "group/group.proto",
|
Metadata: "group/group.proto",
|
||||||
|
@ -218,6 +218,42 @@ message GetGroupMemberReq {
|
|||||||
string OperationID = 2;
|
string OperationID = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message BanGroupChatReq {
|
||||||
|
string GroupId = 1;
|
||||||
|
string OperationID = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message BanGroupChatResp {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
message BanPrivateChatReq {
|
||||||
|
string GroupId = 1;
|
||||||
|
string OperationID = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message BanPrivateChatResp {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
message SetMasterReq {
|
||||||
|
string GroupId = 1;
|
||||||
|
string UserId = 2;
|
||||||
|
string OperationID = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message SetMasterResp {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
message DeleteGroupReq {
|
||||||
|
string GroupId = 1;
|
||||||
|
string OperationID = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message DeleteGroupResp {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
service group{
|
service group{
|
||||||
rpc createGroup(CreateGroupReq) returns(CreateGroupResp);
|
rpc createGroup(CreateGroupReq) returns(CreateGroupResp);
|
||||||
@ -238,6 +274,10 @@ service group{
|
|||||||
|
|
||||||
rpc GetGroup(GetGroupReq) returns(GetGroupsResp);
|
rpc GetGroup(GetGroupReq) returns(GetGroupsResp);
|
||||||
rpc GetGroups(GetGroupsReq) returns(GetGroupsResp);
|
rpc GetGroups(GetGroupsReq) returns(GetGroupsResp);
|
||||||
|
rpc BanGroupChat(BanGroupChatReq) returns(BanGroupChatResp);
|
||||||
|
rpc BanPrivateChat(BanPrivateChatReq) returns(BanPrivateChatReq);
|
||||||
|
rpc SetMaster(SetMasterReq) returns(SetMasterResp);
|
||||||
|
rpc DeleteGroup(DeleteGroupReq) returns(DeleteGroupResp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.26.0
|
||||||
// protoc v3.15.5
|
// protoc v3.19.3
|
||||||
// source: sdk_ws/ws.proto
|
// source: sdk_ws/ws.proto
|
||||||
|
|
||||||
package server_api_params
|
package server_api_params
|
||||||
|
Loading…
x
Reference in New Issue
Block a user