mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
group
This commit is contained in:
parent
e94dbe4965
commit
02aad295f9
@ -148,8 +148,8 @@ push:
|
|||||||
pushUrl: "https://api.jpush.cn/v3/push"
|
pushUrl: "https://api.jpush.cn/v3/push"
|
||||||
pushIntent: "intent:#Intent;component=io.openim.app.enterprisechat/io.openim.app.enterprisechat.MainActivity;end"
|
pushIntent: "intent:#Intent;component=io.openim.app.enterprisechat/io.openim.app.enterprisechat.MainActivity;end"
|
||||||
manager:
|
manager:
|
||||||
appManagerUid: [ "openIM123456","openIM654321" ]
|
appManagerUid: [ "openIM123456","openIM654321", "openIM333" ]
|
||||||
secrets: [ "openIM1","openIM2" ]
|
secrets: [ "openIM1","openIM2", "openIM333" ]
|
||||||
|
|
||||||
secret: tuoyun
|
secret: tuoyun
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ import (
|
|||||||
commonPb "Open_IM/pkg/proto/sdk_ws"
|
commonPb "Open_IM/pkg/proto/sdk_ws"
|
||||||
"Open_IM/pkg/utils"
|
"Open_IM/pkg/utils"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
pbGroup "Open_IM/pkg/proto/group"
|
pbGroup "Open_IM/pkg/proto/group"
|
||||||
@ -25,7 +24,7 @@ func GetGroupById(c *gin.Context) {
|
|||||||
reqPb pbGroup.GetGroupByIdReq
|
reqPb pbGroup.GetGroupByIdReq
|
||||||
)
|
)
|
||||||
if err := c.ShouldBindQuery(&req); err != nil {
|
if err := c.ShouldBindQuery(&req); err != nil {
|
||||||
log.NewError(reqPb.OperationID, "ShouldBindQuery failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "ShouldBindQuery failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -34,7 +33,7 @@ func GetGroupById(c *gin.Context) {
|
|||||||
client := pbGroup.NewGroupClient(etcdConn)
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
respPb, err := client.GetGroupById(context.Background(), &reqPb)
|
respPb, err := client.GetGroupById(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "GetGroupById failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "GetGroupById failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -64,7 +63,7 @@ func GetGroups(c *gin.Context) {
|
|||||||
client := pbGroup.NewGroupClient(etcdConn)
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
respPb, err := client.GetGroups(context.Background(), &reqPb)
|
respPb, err := client.GetGroups(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(reqPb.OperationID, "GetUserInfo failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "GetUserInfo failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -93,19 +92,18 @@ func GetGroupByName(c *gin.Context) {
|
|||||||
reqPb pbGroup.GetGroupReq
|
reqPb pbGroup.GetGroupReq
|
||||||
)
|
)
|
||||||
if err := c.ShouldBindQuery(&req); err != nil {
|
if err := c.ShouldBindQuery(&req); err != nil {
|
||||||
log.NewError("0", "ShouldBindQuery failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "ShouldBindQuery failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
reqPb.GroupName = req.GroupName
|
reqPb.GroupName = req.GroupName
|
||||||
reqPb.Pagination = &commonPb.RequestPagination{}
|
reqPb.Pagination = &commonPb.RequestPagination{}
|
||||||
utils.CopyStructFields(&reqPb.Pagination, req)
|
utils.CopyStructFields(&reqPb.Pagination, req)
|
||||||
fmt.Println(reqPb)
|
|
||||||
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.GetGroup(context.Background(), &reqPb)
|
respPb, err := client.GetGroup(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("s", "GetUserInfo failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "GetGroup failed", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -123,13 +121,14 @@ func GetGroupByName(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
resp.CurrentPage = int(respPb.Pagination.PageNumber)
|
resp.CurrentPage = int(respPb.Pagination.PageNumber)
|
||||||
resp.ShowNumber = int(respPb.Pagination.ShowNumber)
|
resp.ShowNumber = int(respPb.Pagination.ShowNumber)
|
||||||
|
resp.GroupNums = int(respPb.GroupNums)
|
||||||
openIMHttp.RespHttp200(c, constant.OK, resp)
|
openIMHttp.RespHttp200(c, constant.OK, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
_ cms_api_struct.CreateGroupResponse
|
||||||
reqPb pbGroup.CreateGroupReq
|
reqPb pbGroup.CreateGroupReq
|
||||||
)
|
)
|
||||||
if err := c.BindJSON(&req); err != nil {
|
if err := c.BindJSON(&req); err != nil {
|
||||||
@ -140,6 +139,8 @@ func CreateGroup(c *gin.Context) {
|
|||||||
reqPb.GroupInfo = &commonPb.GroupInfo{}
|
reqPb.GroupInfo = &commonPb.GroupInfo{}
|
||||||
reqPb.GroupInfo.GroupName = req.GroupName
|
reqPb.GroupInfo.GroupName = req.GroupName
|
||||||
reqPb.GroupInfo.CreatorUserID = req.GroupMasterId
|
reqPb.GroupInfo.CreatorUserID = req.GroupMasterId
|
||||||
|
reqPb.OwnerUserID = req.GroupMasterId
|
||||||
|
reqPb.OpUserID = req.GroupMasterId
|
||||||
for _, v := range req.GroupMembers {
|
for _, v := range req.GroupMembers {
|
||||||
reqPb.InitMemberList = append(reqPb.InitMemberList, &pbGroup.GroupAddMemberInfo{
|
reqPb.InitMemberList = append(reqPb.InitMemberList, &pbGroup.GroupAddMemberInfo{
|
||||||
UserID: v,
|
UserID: v,
|
||||||
@ -150,11 +151,11 @@ func CreateGroup(c *gin.Context) {
|
|||||||
client := pbGroup.NewGroupClient(etcdConn)
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
_, err := client.CreateGroup(context.Background(), &reqPb)
|
_, err := client.CreateGroup(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(reqPb.OperationID, "GetUserInfo failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "CreateGroup failed", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
openIMHttp.RespHttp200(c, constant.OK, resp)
|
openIMHttp.RespHttp200(c, constant.OK, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BanGroupChat(c *gin.Context) {
|
func BanGroupChat(c *gin.Context) {
|
||||||
@ -163,7 +164,7 @@ func BanGroupChat(c *gin.Context) {
|
|||||||
reqPb pbGroup.OperateGroupStatusReq
|
reqPb pbGroup.OperateGroupStatusReq
|
||||||
)
|
)
|
||||||
if err := c.BindJSON(&req); err != nil {
|
if err := c.BindJSON(&req); err != nil {
|
||||||
log.NewError(reqPb.OperationID, "ShouldBindQuery failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "BindJSON failed", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -173,7 +174,7 @@ func BanGroupChat(c *gin.Context) {
|
|||||||
client := pbGroup.NewGroupClient(etcdConn)
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
_, err := client.OperateGroupStatus(context.Background(), &reqPb)
|
_, err := client.OperateGroupStatus(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(reqPb.OperationID, "GetUserInfo failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "BanGroupChat failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -187,7 +188,7 @@ func BanPrivateChat(c *gin.Context) {
|
|||||||
reqPb pbGroup.OperateGroupStatusReq
|
reqPb pbGroup.OperateGroupStatusReq
|
||||||
)
|
)
|
||||||
if err := c.BindJSON(&req); err != nil {
|
if err := c.BindJSON(&req); err != nil {
|
||||||
log.NewError("0", "BindJSON failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "BindJSON failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -197,7 +198,7 @@ func BanPrivateChat(c *gin.Context) {
|
|||||||
client := pbGroup.NewGroupClient(etcdConn)
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
_, err := client.OperateGroupStatus(context.Background(), &reqPb)
|
_, err := client.OperateGroupStatus(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("s", "GetUserInfo failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "OperateGroupStatus failed", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -210,7 +211,7 @@ func OpenGroupChat(c *gin.Context) {
|
|||||||
reqPb pbGroup.OperateGroupStatusReq
|
reqPb pbGroup.OperateGroupStatusReq
|
||||||
)
|
)
|
||||||
if err := c.BindJSON(&req); err != nil {
|
if err := c.BindJSON(&req); err != nil {
|
||||||
log.NewError("0", "BindJSON failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "BindJSON failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -220,7 +221,7 @@ func OpenGroupChat(c *gin.Context) {
|
|||||||
client := pbGroup.NewGroupClient(etcdConn)
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
_, err := client.OperateGroupStatus(context.Background(), &reqPb)
|
_, err := client.OperateGroupStatus(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("s", "GetUserInfo failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "OperateGroupStatus failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -233,7 +234,7 @@ func OpenPrivateChat(c *gin.Context) {
|
|||||||
reqPb pbGroup.OperateGroupStatusReq
|
reqPb pbGroup.OperateGroupStatusReq
|
||||||
)
|
)
|
||||||
if err := c.BindJSON(&req); err != nil {
|
if err := c.BindJSON(&req); err != nil {
|
||||||
log.NewError("0", "BindJSON failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "OpenPrivateChat failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -243,7 +244,7 @@ func OpenPrivateChat(c *gin.Context) {
|
|||||||
client := pbGroup.NewGroupClient(etcdConn)
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
_, err := client.OperateGroupStatus(context.Background(), &reqPb)
|
_, err := client.OperateGroupStatus(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(reqPb.OperationID, "GetUserInfo failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "OperateGroupStatus failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -252,12 +253,12 @@ func OpenPrivateChat(c *gin.Context) {
|
|||||||
|
|
||||||
func GetGroupMembers(c *gin.Context) {
|
func GetGroupMembers(c *gin.Context) {
|
||||||
var (
|
var (
|
||||||
req cms_api_struct.GetGroupMembersRequest
|
req cms_api_struct.GetGroupMembersRequest
|
||||||
reqPb pbGroup.GetGroupMembersCMSReq
|
reqPb pbGroup.GetGroupMembersCMSReq
|
||||||
resp cms_api_struct.GetGroupMembersResponse
|
resp cms_api_struct.GetGroupMembersResponse
|
||||||
)
|
)
|
||||||
if err := c.ShouldBindQuery(&req); err != nil {
|
if err := c.ShouldBindQuery(&req); err != nil {
|
||||||
log.NewError("0", "BindJSON failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "ShouldBindQuery failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -265,16 +266,21 @@ func GetGroupMembers(c *gin.Context) {
|
|||||||
PageNumber: int32(req.PageNumber),
|
PageNumber: int32(req.PageNumber),
|
||||||
ShowNumber: int32(req.ShowNumber),
|
ShowNumber: int32(req.ShowNumber),
|
||||||
}
|
}
|
||||||
|
reqPb.GroupId = req.GroupId
|
||||||
|
reqPb.UserName = req.UserName
|
||||||
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.GetGroupMembersCMS(context.Background(), &reqPb)
|
respPb, err := client.GetGroupMembersCMS(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "rpc:", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "GetGroupMembersCMS failed:", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
resp.ResponsePagination.ShowNumber = int(respPb.Pagination.ShowNumber)
|
resp.ResponsePagination = cms_api_struct.ResponsePagination{
|
||||||
resp.ResponsePagination.CurrentPage = int(respPb.Pagination.PageNumber)
|
CurrentPage: int(respPb.Pagination.CurrentPage),
|
||||||
|
ShowNumber: int(respPb.Pagination.ShowNumber),
|
||||||
|
}
|
||||||
|
resp.MemberNums = int(respPb.MemberNums)
|
||||||
for _, groupMembers := range respPb.Members {
|
for _, groupMembers := range respPb.Members {
|
||||||
resp.GroupMembers = append(resp.GroupMembers, cms_api_struct.GroupMemberResponse{
|
resp.GroupMembers = append(resp.GroupMembers, cms_api_struct.GroupMemberResponse{
|
||||||
MemberPosition: int(groupMembers.RoleLevel),
|
MemberPosition: int(groupMembers.RoleLevel),
|
||||||
@ -294,7 +300,7 @@ func AddGroupMembers(c *gin.Context) {
|
|||||||
reqPb pbGroup.AddGroupMembersCMSReq
|
reqPb pbGroup.AddGroupMembersCMSReq
|
||||||
)
|
)
|
||||||
if err := c.BindJSON(&req); err != nil {
|
if err := c.BindJSON(&req); err != nil {
|
||||||
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(),"BindJSON failed ", err.Error())
|
log.NewError(reqPb.OperationId, utils.GetSelfFuncName(),"BindJSON failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -304,7 +310,7 @@ func AddGroupMembers(c *gin.Context) {
|
|||||||
client := pbGroup.NewGroupClient(etcdConn)
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
respPb, err := client.AddGroupMembersCMS(context.Background(), &reqPb)
|
respPb, err := client.AddGroupMembersCMS(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "rpc:", err.Error())
|
log.NewError(reqPb.OperationId, utils.GetSelfFuncName(), "AddGroupMembersCMS failed", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -330,13 +336,13 @@ func RemoveGroupMembers(c *gin.Context) {
|
|||||||
client := pbGroup.NewGroupClient(etcdConn)
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
respPb, err := client.RemoveGroupMembersCMS(context.Background(), &reqPb)
|
respPb, err := client.RemoveGroupMembersCMS(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "rpc:", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "RemoveGroupMembersCMS failed", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
resp.Success = respPb.Success
|
resp.Success = respPb.Success
|
||||||
resp.Failed = respPb.Failed
|
resp.Failed = respPb.Failed
|
||||||
openIMHttp.RespHttp200(c, constant.OK, respPb)
|
openIMHttp.RespHttp200(c, constant.OK, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeleteGroup(c *gin.Context) {
|
func DeleteGroup(c *gin.Context) {
|
||||||
@ -350,13 +356,42 @@ func DeleteGroup(c *gin.Context) {
|
|||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
reqPb.GroupId = req.GroupId
|
||||||
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)
|
||||||
_, err := client.DeleteGroup(context.Background(), &reqPb)
|
_, err := client.DeleteGroup(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "rpc:", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "DeleteGroup failed", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
openIMHttp.RespHttp200(c, constant.OK, nil)
|
openIMHttp.RespHttp200(c, constant.OK, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetGroupMaster(c *gin.Context) {
|
||||||
|
var (
|
||||||
|
req cms_api_struct.SetGroupMasterRequest
|
||||||
|
_ cms_api_struct.SetGroupMasterResponse
|
||||||
|
reqPb pbGroup.SetGroupMasterReq
|
||||||
|
)
|
||||||
|
if err := c.BindJSON(&req); err != nil {
|
||||||
|
log.NewError(reqPb.OperationId, utils.GetSelfFuncName(),"BindJSON failed ", err.Error())
|
||||||
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
reqPb.GroupId = req.GroupId
|
||||||
|
reqPb.UserId = req.UserId
|
||||||
|
etcdConn := getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImGroupName)
|
||||||
|
client := pbGroup.NewGroupClient(etcdConn)
|
||||||
|
_, err := client.SetGroupMaster(context.Background(), &reqPb)
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(reqPb.OperationId, utils.GetSelfFuncName(), "DeleteGroup failed", err.Error())
|
||||||
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
openIMHttp.RespHttp200(c, constant.OK, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetMemberInGroup(c *gin.Context) {
|
||||||
|
|
||||||
}
|
}
|
@ -60,11 +60,14 @@ func NewGinRouter() *gin.Engine {
|
|||||||
groupRouterGroup.GET("/get_group_members", group.GetGroupMembers)
|
groupRouterGroup.GET("/get_group_members", group.GetGroupMembers)
|
||||||
groupRouterGroup.POST("/create_group", group.CreateGroup)
|
groupRouterGroup.POST("/create_group", group.CreateGroup)
|
||||||
groupRouterGroup.POST("/add_members", group.AddGroupMembers)
|
groupRouterGroup.POST("/add_members", group.AddGroupMembers)
|
||||||
groupRouterGroup.POST("/remove_member", group.RemoveGroupMembers)
|
groupRouterGroup.POST("/remove_members", group.RemoveGroupMembers)
|
||||||
groupRouterGroup.POST("/ban_group_private_chat", group.BanPrivateChat)
|
groupRouterGroup.POST("/ban_group_private_chat", group.BanPrivateChat)
|
||||||
groupRouterGroup.POST("/open_group_private_chat", group.OpenPrivateChat)
|
groupRouterGroup.POST("/open_group_private_chat", group.OpenPrivateChat)
|
||||||
groupRouterGroup.POST("/ban_group_chat", group.BanGroupChat)
|
groupRouterGroup.POST("/ban_group_chat", group.BanGroupChat)
|
||||||
groupRouterGroup.POST("/open_group_chat", group.OpenGroupChat)
|
groupRouterGroup.POST("/open_group_chat", group.OpenGroupChat)
|
||||||
|
groupRouterGroup.POST("/delete_group", group.DeleteGroup)
|
||||||
|
groupRouterGroup.POST("/get_members_in_group", group.GetMemberInGroup)
|
||||||
|
groupRouterGroup.POST("/set_group_master", group.SetGroupMaster)
|
||||||
}
|
}
|
||||||
userRouterGroup := router.Group("/user")
|
userRouterGroup := router.Group("/user")
|
||||||
{
|
{
|
||||||
@ -78,6 +81,13 @@ func NewGinRouter() *gin.Engine {
|
|||||||
userRouterGroup.GET("/get_block_users", user.GetBlockUsers)
|
userRouterGroup.GET("/get_block_users", user.GetBlockUsers)
|
||||||
userRouterGroup.GET("/get_block_user", user.GetBlockUserById)
|
userRouterGroup.GET("/get_block_user", user.GetBlockUserById)
|
||||||
userRouterGroup.POST("/delete_user", user.DeleteUser)
|
userRouterGroup.POST("/delete_user", user.DeleteUser)
|
||||||
|
userRouterGroup.GET("/get_users_by_name", user.GetUsersByName)
|
||||||
|
}
|
||||||
|
friendRouterGroup := router.Group("/friend")
|
||||||
|
{
|
||||||
|
friendRouterGroup.POST("/get_friends_by_id")
|
||||||
|
friendRouterGroup.POST("/set_friend")
|
||||||
|
friendRouterGroup.POST("/remove_friend")
|
||||||
}
|
}
|
||||||
return baseRouter
|
return baseRouter
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ func GetUserById(c *gin.Context) {
|
|||||||
reqPb pb.GetUserByIdReq
|
reqPb pb.GetUserByIdReq
|
||||||
)
|
)
|
||||||
if err := c.ShouldBindQuery(&req); err != nil {
|
if err := c.ShouldBindQuery(&req); err != nil {
|
||||||
log.NewError("GetUser", utils.GetSelfFuncName(), "ShouldBindQuery failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "ShouldBindQuery failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -34,7 +34,7 @@ func GetUserById(c *gin.Context) {
|
|||||||
client := pb.NewUserClient(etcdConn)
|
client := pb.NewUserClient(etcdConn)
|
||||||
respPb, err := client.GetUserById(context.Background(), &reqPb)
|
respPb, err := client.GetUserById(context.Background(), &reqPb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetUserFailed", utils.GetSelfFuncName(), err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -46,6 +46,38 @@ func GetUserById(c *gin.Context) {
|
|||||||
openIMHttp.RespHttp200(c, constant.OK, resp)
|
openIMHttp.RespHttp200(c, constant.OK, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetUsersByName(c *gin.Context) {
|
||||||
|
var (
|
||||||
|
req cms_api_struct.GetUsersByNameRequest
|
||||||
|
resp cms_api_struct.GetUsersByNameResponse
|
||||||
|
reqPb pb.GetUsersByNameReq
|
||||||
|
)
|
||||||
|
if err := c.ShouldBindQuery(&req); err != nil {
|
||||||
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "ShouldBindQuery failed", err.Error())
|
||||||
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
reqPb.UserName = req.UserName
|
||||||
|
reqPb.Pagination = &commonPb.RequestPagination{
|
||||||
|
PageNumber: int32(req.PageNumber),
|
||||||
|
ShowNumber: int32(req.ShowNumber),
|
||||||
|
}
|
||||||
|
etcdConn := getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImUserName)
|
||||||
|
client := pb.NewUserClient(etcdConn)
|
||||||
|
respPb, err := client.GetUsersByName(context.Background(), &reqPb)
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "rpc", err.Error())
|
||||||
|
openIMHttp.RespHttp200(c, constant.ErrServer, nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
fmt.Println(respPb)
|
||||||
|
utils.CopyStructFields(&resp.Users, respPb.Users)
|
||||||
|
resp.ShowNumber = int(respPb.Pagination.ShowNumber)
|
||||||
|
resp.CurrentPage = int(respPb.Pagination.CurrentPage)
|
||||||
|
resp.UserNums = respPb.UserNums
|
||||||
|
openIMHttp.RespHttp200(c, constant.OK, resp)
|
||||||
|
}
|
||||||
|
|
||||||
func GetUsers(c *gin.Context) {
|
func GetUsers(c *gin.Context) {
|
||||||
var (
|
var (
|
||||||
req cms_api_struct.GetUsersRequest
|
req cms_api_struct.GetUsersRequest
|
||||||
@ -69,6 +101,7 @@ func GetUsers(c *gin.Context) {
|
|||||||
utils.CopyStructFields(&resp.Users, respPb.User)
|
utils.CopyStructFields(&resp.Users, respPb.User)
|
||||||
resp.ShowNumber = int(respPb.Pagination.ShowNumber)
|
resp.ShowNumber = int(respPb.Pagination.ShowNumber)
|
||||||
resp.CurrentPage = int(respPb.Pagination.CurrentPage)
|
resp.CurrentPage = int(respPb.Pagination.CurrentPage)
|
||||||
|
resp.UserNums = respPb.UserNums
|
||||||
openIMHttp.RespHttp200(c, constant.OK, resp)
|
openIMHttp.RespHttp200(c, constant.OK, resp)
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -194,12 +227,12 @@ func GetBlockUsers(c *gin.Context) {
|
|||||||
)
|
)
|
||||||
reqPb.Pagination = &commonPb.RequestPagination{}
|
reqPb.Pagination = &commonPb.RequestPagination{}
|
||||||
if err := c.ShouldBindQuery(&req); err != nil {
|
if err := c.ShouldBindQuery(&req); err != nil {
|
||||||
log.NewError("0", "BindJSON failed ", err.Error())
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "ShouldBindQuery failed ", err.Error())
|
||||||
openIMHttp.RespHttp200(c, constant.ErrArgs, resp)
|
openIMHttp.RespHttp200(c, constant.ErrArgs, resp)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
utils.CopyStructFields(&reqPb.Pagination, &req)
|
utils.CopyStructFields(&reqPb.Pagination, &req)
|
||||||
log.NewInfo("0", "blockUsers", reqPb.Pagination, req)
|
log.NewInfo(reqPb.OperationID, utils.GetSelfFuncName(), "blockUsers", reqPb.Pagination, req)
|
||||||
etcdConn := getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImUserName)
|
etcdConn := getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImUserName)
|
||||||
client := pb.NewUserClient(etcdConn)
|
client := pb.NewUserClient(etcdConn)
|
||||||
respPb, err := client.GetBlockUsers(context.Background(), &reqPb)
|
respPb, err := client.GetBlockUsers(context.Background(), &reqPb)
|
||||||
@ -222,6 +255,7 @@ func GetBlockUsers(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
resp.ShowNumber = int(respPb.Pagination.ShowNumber)
|
resp.ShowNumber = int(respPb.Pagination.ShowNumber)
|
||||||
resp.CurrentPage = int(respPb.Pagination.CurrentPage)
|
resp.CurrentPage = int(respPb.Pagination.CurrentPage)
|
||||||
|
resp.UserNums = respPb.UserNums
|
||||||
openIMHttp.RespHttp200(c, constant.OK, resp)
|
openIMHttp.RespHttp200(c, constant.OK, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -677,9 +677,15 @@ func (s *groupServer) GetGroup(_ context.Context, req *pbGroup.GetGroupReq) (*pb
|
|||||||
}
|
}
|
||||||
groups, err := imdb.GetGroupsByName(req.GroupName, req.Pagination.PageNumber, req.Pagination.ShowNumber)
|
groups, err := imdb.GetGroupsByName(req.GroupName, req.Pagination.PageNumber, req.Pagination.ShowNumber)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return resp, err
|
||||||
}
|
}
|
||||||
log.NewInfo(req.OperationID, groups)
|
log.NewInfo(req.OperationID, groups)
|
||||||
|
nums, err := imdb.GetGroupsCountNum(db.Group{GroupName:req.GroupName})
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetGroupsCountNum", err.Error())
|
||||||
|
return resp, err
|
||||||
|
}
|
||||||
|
resp.GroupNums = nums
|
||||||
resp.Pagination = &open_im_sdk.RequestPagination{
|
resp.Pagination = &open_im_sdk.RequestPagination{
|
||||||
PageNumber: req.Pagination.PageNumber,
|
PageNumber: req.Pagination.PageNumber,
|
||||||
ShowNumber: req.Pagination.ShowNumber,
|
ShowNumber: req.Pagination.ShowNumber,
|
||||||
@ -707,7 +713,7 @@ func (s *groupServer) GetGroup(_ context.Context, req *pbGroup.GetGroupReq) (*pb
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *groupServer) GetGroups(_ context.Context, req *pbGroup.GetGroupsReq) (*pbGroup.GetGroupsResp, error) {
|
func (s *groupServer) GetGroups(_ context.Context, req *pbGroup.GetGroupsReq) (*pbGroup.GetGroupsResp, error) {
|
||||||
log.NewInfo(req.OperationID, "GetGroups ", req.String())
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "GetGroups ", req.String())
|
||||||
resp := &pbGroup.GetGroupsResp{
|
resp := &pbGroup.GetGroupsResp{
|
||||||
CMSGroups: []*pbGroup.CMSGroup{},
|
CMSGroups: []*pbGroup.CMSGroup{},
|
||||||
Pagination: &open_im_sdk.RequestPagination{},
|
Pagination: &open_im_sdk.RequestPagination{},
|
||||||
@ -716,8 +722,8 @@ func (s *groupServer) GetGroups(_ context.Context, req *pbGroup.GetGroupsReq) (*
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
groupsCountNum, err := imdb.GetGroupsCountNum()
|
groupsCountNum, err := imdb.GetGroupsCountNum(db.Group{})
|
||||||
log.NewInfo(req.OperationID, "groupsCountNum ", groupsCountNum)
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "groupsCountNum ", groupsCountNum)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
@ -780,11 +786,18 @@ func (s *groupServer) OperateUserRole(_ context.Context, req *pbGroup.OperateUse
|
|||||||
func (s *groupServer) GetGroupMembersCMS(_ context.Context, req *pbGroup.GetGroupMembersCMSReq) (*pbGroup.GetGroupMembersCMSResp, error) {
|
func (s *groupServer) GetGroupMembersCMS(_ context.Context, req *pbGroup.GetGroupMembersCMSReq) (*pbGroup.GetGroupMembersCMSResp, error) {
|
||||||
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "args:", req.String())
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "args:", req.String())
|
||||||
resp := &pbGroup.GetGroupMembersCMSResp{}
|
resp := &pbGroup.GetGroupMembersCMSResp{}
|
||||||
groupMembers, err := imdb.GetGroupMembersByGroupIdCMS(req.GroupId, req.Pagination.ShowNumber, req.Pagination.PageNumber)
|
groupMembers, err := imdb.GetGroupMembersByGroupIdCMS(req.GroupId, req.UserName, req.Pagination.ShowNumber, req.Pagination.PageNumber)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(),"GetGroupMembersByGroupIdCMS Error", err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
|
groupMembersCount, err := imdb.GetGroupMembersCount(req.GroupId, req.UserName)
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetGroupMembersCMS Error", err.Error())
|
||||||
|
return resp, err
|
||||||
|
}
|
||||||
|
log.NewInfo(req.OperationID, groupMembersCount)
|
||||||
|
resp.MemberNums = groupMembersCount
|
||||||
for _, groupMember := range groupMembers {
|
for _, groupMember := range groupMembers {
|
||||||
resp.Members = append(resp.Members, &open_im_sdk.GroupMemberFullInfo{
|
resp.Members = append(resp.Members, &open_im_sdk.GroupMemberFullInfo{
|
||||||
GroupID: req.GroupId,
|
GroupID: req.GroupId,
|
||||||
@ -796,6 +809,10 @@ func (s *groupServer) GetGroupMembersCMS(_ context.Context, req *pbGroup.GetGrou
|
|||||||
JoinSource: groupMember.JoinSource,
|
JoinSource: groupMember.JoinSource,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
resp.Pagination = &open_im_sdk.ResponsePagination{
|
||||||
|
CurrentPage: req.Pagination.PageNumber,
|
||||||
|
ShowNumber: req.Pagination.ShowNumber,
|
||||||
|
}
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -815,7 +832,7 @@ func (s *groupServer) RemoveGroupMembersCMS(_ context.Context, req *pbGroup.Remo
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *groupServer) AddGroupMembersCMS(_ context.Context, req *pbGroup.AddGroupMembersCMSReq) (*pbGroup.AddGroupMembersCMSResp, error) {
|
func (s *groupServer) AddGroupMembersCMS(_ context.Context, req *pbGroup.AddGroupMembersCMSReq) (*pbGroup.AddGroupMembersCMSResp, error) {
|
||||||
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "args:", req.String())
|
log.NewInfo(req.OperationId, utils.GetSelfFuncName(), "args:", req.String())
|
||||||
resp := &pbGroup.AddGroupMembersCMSResp{}
|
resp := &pbGroup.AddGroupMembersCMSResp{}
|
||||||
for _, userIds := range req.UserIds {
|
for _, userIds := range req.UserIds {
|
||||||
groupMember := db.GroupMember{
|
groupMember := db.GroupMember{
|
||||||
@ -830,6 +847,7 @@ func (s *groupServer) AddGroupMembersCMS(_ context.Context, req *pbGroup.AddGrou
|
|||||||
Ex: "",
|
Ex: "",
|
||||||
}
|
}
|
||||||
if err := imdb.InsertIntoGroupMember(groupMember); err != nil {
|
if err := imdb.InsertIntoGroupMember(groupMember); err != nil {
|
||||||
|
log.NewError(req.OperationId, utils.GetSelfFuncName(), "InsertIntoGroupMember failed", req.String())
|
||||||
resp.Failed = append(resp.Failed, userIds)
|
resp.Failed = append(resp.Failed, userIds)
|
||||||
} else {
|
} else {
|
||||||
resp.Success = append(resp.Success, userIds)
|
resp.Success = append(resp.Success, userIds)
|
||||||
@ -837,3 +855,14 @@ func (s *groupServer) AddGroupMembersCMS(_ context.Context, req *pbGroup.AddGrou
|
|||||||
}
|
}
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *groupServer) SetGroupMaster(_ context.Context, req *pbGroup.SetGroupMasterReq) (*pbGroup.SetGroupMasterResp, error) {
|
||||||
|
log.NewInfo(req.OperationId, utils.GetSelfFuncName(), req.String())
|
||||||
|
resp := &pbGroup.SetGroupMasterResp{}
|
||||||
|
err := imdb.OperateGroupRole(req.UserId, req.GroupId, constant.GroupOwner)
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(req.OperationId, utils.GetSelfFuncName(),"OperateGroupRole failed", err.Error())
|
||||||
|
return resp, nil
|
||||||
|
}
|
||||||
|
return resp, nil
|
||||||
|
}
|
@ -3,7 +3,7 @@ package statistics
|
|||||||
import (
|
import (
|
||||||
"Open_IM/pkg/common/config"
|
"Open_IM/pkg/common/config"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
//"Open_IM/pkg/common/constant"
|
//"Open_IM/pkg/common/constant"
|
||||||
@ -73,16 +73,16 @@ func (s *statisticsServer) Run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *statisticsServer) GetActiveGroup(_ context.Context, req *pbStatistics.GetActiveGroupReq) (*pbStatistics.GetActiveGroupResp, error) {
|
func (s *statisticsServer) GetActiveGroup(_ context.Context, req *pbStatistics.GetActiveGroupReq) (*pbStatistics.GetActiveGroupResp, error) {
|
||||||
log.NewInfo("GetActiveGroup", utils.GetSelfFuncName(), req.String())
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), req.String())
|
||||||
resp := &pbStatistics.GetActiveGroupResp{}
|
resp := &pbStatistics.GetActiveGroupResp{}
|
||||||
fromTime, toTime, err := ParseTimeFromTo(req.StatisticsReq.From, req.StatisticsReq.To)
|
fromTime, toTime, err := ParseTimeFromTo(req.StatisticsReq.From, req.StatisticsReq.To)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetActiveGroup", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
activeGroups, err := imdb.GetActiveGroups(fromTime, toTime, 12)
|
activeGroups, err := imdb.GetActiveGroups(fromTime, toTime, 12)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetActiveGroup", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
for _, activeGroup := range activeGroups {
|
for _, activeGroup := range activeGroups {
|
||||||
@ -97,16 +97,16 @@ func (s *statisticsServer) GetActiveGroup(_ context.Context, req *pbStatistics.G
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *statisticsServer) GetActiveUser(_ context.Context, req *pbStatistics.GetActiveUserReq) (*pbStatistics.GetActiveUserResp, error) {
|
func (s *statisticsServer) GetActiveUser(_ context.Context, req *pbStatistics.GetActiveUserReq) (*pbStatistics.GetActiveUserResp, error) {
|
||||||
log.NewInfo("GetActiveUser", utils.GetSelfFuncName(), req.String())
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), req.String())
|
||||||
resp := &pbStatistics.GetActiveUserResp{}
|
resp := &pbStatistics.GetActiveUserResp{}
|
||||||
fromTime, toTime, err := ParseTimeFromTo(req.StatisticsReq.From, req.StatisticsReq.To)
|
fromTime, toTime, err := ParseTimeFromTo(req.StatisticsReq.From, req.StatisticsReq.To)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetActiveUser", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
activeUsers, err := imdb.GetActiveUsers(fromTime, toTime, 12)
|
activeUsers, err := imdb.GetActiveUsers(fromTime, toTime, 12)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetActiveUser", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
for _, activeUser := range activeUsers {
|
for _, activeUser := range activeUsers {
|
||||||
@ -136,7 +136,7 @@ func ParseTimeFromTo(from, to string) (time.Time, time.Time, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func isInOneMonth(from, to time.Time) bool {
|
func isInOneMonth(from, to time.Time) bool {
|
||||||
return from.Month() == to.Month()
|
return from.Month() == to.Month() && from.Year() == to.Year()
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetRangeDate(from, to time.Time) [][2]time.Time {
|
func GetRangeDate(from, to time.Time) [][2]time.Time {
|
||||||
@ -195,144 +195,167 @@ func getFirstDateOfNextNMonth(currentTime time.Time, n int) time.Time {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *statisticsServer) GetGroupStatistics(_ context.Context, req *pbStatistics.GetGroupStatisticsReq) (*pbStatistics.GetGroupStatisticsResp, error) {
|
func (s *statisticsServer) GetGroupStatistics(_ context.Context, req *pbStatistics.GetGroupStatisticsReq) (*pbStatistics.GetGroupStatisticsResp, error) {
|
||||||
log.NewInfo("GetGroupStatistics", utils.GetSelfFuncName(), req.String())
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), req.String())
|
||||||
resp := &pbStatistics.GetGroupStatisticsResp{}
|
resp := &pbStatistics.GetGroupStatisticsResp{}
|
||||||
fromTime, toTime, err := ParseTimeFromTo(req.StatisticsReq.From, req.StatisticsReq.To)
|
fromTime, toTime, err := ParseTimeFromTo(req.StatisticsReq.From, req.StatisticsReq.To)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetMessageStatistics", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
increaseGroupNum, err := imdb.GetIncreaseGroupNum(fromTime, toTime.Add(time.Hour*24))
|
increaseGroupNum, err := imdb.GetIncreaseGroupNum(fromTime, toTime.Add(time.Hour*24))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetMessageStatistics", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
totalGroupNum, err := imdb.GetTotalGroupNum()
|
totalGroupNum, err := imdb.GetTotalGroupNum()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetMessageStatistics", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
resp.IncreaseGroupNum = increaseGroupNum
|
resp.IncreaseGroupNum = increaseGroupNum
|
||||||
resp.TotalGroupNum = totalGroupNum
|
resp.TotalGroupNum = totalGroupNum
|
||||||
times := GetRangeDate(fromTime, toTime)
|
times := GetRangeDate(fromTime, toTime)
|
||||||
log.NewInfo("", "times:", times)
|
log.NewInfo(req.OperationID, "times:", times)
|
||||||
for _, v := range times {
|
wg := &sync.WaitGroup{}
|
||||||
num, err := imdb.GetIncreaseGroupNum(v[0], v[1])
|
resp.IncreaseGroupNumList = make([]*pbStatistics.DateNumList, len(times), len(times))
|
||||||
if err != nil {
|
resp.TotalGroupNumList = make([]*pbStatistics.DateNumList, len(times), len(times))
|
||||||
log.NewError("", utils.GetSelfFuncName(), "GetIncreaseGroupNum", v, err.Error())
|
log.NewInfo(req.OperationID, resp.TotalGroupNumList, resp.TotalGroupNumList)
|
||||||
}
|
wg.Add(len(times))
|
||||||
resp.IncreaseGroupNumList = append(resp.IncreaseGroupNumList, &pbStatistics.DateNumList{
|
for i, v := range times {
|
||||||
Date: v[0].String(),
|
go func(wg *sync.WaitGroup, index int, v [2]time.Time) {
|
||||||
Num: num,
|
defer wg.Done()
|
||||||
})
|
num, err := imdb.GetIncreaseGroupNum(v[0], v[1])
|
||||||
num, err = imdb.GetGroupNum(v[0])
|
if err != nil {
|
||||||
if err != nil {
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetIncreaseGroupNum", v, err.Error())
|
||||||
log.NewError("", utils.GetSelfFuncName(), "GetIncreaseGroupNum", v, err.Error())
|
}
|
||||||
}
|
resp.IncreaseGroupNumList[index] = &pbStatistics.DateNumList{
|
||||||
resp.TotalGroupNumList = append(resp.TotalGroupNumList, &pbStatistics.DateNumList{
|
Date: v[0].String(),
|
||||||
Date: v[0].String(),
|
Num: num,
|
||||||
Num: num,
|
}
|
||||||
})
|
num, err = imdb.GetGroupNum(v[0])
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetIncreaseGroupNum", v, err.Error())
|
||||||
|
}
|
||||||
|
resp.TotalGroupNumList[index] = &pbStatistics.DateNumList{
|
||||||
|
Date: v[0].String(),
|
||||||
|
Num: num,
|
||||||
|
}
|
||||||
|
}(wg, i, v)
|
||||||
}
|
}
|
||||||
|
wg.Wait()
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *statisticsServer) GetMessageStatistics(_ context.Context, req *pbStatistics.GetMessageStatisticsReq) (*pbStatistics.GetMessageStatisticsResp, error) {
|
func (s *statisticsServer) GetMessageStatistics(_ context.Context, req *pbStatistics.GetMessageStatisticsReq) (*pbStatistics.GetMessageStatisticsResp, error) {
|
||||||
log.NewInfo("GetMessageStatistics", utils.GetSelfFuncName(), req.String())
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), req.String())
|
||||||
resp := &pbStatistics.GetMessageStatisticsResp{}
|
resp := &pbStatistics.GetMessageStatisticsResp{}
|
||||||
fromTime, toTime, err := ParseTimeFromTo(req.StatisticsReq.From, req.StatisticsReq.To)
|
fromTime, toTime, err := ParseTimeFromTo(req.StatisticsReq.From, req.StatisticsReq.To)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetMessageStatistics", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
privateMessageNum, err := imdb.GetPrivateMessageNum(fromTime, toTime.Add(time.Hour*24))
|
privateMessageNum, err := imdb.GetPrivateMessageNum(fromTime, toTime.Add(time.Hour*24))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetMessageStatistics", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
groupMessageNum, err := imdb.GetGroupMessageNum(fromTime, toTime.Add(time.Hour*24))
|
groupMessageNum, err := imdb.GetGroupMessageNum(fromTime, toTime.Add(time.Hour*24))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetMessageStatistics", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
}
|
}
|
||||||
resp.PrivateMessageNum = privateMessageNum
|
resp.PrivateMessageNum = privateMessageNum
|
||||||
resp.GroupMessageNum = groupMessageNum
|
resp.GroupMessageNum = groupMessageNum
|
||||||
times := GetRangeDate(fromTime, toTime)
|
times := GetRangeDate(fromTime, toTime)
|
||||||
fmt.Println(times)
|
resp.GroupMessageNumList = make([]*pbStatistics.DateNumList, len(times), len(times))
|
||||||
for _, v := range times {
|
resp.PrivateMessageNumList = make([]*pbStatistics.DateNumList, len(times), len(times))
|
||||||
num, err := imdb.GetPrivateMessageNum(v[0], v[1])
|
wg := &sync.WaitGroup{}
|
||||||
if err != nil {
|
wg.Add(len(times))
|
||||||
log.NewError("", utils.GetSelfFuncName(), "GetIncreaseGroupNum", v, err.Error())
|
for i, v := range times {
|
||||||
}
|
go func(wg *sync.WaitGroup, index int, v [2]time.Time) {
|
||||||
resp.PrivateMessageNumList = append(resp.PrivateMessageNumList, &pbStatistics.DateNumList{
|
defer wg.Done()
|
||||||
Date: v[0].String(),
|
num, err := imdb.GetPrivateMessageNum(v[0], v[1])
|
||||||
Num: num,
|
if err != nil {
|
||||||
})
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetIncreaseGroupNum", v, err.Error())
|
||||||
|
}
|
||||||
num, err = imdb.GetGroupMessageNum(v[0], v[1])
|
resp.PrivateMessageNumList[index] = &pbStatistics.DateNumList{
|
||||||
if err != nil {
|
Date: v[0].String(),
|
||||||
log.NewError("", utils.GetSelfFuncName(), "GetIncreaseGroupNum", v, err.Error())
|
Num: num,
|
||||||
}
|
}
|
||||||
resp.GroupMessageNumList = append(resp.GroupMessageNumList, &pbStatistics.DateNumList{
|
num, err = imdb.GetGroupMessageNum(v[0], v[1])
|
||||||
Date: v[0].String(),
|
if err != nil {
|
||||||
Num: num,
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetIncreaseGroupNum", v, err.Error())
|
||||||
})
|
}
|
||||||
|
resp.GroupMessageNumList[index] = &pbStatistics.DateNumList{
|
||||||
|
Date: v[0].String(),
|
||||||
|
Num: num,
|
||||||
|
}
|
||||||
|
}(wg, i, v)
|
||||||
}
|
}
|
||||||
fmt.Println(resp)
|
wg.Wait()
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *statisticsServer) GetUserStatistics(_ context.Context, req *pbStatistics.GetUserStatisticsReq) (*pbStatistics.GetUserStatisticsResp, error) {
|
func (s *statisticsServer) GetUserStatistics(_ context.Context, req *pbStatistics.GetUserStatisticsReq) (*pbStatistics.GetUserStatisticsResp, error) {
|
||||||
log.NewInfo("GetUserStatistics", utils.GetSelfFuncName(), req.String())
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), req.String())
|
||||||
resp := &pbStatistics.GetUserStatisticsResp{}
|
resp := &pbStatistics.GetUserStatisticsResp{}
|
||||||
fromTime, toTime, err := ParseTimeFromTo(req.StatisticsReq.From, req.StatisticsReq.To)
|
fromTime, toTime, err := ParseTimeFromTo(req.StatisticsReq.From, req.StatisticsReq.To)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "ParseTimeFromTo", err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
activeUserNum, err := imdb.GetActiveUserNum(fromTime, toTime.Add(time.Hour*24))
|
activeUserNum, err := imdb.GetActiveUserNum(fromTime, toTime.Add(time.Hour*24))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetUserStatistics", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetActiveUserNum", err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
increaseUserNum, err := imdb.GetIncreaseUserNum(fromTime, toTime.Add(time.Hour*24))
|
increaseUserNum, err := imdb.GetIncreaseUserNum(fromTime, toTime.Add(time.Hour*24))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetUserStatistics", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetIncreaseUserNum error", err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
totalUserNum, err := imdb.GetTotalUserNum()
|
totalUserNum, err := imdb.GetTotalUserNum()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("GetUserStatistics", utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetTotalUserNum error", err.Error())
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
resp.ActiveUserNum = activeUserNum
|
resp.ActiveUserNum = activeUserNum
|
||||||
resp.TotalUserNum = totalUserNum
|
resp.TotalUserNum = totalUserNum
|
||||||
resp.IncreaseUserNum = increaseUserNum
|
resp.IncreaseUserNum = increaseUserNum
|
||||||
|
|
||||||
times := GetRangeDate(fromTime, toTime)
|
times := GetRangeDate(fromTime, toTime)
|
||||||
for _, v := range times {
|
resp.TotalUserNumList = make([]*pbStatistics.DateNumList, len(times), len(times))
|
||||||
num, err := imdb.GetActiveUserNum(v[0], v[1])
|
resp.ActiveUserNumList = make([]*pbStatistics.DateNumList, len(times), len(times))
|
||||||
if err != nil {
|
resp.IncreaseUserNumList = make([]*pbStatistics.DateNumList, len(times), len(times))
|
||||||
log.NewError("", utils.GetSelfFuncName(), "GetIncreaseGroupNum", v, err.Error())
|
wg := &sync.WaitGroup{}
|
||||||
}
|
wg.Add(len(times))
|
||||||
resp.ActiveUserNumList = append(resp.ActiveUserNumList, &pbStatistics.DateNumList{
|
for i, v := range times {
|
||||||
Date: v[0].String(),
|
go func(wg *sync.WaitGroup, index int, v [2]time.Time) {
|
||||||
Num: num,
|
defer wg.Done()
|
||||||
})
|
num, err := imdb.GetActiveUserNum(v[0], v[1])
|
||||||
num, err = imdb.GetTotalUserNumByDate(v[0])
|
if err != nil {
|
||||||
if err != nil {
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetIncreaseGroupNum", v, err.Error())
|
||||||
log.NewError("", utils.GetSelfFuncName(), "GetTotalUserNumByDate", v, err.Error())
|
}
|
||||||
}
|
resp.ActiveUserNumList[index] = &pbStatistics.DateNumList{
|
||||||
resp.TotalUserNumList = append(resp.TotalUserNumList, &pbStatistics.DateNumList{
|
Date: v[0].String(),
|
||||||
Date: v[0].String(),
|
Num: num,
|
||||||
Num: num,
|
}
|
||||||
})
|
num, err = imdb.GetTotalUserNumByDate(v[0])
|
||||||
num, err = imdb.GetIncreaseUserNum(v[0], v[1])
|
if err != nil {
|
||||||
if err != nil {
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetTotalUserNumByDate", v, err.Error())
|
||||||
log.NewError("", utils.GetSelfFuncName(), "GetIncreaseUserNum", v, err.Error())
|
}
|
||||||
}
|
resp.TotalUserNumList[index] = &pbStatistics.DateNumList{
|
||||||
resp.IncreaseUserNumList = append(resp.IncreaseUserNumList, &pbStatistics.DateNumList{
|
Date: v[0].String(),
|
||||||
Date: v[0].String(),
|
Num: num,
|
||||||
Num: num,
|
}
|
||||||
})
|
num, err = imdb.GetIncreaseUserNum(v[0], v[1])
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetIncreaseUserNum", v, err.Error())
|
||||||
|
}
|
||||||
|
resp.IncreaseUserNumList[index] = &pbStatistics.DateNumList{
|
||||||
|
Date: v[0].String(),
|
||||||
|
Num: num,
|
||||||
|
}
|
||||||
|
}(wg, i, v)
|
||||||
}
|
}
|
||||||
|
wg.Wait()
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
@ -243,8 +243,44 @@ func (s *userServer) UpdateUserInfo(ctx context.Context, req *pbUser.UpdateUserI
|
|||||||
return &pbUser.UpdateUserInfoResp{CommonResp: &pbUser.CommonResp{}}, nil
|
return &pbUser.UpdateUserInfoResp{CommonResp: &pbUser.CommonResp{}}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *userServer) GetUsersByName(ctx context.Context, req *pbUser.GetUsersByNameReq) (*pbUser.GetUsersByNameResp, error) {
|
||||||
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req:", req.String())
|
||||||
|
resp := &pbUser.GetUsersByNameResp{}
|
||||||
|
users, err := imdb.GetUserByName(req.UserName, req.Pagination.ShowNumber, req.Pagination.PageNumber)
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetUserByName failed", err.Error())
|
||||||
|
return resp, err
|
||||||
|
}
|
||||||
|
for _, user := range users {
|
||||||
|
isBlock, err := imdb.UserIsBlock(user.UserID)
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
resp.Users = append(resp.Users, &pbUser.User{
|
||||||
|
ProfilePhoto: user.FaceURL,
|
||||||
|
Nickname: user.Nickname,
|
||||||
|
UserId: user.UserID,
|
||||||
|
CreateTime: user.CreateTime.String(),
|
||||||
|
IsBlock: isBlock,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
user := db.Users{Nickname:req.UserName}
|
||||||
|
userNums, err := imdb.GetUsersCount(user)
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "", err.Error())
|
||||||
|
return resp, err
|
||||||
|
}
|
||||||
|
resp.UserNums = userNums
|
||||||
|
resp.Pagination = &sdkws.ResponsePagination{
|
||||||
|
CurrentPage: req.Pagination.PageNumber,
|
||||||
|
ShowNumber: req.Pagination.ShowNumber,
|
||||||
|
}
|
||||||
|
return resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func (s *userServer) GetUserById(ctx context.Context, req *pbUser.GetUserByIdReq) (*pbUser.GetUserByIdResp, error) {
|
func (s *userServer) GetUserById(ctx context.Context, req *pbUser.GetUserByIdReq) (*pbUser.GetUserByIdResp, error) {
|
||||||
log.NewInfo(req.OperationID, "GetUser args ", req.String())
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req:", req.String())
|
||||||
resp := &pbUser.GetUserByIdResp{User: &pbUser.User{}}
|
resp := &pbUser.GetUserByIdResp{User: &pbUser.User{}}
|
||||||
user, err := imdb.GetUserByUserID(req.UserId)
|
user, err := imdb.GetUserByUserID(req.UserId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -284,10 +320,14 @@ func (s *userServer) GetUsers(ctx context.Context, req *pbUser.GetUsersReq) (*pb
|
|||||||
resp.User = append(resp.User, user)
|
resp.User = append(resp.User, user)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
user := db.Users{}
|
||||||
resp.Pagination = &sdkws.ResponsePagination{}
|
nums, err := imdb.GetUsersCount(user)
|
||||||
resp.Pagination.ShowNumber = req.Pagination.ShowNumber
|
if err != nil {
|
||||||
resp.Pagination.CurrentPage = req.Pagination.PageNumber
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetUsersCount failed", err.Error())
|
||||||
|
return resp, err
|
||||||
|
}
|
||||||
|
resp.UserNums = nums
|
||||||
|
resp.Pagination = &sdkws.ResponsePagination{ShowNumber:req.Pagination.ShowNumber, CurrentPage:req.Pagination.ShowNumber}
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -369,7 +409,12 @@ func (s *userServer) GetBlockUsers(ctx context.Context, req *pbUser.GetBlockUser
|
|||||||
resp.Pagination = &sdkws.ResponsePagination{}
|
resp.Pagination = &sdkws.ResponsePagination{}
|
||||||
resp.Pagination.ShowNumber = req.Pagination.ShowNumber
|
resp.Pagination.ShowNumber = req.Pagination.ShowNumber
|
||||||
resp.Pagination.CurrentPage = req.Pagination.PageNumber
|
resp.Pagination.CurrentPage = req.Pagination.PageNumber
|
||||||
fmt.Println(resp)
|
nums, err := imdb.GetBlockUsersNumCount()
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetBlockUsersNumCount failed", err.Error())
|
||||||
|
return resp, err
|
||||||
|
}
|
||||||
|
resp.UserNums = nums
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -398,8 +443,9 @@ func (s *userServer) DeleteUser(_ context.Context, req *pbUser.DeleteUserReq) (*
|
|||||||
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), req.String())
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), req.String())
|
||||||
resp := &pbUser.DeleteUserResp{}
|
resp := &pbUser.DeleteUserResp{}
|
||||||
if row := imdb.DeleteUser(req.UserId); row == 0 {
|
if row := imdb.DeleteUser(req.UserId); row == 0 {
|
||||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), "delete error", row)
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "delete failed", "delete rows:", row)
|
||||||
return resp, constant.ErrDB
|
return resp, constant.ErrDB
|
||||||
}
|
}
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,45 +41,46 @@ type GetGroupsResponse struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CreateGroupRequest struct {
|
type CreateGroupRequest struct {
|
||||||
GroupName string `json:"group_name"`
|
GroupName string `json:"group_name" binding:"required"`
|
||||||
GroupMasterId string `json:"group_master_id"`
|
GroupMasterId string `json:"group_master_id" binding:"required"`
|
||||||
GroupMembers []string `json:"group_members"`
|
GroupMembers []string `json:"group_members" binding:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateGroupResponse struct {
|
type CreateGroupResponse struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type SetGroupMasterRequest struct {
|
type SetGroupMasterRequest struct {
|
||||||
GroupId string `json:"group_id"`
|
GroupId string `json:"group_id" binding:"required"`
|
||||||
UserId string `json:"user_id"`
|
UserId string `json:"user_id" binding:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SetGroupMasterResponse struct {
|
type SetGroupMasterResponse struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type BanGroupChatRequest struct {
|
type BanGroupChatRequest struct {
|
||||||
GroupId string `json:"group_id"`
|
GroupId string `json:"group_id" binding:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type BanGroupChatResponse struct {
|
type BanGroupChatResponse struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type BanPrivateChatRequest struct {
|
type BanPrivateChatRequest struct {
|
||||||
GroupId string `json:"group_id"`
|
GroupId string `json:"group_id" binding:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type BanPrivateChatResponse struct {
|
type BanPrivateChatResponse struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteGroupRequest struct {
|
type DeleteGroupRequest struct {
|
||||||
GroupId string `json:"group_id"`
|
GroupId string `json:"group_id" binding:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteGroupResponse struct {
|
type DeleteGroupResponse struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetGroupMembersRequest struct {
|
type GetGroupMembersRequest struct {
|
||||||
GroupId string `json:"group_id"`
|
GroupId string `form:"group_id" binding:"required"`
|
||||||
|
UserName string `form:"user_name"`
|
||||||
RequestPagination
|
RequestPagination
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,13 +93,13 @@ type GroupMemberResponse struct {
|
|||||||
|
|
||||||
type GetGroupMembersResponse struct {
|
type GetGroupMembersResponse struct {
|
||||||
GroupMembers []GroupMemberResponse `json:"group_members"`
|
GroupMembers []GroupMemberResponse `json:"group_members"`
|
||||||
GroupMemberNums int `json:"group_member_nums"`
|
|
||||||
ResponsePagination
|
ResponsePagination
|
||||||
|
MemberNums int `json:"member_nums"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GroupMemberRequest struct {
|
type GroupMemberRequest struct {
|
||||||
GroupId string `json:"group_id"`
|
GroupId string `json:"group_id" binding:"required"`
|
||||||
Members []string `json:"members"`
|
Members []string `json:"members" binding:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GroupMemberOperateResponse struct {
|
type GroupMemberOperateResponse struct {
|
||||||
|
@ -23,6 +23,18 @@ type GetUsersRequest struct {
|
|||||||
type GetUsersResponse struct {
|
type GetUsersResponse struct {
|
||||||
Users []*UserResponse `json:"users"`
|
Users []*UserResponse `json:"users"`
|
||||||
ResponsePagination
|
ResponsePagination
|
||||||
|
UserNums int32 `json:"user_nums"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetUsersByNameRequest struct {
|
||||||
|
UserName string `form:"user_name" binding:"required"`
|
||||||
|
RequestPagination
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetUsersByNameResponse struct {
|
||||||
|
Users []*UserResponse `json:"users"`
|
||||||
|
ResponsePagination
|
||||||
|
UserNums int32 `json:"user_nums"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResignUserRequest struct {
|
type ResignUserRequest struct {
|
||||||
@ -79,6 +91,7 @@ type GetBlockUsersRequest struct {
|
|||||||
type GetBlockUsersResponse struct {
|
type GetBlockUsersResponse struct {
|
||||||
BlockUsers []BlockUser `json:"block_users"`
|
BlockUsers []BlockUser `json:"block_users"`
|
||||||
ResponsePagination
|
ResponsePagination
|
||||||
|
UserNums int32 `json:"user_nums"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetBlockUserRequest struct {
|
type GetBlockUserRequest struct {
|
||||||
|
@ -4,6 +4,7 @@ import (
|
|||||||
"Open_IM/pkg/common/constant"
|
"Open_IM/pkg/common/constant"
|
||||||
"Open_IM/pkg/common/db"
|
"Open_IM/pkg/common/db"
|
||||||
"Open_IM/pkg/utils"
|
"Open_IM/pkg/utils"
|
||||||
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -225,19 +226,32 @@ func IsGroupOwnerAdmin(groupID, UserID string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetGroupMembersByGroupIdCMS(groupId string, showNumber, pageNumber int32) ([]db.GroupMember, error) {
|
func GetGroupMembersByGroupIdCMS(groupId string, userName string, showNumber, pageNumber int32) ([]db.GroupMember, error) {
|
||||||
var groupMembers []db.GroupMember
|
var groupMembers []db.GroupMember
|
||||||
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return groupMembers, err
|
return groupMembers, err
|
||||||
}
|
}
|
||||||
err = dbConn.Table("group_members").Where("group_id=?", groupId).Limit(showNumber).Offset(showNumber * (pageNumber - 1)).Find(&groupMembers).Error
|
err = dbConn.Table("group_members").Where("group_id=?", groupId).Where(fmt.Sprintf(" nickname like '%%%s%%' ", userName)).Limit(showNumber).Offset(showNumber * (pageNumber - 1)).Find(&groupMembers).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return groupMembers, nil
|
return groupMembers, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetGroupMembersCount(groupId, userName string) (int32, error) {
|
||||||
|
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
||||||
|
var count int32
|
||||||
|
if err != nil {
|
||||||
|
return count, err
|
||||||
|
}
|
||||||
|
dbConn.LogMode(true)
|
||||||
|
if err := dbConn.Table("group_members").Where("group_id=?", groupId).Where(fmt.Sprintf(" nickname like '%%%s%%' ", userName)).Count(&count).Error; err != nil {
|
||||||
|
return count, err
|
||||||
|
}
|
||||||
|
return count, nil
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
//func SelectGroupList(groupID string) ([]string, error) {
|
//func SelectGroupList(groupID string) ([]string, error) {
|
||||||
// var groupUserID string
|
// var groupUserID string
|
||||||
|
@ -105,10 +105,10 @@ func DeleteGroup(groupId string) error {
|
|||||||
dbConn.LogMode(true)
|
dbConn.LogMode(true)
|
||||||
var group db.Group
|
var group db.Group
|
||||||
var groupMembers []db.GroupMember
|
var groupMembers []db.GroupMember
|
||||||
if err := dbConn.Table("groups").Where("").Delete(&group).Error; err != nil {
|
if err := dbConn.Table("groups").Where("group_id=?", groupId).Delete(&group).Error; err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := dbConn.Table("group_Members").Where("group_id=?", groupId).Delete(groupMembers).Error; err != nil {
|
if err := dbConn.Table("group_members").Where("group_id=?", groupId).Delete(groupMembers).Error; err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
@ -134,14 +134,14 @@ func OperateGroupRole(userId, groupId string, roleLevel int32) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetGroupsCountNum() (int, error) {
|
func GetGroupsCountNum(group db.Group) (int32, error) {
|
||||||
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
dbConn.LogMode(true)
|
dbConn.LogMode(true)
|
||||||
var count int
|
var count int32
|
||||||
if err := dbConn.Table("groups").Count(&count).Error; err != nil {
|
if err := dbConn.Table("groups").Where(fmt.Sprintf(" name like '%%%s%%' ", group.GroupName)).Count(&count).Error; err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
return count, nil
|
return count, nil
|
||||||
|
@ -267,13 +267,37 @@ func GetBlockUsers(showNumber, pageNumber int32) ([]BlockUserInfo, error) {
|
|||||||
return blockUserInfos, nil
|
return blockUserInfos, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetBlockUsersNumCount() (int, error) {
|
func GetUserByName(userName string, showNumber, pageNumber int32) ([]db.Users, error) {
|
||||||
|
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
||||||
|
var users []db.Users
|
||||||
|
if err != nil {
|
||||||
|
return users, err
|
||||||
|
}
|
||||||
|
dbConn.LogMode(true)
|
||||||
|
err = dbConn.Table("users").Where(fmt.Sprintf(" name like '%%%s%%' ", userName)).Limit(showNumber).Offset(showNumber * (pageNumber - 1)).Find(&users).Error
|
||||||
|
return users, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetUsersCount(user db.Users) (int32, error) {
|
||||||
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
dbConn.LogMode(true)
|
dbConn.LogMode(true)
|
||||||
var count int
|
var count int32
|
||||||
|
if err := dbConn.Model(user).Where(fmt.Sprintf(" name like '%%%s%%' ", user.Nickname)).Count(&count).Error; err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
return count, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetBlockUsersNumCount() (int32, error) {
|
||||||
|
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
dbConn.LogMode(true)
|
||||||
|
var count int32
|
||||||
if err := dbConn.Model(&db.BlackList{}).Count(&count).Error; err != nil {
|
if err := dbConn.Model(&db.BlackList{}).Count(&count).Error; err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
@ -2135,6 +2135,7 @@ type GetGroupResp struct {
|
|||||||
|
|
||||||
CMSGroups []*CMSGroup `protobuf:"bytes,1,rep,name=CMSGroups,proto3" json:"CMSGroups,omitempty"`
|
CMSGroups []*CMSGroup `protobuf:"bytes,1,rep,name=CMSGroups,proto3" json:"CMSGroups,omitempty"`
|
||||||
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,2,opt,name=Pagination,proto3" json:"Pagination,omitempty"`
|
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,2,opt,name=Pagination,proto3" json:"Pagination,omitempty"`
|
||||||
|
GroupNums int32 `protobuf:"varint,3,opt,name=GroupNums,proto3" json:"GroupNums,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetGroupResp) Reset() {
|
func (x *GetGroupResp) Reset() {
|
||||||
@ -2183,6 +2184,13 @@ func (x *GetGroupResp) GetPagination() *sdk_ws.RequestPagination {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *GetGroupResp) GetGroupNums() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.GroupNums
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
type GetGroupsReq struct {
|
type GetGroupsReq struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@ -2767,8 +2775,9 @@ type GetGroupMembersCMSReq struct {
|
|||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
|
GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
|
||||||
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,2,opt,name=Pagination,proto3" json:"Pagination,omitempty"`
|
UserName string `protobuf:"bytes,2,opt,name=UserName,proto3" json:"UserName,omitempty"`
|
||||||
OperationID string `protobuf:"bytes,3,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
|
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,3,opt,name=Pagination,proto3" json:"Pagination,omitempty"`
|
||||||
|
OperationID string `protobuf:"bytes,4,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetGroupMembersCMSReq) Reset() {
|
func (x *GetGroupMembersCMSReq) Reset() {
|
||||||
@ -2810,6 +2819,13 @@ func (x *GetGroupMembersCMSReq) GetGroupId() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *GetGroupMembersCMSReq) GetUserName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.UserName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *GetGroupMembersCMSReq) GetPagination() *sdk_ws.RequestPagination {
|
func (x *GetGroupMembersCMSReq) GetPagination() *sdk_ws.RequestPagination {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Pagination
|
return x.Pagination
|
||||||
@ -2829,8 +2845,9 @@ type GetGroupMembersCMSResp struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Members []*sdk_ws.GroupMemberFullInfo `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
|
Members []*sdk_ws.GroupMemberFullInfo `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
|
||||||
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,2,opt,name=Pagination,proto3" json:"Pagination,omitempty"`
|
Pagination *sdk_ws.ResponsePagination `protobuf:"bytes,2,opt,name=Pagination,proto3" json:"Pagination,omitempty"`
|
||||||
|
MemberNums int32 `protobuf:"varint,3,opt,name=MemberNums,proto3" json:"MemberNums,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetGroupMembersCMSResp) Reset() {
|
func (x *GetGroupMembersCMSResp) Reset() {
|
||||||
@ -2872,13 +2889,20 @@ func (x *GetGroupMembersCMSResp) GetMembers() []*sdk_ws.GroupMemberFullInfo {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetGroupMembersCMSResp) GetPagination() *sdk_ws.RequestPagination {
|
func (x *GetGroupMembersCMSResp) GetPagination() *sdk_ws.ResponsePagination {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Pagination
|
return x.Pagination
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *GetGroupMembersCMSResp) GetMemberNums() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.MemberNums
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
type RemoveGroupMembersCMSReq struct {
|
type RemoveGroupMembersCMSReq struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@ -3004,7 +3028,7 @@ type AddGroupMembersCMSReq struct {
|
|||||||
|
|
||||||
GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
|
GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
|
||||||
UserIds []string `protobuf:"bytes,2,rep,name=UserIds,proto3" json:"UserIds,omitempty"`
|
UserIds []string `protobuf:"bytes,2,rep,name=UserIds,proto3" json:"UserIds,omitempty"`
|
||||||
OperationID string `protobuf:"bytes,3,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
|
OperationId string `protobuf:"bytes,3,opt,name=OperationId,proto3" json:"OperationId,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AddGroupMembersCMSReq) Reset() {
|
func (x *AddGroupMembersCMSReq) Reset() {
|
||||||
@ -3053,9 +3077,9 @@ func (x *AddGroupMembersCMSReq) GetUserIds() []string {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AddGroupMembersCMSReq) GetOperationID() string {
|
func (x *AddGroupMembersCMSReq) GetOperationId() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.OperationID
|
return x.OperationId
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
@ -3115,6 +3139,107 @@ func (x *AddGroupMembersCMSResp) GetFailed() []string {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SetGroupMasterReq 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 *SetGroupMasterReq) Reset() {
|
||||||
|
*x = SetGroupMasterReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_group_group_proto_msgTypes[51]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetGroupMasterReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SetGroupMasterReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SetGroupMasterReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_group_group_proto_msgTypes[51]
|
||||||
|
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 SetGroupMasterReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SetGroupMasterReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_group_group_proto_rawDescGZIP(), []int{51}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetGroupMasterReq) GetGroupId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.GroupId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetGroupMasterReq) GetUserId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.UserId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetGroupMasterReq) GetOperationId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.OperationId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type SetGroupMasterResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetGroupMasterResp) Reset() {
|
||||||
|
*x = SetGroupMasterResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_group_group_proto_msgTypes[52]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetGroupMasterResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SetGroupMasterResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SetGroupMasterResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_group_group_proto_msgTypes[52]
|
||||||
|
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 SetGroupMasterResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SetGroupMasterResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_group_group_proto_rawDescGZIP(), []int{52}
|
||||||
|
}
|
||||||
|
|
||||||
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{
|
||||||
@ -3393,7 +3518,7 @@ var file_group_group_proto_rawDesc = []byte{
|
|||||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x52, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b,
|
0x52, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b,
|
||||||
0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28,
|
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, 0x83,
|
0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0xa1,
|
||||||
0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12,
|
0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12,
|
||||||
0x2d, 0x0a, 0x09, 0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03,
|
0x2d, 0x0a, 0x09, 0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03,
|
||||||
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43, 0x4d, 0x53, 0x47, 0x72,
|
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43, 0x4d, 0x53, 0x47, 0x72,
|
||||||
@ -3402,217 +3527,235 @@ var file_group_group_proto_rawDesc = []byte{
|
|||||||
0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f,
|
0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f,
|
||||||
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61,
|
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61,
|
||||||
0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61,
|
0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61,
|
||||||
0x74, 0x69, 0x6f, 0x6e, 0x22, 0x76, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x75, 0x6d,
|
||||||
0x73, 0x52, 0x65, 0x71, 0x12, 0x44, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
|
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x75,
|
||||||
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65,
|
0x6d, 0x73, 0x22, 0x76, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52,
|
||||||
0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x71,
|
0x65, 0x71, 0x12, 0x44, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f,
|
||||||
0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70,
|
0x61, 0x70, 0x69, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x73, 0x74, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x50, 0x61,
|
||||||
0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0xa0, 0x01, 0x0a,
|
0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72,
|
||||||
0x0d, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d,
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f,
|
||||||
0x0a, 0x09, 0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0xa0, 0x01, 0x0a, 0x0d, 0x47,
|
||||||
0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f,
|
0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d, 0x0a, 0x09,
|
||||||
0x75, 0x70, 0x52, 0x09, 0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x44, 0x0a,
|
0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||||
0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x0f, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
||||||
0x0b, 0x32, 0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x70,
|
0x52, 0x09, 0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x44, 0x0a, 0x0a, 0x50,
|
||||||
0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x67,
|
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74,
|
0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x61, 0x72,
|
||||||
0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x75, 0x6d, 0x18,
|
0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x67, 0x69, 0x6e,
|
||||||
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x75, 0x6d, 0x22,
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
|
||||||
0x4f, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
|
0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20,
|
||||||
0x72, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18,
|
0x01, 0x28, 0x05, 0x52, 0x08, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x75, 0x6d, 0x22, 0x4f, 0x0a,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x20,
|
0x11, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52,
|
||||||
0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20,
|
0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44,
|
0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b,
|
||||||
0x22, 0x6b, 0x0a, 0x15, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f,
|
0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x6b,
|
||||||
0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75,
|
0x0a, 0x15, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74,
|
||||||
0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20,
|
0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
||||||
0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x4f,
|
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49,
|
||||||
0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
0x64, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x18, 0x0a,
|
0x05, 0x52, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70, 0x65,
|
||||||
0x16, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61,
|
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
||||||
0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x86, 0x01, 0x0a, 0x12, 0x4f, 0x70, 0x65, 0x72,
|
0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x18, 0x0a, 0x16, 0x4f,
|
||||||
0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18,
|
0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75,
|
||||||
0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x86, 0x01, 0x0a, 0x12, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
|
||||||
0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72,
|
0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07,
|
||||||
0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
|
0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47,
|
||||||
0x12, 0x1c, 0x0a, 0x09, 0x52, 0x6f, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20,
|
0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
|
||||||
0x01, 0x28, 0x05, 0x52, 0x09, 0x52, 0x6f, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x20,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1c,
|
||||||
0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x04, 0x20,
|
0x0a, 0x09, 0x52, 0x6f, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44,
|
0x05, 0x52, 0x09, 0x52, 0x6f, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x20, 0x0a, 0x0b,
|
||||||
0x22, 0x15, 0x0a, 0x13, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52,
|
0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x4c, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x15,
|
||||||
0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f,
|
0x0a, 0x13, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c,
|
||||||
|
0x65, 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, 0x22, 0x4d, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f,
|
||||||
|
0x75, 0x70, 0x42, 0x79, 0x49, 0x64, 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,
|
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,
|
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,
|
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,
|
0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
|
||||||
0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x4d, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x47,
|
0x70, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x08, 0x43, 0x4d, 0x53,
|
||||||
0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47,
|
0x47, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x72,
|
||||||
0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72,
|
0x6f, 0x75, 0x70, 0x2e, 0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x08, 0x43, 0x4d,
|
||||||
0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0xb5, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x47, 0x72,
|
||||||
0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72,
|
0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x71,
|
||||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x47, 0x72,
|
0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x6f, 0x75, 0x70, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x08, 0x43,
|
0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x55, 0x73,
|
||||||
0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
|
0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x55, 0x73,
|
||||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x08,
|
0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61,
|
||||||
0x43, 0x4d, 0x53, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x99, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74,
|
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x65, 0x72,
|
||||||
0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52,
|
0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52,
|
||||||
0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20,
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0a,
|
0x52, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b,
|
||||||
0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
0x32, 0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x61,
|
0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0xc1,
|
||||||
0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x67, 0x69,
|
0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
|
||||||
|
0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, 0x6d,
|
||||||
|
0x62, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x65, 0x72,
|
||||||
|
0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x47,
|
||||||
|
0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x46, 0x75, 0x6c, 0x6c, 0x49, 0x6e,
|
||||||
|
0x66, 0x6f, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x45, 0x0a, 0x0a, 0x50,
|
||||||
|
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
|
0x25, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x61, 0x72,
|
||||||
|
0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x61, 0x67, 0x69,
|
||||||
0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
|
0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
|
||||||
0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
|
0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x73,
|
||||||
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4e, 0x75,
|
||||||
|
0x6d, 0x73, 0x22, 0x70, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75,
|
||||||
|
0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 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, 0x18, 0x0a, 0x07, 0x55, 0x73, 0x65, 0x72,
|
||||||
|
0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x55, 0x73, 0x65, 0x72, 0x49,
|
||||||
|
0x64, 0x73, 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,
|
0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
||||||
0x6f, 0x6e, 0x49, 0x44, 0x22, 0xa0, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
|
0x6f, 0x6e, 0x49, 0x44, 0x22, 0x4d, 0x0a, 0x19, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72,
|
||||||
0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
||||||
0x40, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
|
|
||||||
0x32, 0x26, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x61,
|
|
||||||
0x72, 0x61, 0x6d, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
|
||||||
0x46, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
|
||||||
0x73, 0x12, 0x44, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
|
||||||
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61,
|
|
||||||
0x70, 0x69, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
||||||
0x74, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x50, 0x61, 0x67,
|
|
||||||
0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x70, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76,
|
|
||||||
0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53,
|
|
||||||
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, 0x18, 0x0a,
|
|
||||||
0x07, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07,
|
|
||||||
0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 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, 0x4d, 0x0a, 0x19, 0x52, 0x65, 0x6d,
|
|
||||||
0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43,
|
|
||||||
0x4d, 0x53, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73,
|
|
||||||
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
||||||
0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
|
|
||||||
0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x22, 0x6d, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x47,
|
|
||||||
0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 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, 0x18, 0x0a, 0x07, 0x55,
|
|
||||||
0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x55, 0x73,
|
|
||||||
0x65, 0x72, 0x49, 0x64, 0x73, 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, 0x4a, 0x0a, 0x16, 0x41, 0x64, 0x64, 0x47, 0x72,
|
|
||||||
0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x73,
|
0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x73,
|
||||||
0x70, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x03,
|
0x70, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x03,
|
||||||
0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66,
|
0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66,
|
||||||
0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x66, 0x61, 0x69,
|
0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x66, 0x61, 0x69,
|
||||||
0x6c, 0x65, 0x64, 0x32, 0xc5, 0x0d, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3c, 0x0a,
|
0x6c, 0x65, 0x64, 0x22, 0x6d, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d,
|
||||||
0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x15, 0x2e, 0x67,
|
0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07,
|
||||||
0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47,
|
||||||
0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43, 0x72, 0x65, 0x61,
|
0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
|
||||||
0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x09, 0x6a,
|
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73,
|
||||||
0x6f, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x13, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18,
|
||||||
0x2e, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e,
|
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
|
0x49, 0x64, 0x22, 0x4a, 0x0a, 0x16, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65,
|
||||||
0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x09, 0x71, 0x75, 0x69, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07,
|
||||||
0x12, 0x13, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x51, 0x75, 0x69, 0x74, 0x47, 0x72, 0x6f,
|
0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73,
|
||||||
0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x51, 0x75,
|
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64,
|
||||||
0x69, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x0a, 0x0d, 0x67,
|
0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x22, 0x67,
|
||||||
0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x2e, 0x67,
|
0x0a, 0x11, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72,
|
||||||
0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x49, 0x6e,
|
0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01,
|
||||||
0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a,
|
||||||
0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12,
|
0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55,
|
||||||
0x3f, 0x0a, 0x0c, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12,
|
0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
||||||
0x16, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
0x6f, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72,
|
||||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x47, 0x72,
|
||||||
0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70,
|
0x6f, 0x75, 0x70, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x32, 0x8c, 0x0e,
|
||||||
0x12, 0x60, 0x0a, 0x17, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x70, 0x70, 0x6c,
|
0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3c, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74,
|
||||||
0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, 0x67, 0x72,
|
0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x15, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43,
|
||||||
0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x70, 0x70, 0x6c,
|
0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e,
|
||||||
0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x22,
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75,
|
||||||
0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41,
|
0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x09, 0x6a, 0x6f, 0x69, 0x6e, 0x47, 0x72, 0x6f,
|
||||||
0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
0x75, 0x70, 0x12, 0x13, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4a, 0x6f, 0x69, 0x6e, 0x47,
|
||||||
0x73, 0x70, 0x12, 0x51, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x47, 0x72,
|
0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
||||||
0x6f, 0x75, 0x70, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x36, 0x0a,
|
||||||
0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x77,
|
0x09, 0x71, 0x75, 0x69, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x13, 0x2e, 0x67, 0x72, 0x6f,
|
||||||
0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x54,
|
0x75, 0x70, 0x2e, 0x51, 0x75, 0x69, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a,
|
||||||
0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x77, 0x6e, 0x65,
|
0x14, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x51, 0x75, 0x69, 0x74, 0x47, 0x72, 0x6f, 0x75,
|
||||||
0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x63, 0x0a, 0x18, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x70,
|
0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x0a, 0x0d, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
|
||||||
0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47,
|
||||||
0x65, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41,
|
0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a,
|
||||||
0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
0x18, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
||||||
0x73, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x72,
|
0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3f, 0x0a, 0x0c, 0x73, 0x65, 0x74,
|
||||||
0x6f, 0x75, 0x70, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
|
0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x72, 0x6f, 0x75,
|
||||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x51, 0x0a, 0x12, 0x67, 0x65,
|
0x70, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
|
||||||
0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74,
|
0x71, 0x1a, 0x17, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f,
|
||||||
0x12, 0x1c, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
|
0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x60, 0x0a, 0x17, 0x67, 0x65,
|
||||||
0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1d,
|
0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
|
||||||
|
0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65,
|
||||||
|
0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
|
||||||
|
0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||||||
|
0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61,
|
||||||
|
0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x51, 0x0a, 0x12,
|
||||||
|
0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x77, 0x6e,
|
||||||
|
0x65, 0x72, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73,
|
||||||
|
0x66, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71,
|
||||||
|
0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65,
|
||||||
|
0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12,
|
||||||
|
0x63, 0x0a, 0x18, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
|
||||||
|
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x67, 0x72,
|
||||||
|
0x6f, 0x75, 0x70, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61,
|
||||||
|
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x65, 0x71, 0x1a,
|
||||||
|
0x23, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x70, 0x70,
|
||||||
|
0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||||
|
0x52, 0x65, 0x73, 0x70, 0x12, 0x51, 0x0a, 0x12, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
||||||
|
0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x6f,
|
||||||
|
0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
|
||||||
|
0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||||||
|
0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c,
|
||||||
|
0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, 0x13, 0x67, 0x65, 0x74, 0x47, 0x72,
|
||||||
|
0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d,
|
||||||
0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d,
|
0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d,
|
||||||
0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a,
|
0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e,
|
||||||
0x13, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73,
|
|
||||||
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74,
|
|
||||||
0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x49, 0x6e, 0x66, 0x6f,
|
|
||||||
0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47,
|
|
||||||
0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
|
||||||
0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x0f, 0x6b, 0x69, 0x63, 0x6b, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
|
||||||
0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4b,
|
|
||||||
0x69, 0x63, 0x6b, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65,
|
|
||||||
0x71, 0x1a, 0x1a, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4b, 0x69, 0x63, 0x6b, 0x47, 0x72,
|
|
||||||
0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x51, 0x0a,
|
|
||||||
0x12, 0x67, 0x65, 0x74, 0x4a, 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c,
|
|
||||||
0x69, 0x73, 0x74, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x4a,
|
|
||||||
0x6f, 0x69, 0x6e, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
|
||||||
0x71, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x69,
|
|
||||||
0x6e, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70,
|
|
||||||
0x12, 0x4e, 0x0a, 0x11, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f,
|
|
||||||
0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1b, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x49, 0x6e,
|
|
||||||
0x76, 0x69, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
|
|
||||||
0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74,
|
|
||||||
0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70,
|
|
||||||
0x12, 0x4e, 0x0a, 0x11, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x6c, 0x4d,
|
|
||||||
0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65,
|
|
||||||
0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x6c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52,
|
|
||||||
0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72,
|
|
||||||
0x6f, 0x75, 0x70, 0x41, 0x6c, 0x6c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
|
|
||||||
0x12, 0x3f, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x49, 0x64,
|
|
||||||
0x12, 0x16, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
|
|
||||||
0x70, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
|
||||||
0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73,
|
|
||||||
0x70, 0x12, 0x33, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x2e,
|
|
||||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65,
|
|
||||||
0x71, 0x1a, 0x13, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f,
|
|
||||||
0x75, 0x70, 0x52, 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, 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, 0x12, 0x51,
|
|
||||||
0x0a, 0x12, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74,
|
|
||||||
0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4f, 0x70, 0x65,
|
|
||||||
0x72, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
|
|
||||||
0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61,
|
|
||||||
0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73,
|
|
||||||
0x70, 0x12, 0x48, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
|
|
||||||
0x52, 0x6f, 0x6c, 0x65, 0x12, 0x19, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4f, 0x70, 0x65,
|
|
||||||
0x72, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a,
|
|
||||||
0x1a, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x55,
|
|
||||||
0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 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, 0x12, 0x51, 0x0a, 0x12, 0x47, 0x65, 0x74,
|
|
||||||
0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x12,
|
|
||||||
0x1c, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
|
||||||
0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e,
|
|
||||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65,
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65,
|
||||||
0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5a, 0x0a, 0x15,
|
0x6d, 0x62, 0x65, 0x72, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a,
|
||||||
0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
|
0x0f, 0x6b, 0x69, 0x63, 0x6b, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
||||||
0x72, 0x73, 0x43, 0x4d, 0x53, 0x12, 0x1f, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x52, 0x65,
|
0x12, 0x19, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4b, 0x69, 0x63, 0x6b, 0x47, 0x72, 0x6f,
|
||||||
0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73,
|
0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x67, 0x72,
|
||||||
0x43, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x1a, 0x20, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x52,
|
0x6f, 0x75, 0x70, 0x2e, 0x4b, 0x69, 0x63, 0x6b, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d,
|
||||||
0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x51, 0x0a, 0x12, 0x67, 0x65, 0x74, 0x4a, 0x6f,
|
||||||
0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x73, 0x70, 0x12, 0x51, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x47,
|
0x69, 0x6e, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1c, 0x2e,
|
||||||
0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x12, 0x1c,
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x47,
|
||||||
0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d,
|
0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x67, 0x72,
|
||||||
0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x67,
|
0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x47, 0x72, 0x6f,
|
||||||
0x72, 0x6f, 0x75, 0x70, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d,
|
0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4e, 0x0a, 0x11, 0x69, 0x6e,
|
||||||
0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0f, 0x5a, 0x0d, 0x2e,
|
0x76, 0x69, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,
|
||||||
0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x62, 0x06, 0x70, 0x72,
|
0x1b, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x55, 0x73,
|
||||||
0x6f, 0x74, 0x6f, 0x33,
|
0x65, 0x72, 0x54, 0x6f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x67,
|
||||||
|
0x72, 0x6f, 0x75, 0x70, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54,
|
||||||
|
0x6f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4e, 0x0a, 0x11, 0x67, 0x65,
|
||||||
|
0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x6c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12,
|
||||||
|
0x1b, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
||||||
|
0x41, 0x6c, 0x6c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x67,
|
||||||
|
0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x6c,
|
||||||
|
0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3f, 0x0a, 0x0c, 0x47, 0x65,
|
||||||
|
0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x49, 0x64, 0x12, 0x16, 0x2e, 0x67, 0x72, 0x6f,
|
||||||
|
0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x49, 0x64, 0x52,
|
||||||
|
0x65, 0x71, 0x1a, 0x17, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72,
|
||||||
|
0x6f, 0x75, 0x70, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x33, 0x0a, 0x08, 0x47,
|
||||||
|
0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
||||||
|
0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x67, 0x72,
|
||||||
|
0x6f, 0x75, 0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 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, 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, 0x12, 0x51, 0x0a, 0x12, 0x4f, 0x70, 0x65, 0x72,
|
||||||
|
0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c,
|
||||||
|
0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x47, 0x72,
|
||||||
|
0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x67,
|
||||||
|
0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75,
|
||||||
|
0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x0f, 0x4f,
|
||||||
|
0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x19,
|
||||||
|
0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x55, 0x73,
|
||||||
|
0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x67, 0x72, 0x6f, 0x75,
|
||||||
|
0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c,
|
||||||
|
0x65, 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, 0x12, 0x51, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d,
|
||||||
|
0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x6f, 0x75,
|
||||||
|
0x70, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
||||||
|
0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
||||||
|
0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43,
|
||||||
|
0x4d, 0x53, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5a, 0x0a, 0x15, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
|
||||||
|
0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x12,
|
||||||
|
0x1f, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72,
|
||||||
|
0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65, 0x71,
|
||||||
|
0x1a, 0x20, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47,
|
||||||
|
0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x52, 0x65,
|
||||||
|
0x73, 0x70, 0x12, 0x51, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65,
|
||||||
|
0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d, 0x53, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||||||
|
0x2e, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73,
|
||||||
|
0x43, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x41,
|
||||||
|
0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x4d,
|
||||||
|
0x53, 0x52, 0x65, 0x73, 0x70, 0x12, 0x45, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
|
||||||
|
0x70, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x12, 0x18, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
||||||
|
0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65,
|
||||||
|
0x71, 0x1a, 0x19, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f,
|
||||||
|
0x75, 0x70, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 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 (
|
||||||
@ -3627,7 +3770,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, 51)
|
var file_group_group_proto_msgTypes = make([]protoimpl.MessageInfo, 53)
|
||||||
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
|
||||||
@ -3680,40 +3823,43 @@ var file_group_group_proto_goTypes = []interface{}{
|
|||||||
(*RemoveGroupMembersCMSResp)(nil), // 48: group.RemoveGroupMembersCMSResp
|
(*RemoveGroupMembersCMSResp)(nil), // 48: group.RemoveGroupMembersCMSResp
|
||||||
(*AddGroupMembersCMSReq)(nil), // 49: group.AddGroupMembersCMSReq
|
(*AddGroupMembersCMSReq)(nil), // 49: group.AddGroupMembersCMSReq
|
||||||
(*AddGroupMembersCMSResp)(nil), // 50: group.AddGroupMembersCMSResp
|
(*AddGroupMembersCMSResp)(nil), // 50: group.AddGroupMembersCMSResp
|
||||||
(*sdk_ws.GroupInfo)(nil), // 51: server_api_params.GroupInfo
|
(*SetGroupMasterReq)(nil), // 51: group.SetGroupMasterReq
|
||||||
(*sdk_ws.GroupRequest)(nil), // 52: server_api_params.GroupRequest
|
(*SetGroupMasterResp)(nil), // 52: group.SetGroupMasterResp
|
||||||
(*sdk_ws.GroupMemberFullInfo)(nil), // 53: server_api_params.GroupMemberFullInfo
|
(*sdk_ws.GroupInfo)(nil), // 53: server_api_params.GroupInfo
|
||||||
(*sdk_ws.RequestPagination)(nil), // 54: server_api_params.RequestPagination
|
(*sdk_ws.GroupRequest)(nil), // 54: server_api_params.GroupRequest
|
||||||
|
(*sdk_ws.GroupMemberFullInfo)(nil), // 55: server_api_params.GroupMemberFullInfo
|
||||||
|
(*sdk_ws.RequestPagination)(nil), // 56: server_api_params.RequestPagination
|
||||||
|
(*sdk_ws.ResponsePagination)(nil), // 57: server_api_params.ResponsePagination
|
||||||
}
|
}
|
||||||
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
|
||||||
51, // 1: group.CreateGroupReq.GroupInfo:type_name -> server_api_params.GroupInfo
|
53, // 1: group.CreateGroupReq.GroupInfo:type_name -> server_api_params.GroupInfo
|
||||||
51, // 2: group.CreateGroupResp.GroupInfo:type_name -> server_api_params.GroupInfo
|
53, // 2: group.CreateGroupResp.GroupInfo:type_name -> server_api_params.GroupInfo
|
||||||
51, // 3: group.GetGroupsInfoResp.GroupInfoList:type_name -> server_api_params.GroupInfo
|
53, // 3: group.GetGroupsInfoResp.GroupInfoList:type_name -> server_api_params.GroupInfo
|
||||||
51, // 4: group.SetGroupInfoReq.GroupInfo:type_name -> server_api_params.GroupInfo
|
53, // 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
|
||||||
52, // 6: group.GetGroupApplicationListResp.GroupRequestList:type_name -> server_api_params.GroupRequest
|
54, // 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
|
||||||
53, // 11: group.GetGroupMemberListResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
55, // 11: group.GetGroupMemberListResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
||||||
53, // 12: group.GetGroupMembersInfoResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
55, // 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
|
||||||
51, // 14: group.GetJoinedGroupListResp.GroupList:type_name -> server_api_params.GroupInfo
|
53, // 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
|
||||||
53, // 16: group.GetGroupAllMemberResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
55, // 16: group.GetGroupAllMemberResp.memberList:type_name -> server_api_params.GroupMemberFullInfo
|
||||||
51, // 17: group.CMSGroup.GroupInfo:type_name -> server_api_params.GroupInfo
|
53, // 17: group.CMSGroup.GroupInfo:type_name -> server_api_params.GroupInfo
|
||||||
54, // 18: group.GetGroupReq.Pagination:type_name -> server_api_params.RequestPagination
|
56, // 18: group.GetGroupReq.Pagination:type_name -> server_api_params.RequestPagination
|
||||||
31, // 19: group.GetGroupResp.CMSGroups:type_name -> group.CMSGroup
|
31, // 19: group.GetGroupResp.CMSGroups:type_name -> group.CMSGroup
|
||||||
54, // 20: group.GetGroupResp.Pagination:type_name -> server_api_params.RequestPagination
|
56, // 20: group.GetGroupResp.Pagination:type_name -> server_api_params.RequestPagination
|
||||||
54, // 21: group.GetGroupsReq.Pagination:type_name -> server_api_params.RequestPagination
|
56, // 21: group.GetGroupsReq.Pagination:type_name -> server_api_params.RequestPagination
|
||||||
31, // 22: group.GetGroupsResp.CMSGroups:type_name -> group.CMSGroup
|
31, // 22: group.GetGroupsResp.CMSGroups:type_name -> group.CMSGroup
|
||||||
54, // 23: group.GetGroupsResp.Pagination:type_name -> server_api_params.RequestPagination
|
56, // 23: group.GetGroupsResp.Pagination:type_name -> server_api_params.RequestPagination
|
||||||
31, // 24: group.GetGroupByIdResp.CMSGroup:type_name -> group.CMSGroup
|
31, // 24: group.GetGroupByIdResp.CMSGroup:type_name -> group.CMSGroup
|
||||||
54, // 25: group.GetGroupMembersCMSReq.Pagination:type_name -> server_api_params.RequestPagination
|
56, // 25: group.GetGroupMembersCMSReq.Pagination:type_name -> server_api_params.RequestPagination
|
||||||
53, // 26: group.GetGroupMembersCMSResp.members:type_name -> server_api_params.GroupMemberFullInfo
|
55, // 26: group.GetGroupMembersCMSResp.members:type_name -> server_api_params.GroupMemberFullInfo
|
||||||
54, // 27: group.GetGroupMembersCMSResp.Pagination:type_name -> server_api_params.RequestPagination
|
57, // 27: group.GetGroupMembersCMSResp.Pagination:type_name -> server_api_params.ResponsePagination
|
||||||
2, // 28: group.group.createGroup:input_type -> group.CreateGroupReq
|
2, // 28: group.group.createGroup:input_type -> group.CreateGroupReq
|
||||||
12, // 29: group.group.joinGroup:input_type -> group.JoinGroupReq
|
12, // 29: group.group.joinGroup:input_type -> group.JoinGroupReq
|
||||||
16, // 30: group.group.quitGroup:input_type -> group.QuitGroupReq
|
16, // 30: group.group.quitGroup:input_type -> group.QuitGroupReq
|
||||||
@ -3737,31 +3883,33 @@ var file_group_group_proto_depIdxs = []int32{
|
|||||||
45, // 48: group.group.GetGroupMembersCMS:input_type -> group.GetGroupMembersCMSReq
|
45, // 48: group.group.GetGroupMembersCMS:input_type -> group.GetGroupMembersCMSReq
|
||||||
47, // 49: group.group.RemoveGroupMembersCMS:input_type -> group.RemoveGroupMembersCMSReq
|
47, // 49: group.group.RemoveGroupMembersCMS:input_type -> group.RemoveGroupMembersCMSReq
|
||||||
49, // 50: group.group.AddGroupMembersCMS:input_type -> group.AddGroupMembersCMSReq
|
49, // 50: group.group.AddGroupMembersCMS:input_type -> group.AddGroupMembersCMSReq
|
||||||
3, // 51: group.group.createGroup:output_type -> group.CreateGroupResp
|
51, // 51: group.group.SetGroupMaster:input_type -> group.SetGroupMasterReq
|
||||||
13, // 52: group.group.joinGroup:output_type -> group.JoinGroupResp
|
3, // 52: group.group.createGroup:output_type -> group.CreateGroupResp
|
||||||
17, // 53: group.group.quitGroup:output_type -> group.QuitGroupResp
|
13, // 53: group.group.joinGroup:output_type -> group.JoinGroupResp
|
||||||
5, // 54: group.group.getGroupsInfo:output_type -> group.GetGroupsInfoResp
|
17, // 54: group.group.quitGroup:output_type -> group.QuitGroupResp
|
||||||
7, // 55: group.group.setGroupInfo:output_type -> group.SetGroupInfoResp
|
5, // 55: group.group.getGroupsInfo:output_type -> group.GetGroupsInfoResp
|
||||||
9, // 56: group.group.getGroupApplicationList:output_type -> group.GetGroupApplicationListResp
|
7, // 56: group.group.setGroupInfo:output_type -> group.SetGroupInfoResp
|
||||||
11, // 57: group.group.transferGroupOwner:output_type -> group.TransferGroupOwnerResp
|
9, // 57: group.group.getGroupApplicationList:output_type -> group.GetGroupApplicationListResp
|
||||||
15, // 58: group.group.groupApplicationResponse:output_type -> group.GroupApplicationResponseResp
|
11, // 58: group.group.transferGroupOwner:output_type -> group.TransferGroupOwnerResp
|
||||||
19, // 59: group.group.getGroupMemberList:output_type -> group.GetGroupMemberListResp
|
15, // 59: group.group.groupApplicationResponse:output_type -> group.GroupApplicationResponseResp
|
||||||
21, // 60: group.group.getGroupMembersInfo:output_type -> group.GetGroupMembersInfoResp
|
19, // 60: group.group.getGroupMemberList:output_type -> group.GetGroupMemberListResp
|
||||||
24, // 61: group.group.kickGroupMember:output_type -> group.KickGroupMemberResp
|
21, // 61: group.group.getGroupMembersInfo:output_type -> group.GetGroupMembersInfoResp
|
||||||
26, // 62: group.group.getJoinedGroupList:output_type -> group.GetJoinedGroupListResp
|
24, // 62: group.group.kickGroupMember:output_type -> group.KickGroupMemberResp
|
||||||
28, // 63: group.group.inviteUserToGroup:output_type -> group.InviteUserToGroupResp
|
26, // 63: group.group.getJoinedGroupList:output_type -> group.GetJoinedGroupListResp
|
||||||
30, // 64: group.group.getGroupAllMember:output_type -> group.GetGroupAllMemberResp
|
28, // 64: group.group.inviteUserToGroup:output_type -> group.InviteUserToGroupResp
|
||||||
44, // 65: group.group.GetGroupById:output_type -> group.GetGroupByIdResp
|
30, // 65: group.group.getGroupAllMember:output_type -> group.GetGroupAllMemberResp
|
||||||
33, // 66: group.group.GetGroup:output_type -> group.GetGroupResp
|
44, // 66: group.group.GetGroupById:output_type -> group.GetGroupByIdResp
|
||||||
35, // 67: group.group.GetGroups:output_type -> group.GetGroupsResp
|
33, // 67: group.group.GetGroup:output_type -> group.GetGroupResp
|
||||||
38, // 68: group.group.OperateGroupStatus:output_type -> group.OperateGroupStatusResp
|
35, // 68: group.group.GetGroups:output_type -> group.GetGroupsResp
|
||||||
40, // 69: group.group.OperateUserRole:output_type -> group.OperateUserRoleResp
|
38, // 69: group.group.OperateGroupStatus:output_type -> group.OperateGroupStatusResp
|
||||||
42, // 70: group.group.DeleteGroup:output_type -> group.DeleteGroupResp
|
40, // 70: group.group.OperateUserRole:output_type -> group.OperateUserRoleResp
|
||||||
46, // 71: group.group.GetGroupMembersCMS:output_type -> group.GetGroupMembersCMSResp
|
42, // 71: group.group.DeleteGroup:output_type -> group.DeleteGroupResp
|
||||||
48, // 72: group.group.RemoveGroupMembersCMS:output_type -> group.RemoveGroupMembersCMSResp
|
46, // 72: group.group.GetGroupMembersCMS:output_type -> group.GetGroupMembersCMSResp
|
||||||
50, // 73: group.group.AddGroupMembersCMS:output_type -> group.AddGroupMembersCMSResp
|
48, // 73: group.group.RemoveGroupMembersCMS:output_type -> group.RemoveGroupMembersCMSResp
|
||||||
51, // [51:74] is the sub-list for method output_type
|
50, // 74: group.group.AddGroupMembersCMS:output_type -> group.AddGroupMembersCMSResp
|
||||||
28, // [28:51] is the sub-list for method input_type
|
52, // 75: group.group.SetGroupMaster:output_type -> group.SetGroupMasterResp
|
||||||
|
52, // [52:76] is the sub-list for method output_type
|
||||||
|
28, // [28:52] is the sub-list for method input_type
|
||||||
28, // [28:28] is the sub-list for extension type_name
|
28, // [28:28] is the sub-list for extension type_name
|
||||||
28, // [28:28] is the sub-list for extension extendee
|
28, // [28:28] is the sub-list for extension extendee
|
||||||
0, // [0:28] is the sub-list for field type_name
|
0, // [0:28] is the sub-list for field type_name
|
||||||
@ -4385,6 +4533,30 @@ func file_group_group_proto_init() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_group_group_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*SetGroupMasterReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_group_group_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*SetGroupMasterResp); 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{
|
||||||
@ -4392,7 +4564,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: 51,
|
NumMessages: 53,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
@ -4441,6 +4613,7 @@ type GroupClient interface {
|
|||||||
GetGroupMembersCMS(ctx context.Context, in *GetGroupMembersCMSReq, opts ...grpc.CallOption) (*GetGroupMembersCMSResp, error)
|
GetGroupMembersCMS(ctx context.Context, in *GetGroupMembersCMSReq, opts ...grpc.CallOption) (*GetGroupMembersCMSResp, error)
|
||||||
RemoveGroupMembersCMS(ctx context.Context, in *RemoveGroupMembersCMSReq, opts ...grpc.CallOption) (*RemoveGroupMembersCMSResp, error)
|
RemoveGroupMembersCMS(ctx context.Context, in *RemoveGroupMembersCMSReq, opts ...grpc.CallOption) (*RemoveGroupMembersCMSResp, error)
|
||||||
AddGroupMembersCMS(ctx context.Context, in *AddGroupMembersCMSReq, opts ...grpc.CallOption) (*AddGroupMembersCMSResp, error)
|
AddGroupMembersCMS(ctx context.Context, in *AddGroupMembersCMSReq, opts ...grpc.CallOption) (*AddGroupMembersCMSResp, error)
|
||||||
|
SetGroupMaster(ctx context.Context, in *SetGroupMasterReq, opts ...grpc.CallOption) (*SetGroupMasterResp, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type groupClient struct {
|
type groupClient struct {
|
||||||
@ -4658,6 +4831,15 @@ func (c *groupClient) AddGroupMembersCMS(ctx context.Context, in *AddGroupMember
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *groupClient) SetGroupMaster(ctx context.Context, in *SetGroupMasterReq, opts ...grpc.CallOption) (*SetGroupMasterResp, error) {
|
||||||
|
out := new(SetGroupMasterResp)
|
||||||
|
err := c.cc.Invoke(ctx, "/group.group/SetGroupMaster", 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)
|
||||||
@ -4683,6 +4865,7 @@ type GroupServer interface {
|
|||||||
GetGroupMembersCMS(context.Context, *GetGroupMembersCMSReq) (*GetGroupMembersCMSResp, error)
|
GetGroupMembersCMS(context.Context, *GetGroupMembersCMSReq) (*GetGroupMembersCMSResp, error)
|
||||||
RemoveGroupMembersCMS(context.Context, *RemoveGroupMembersCMSReq) (*RemoveGroupMembersCMSResp, error)
|
RemoveGroupMembersCMS(context.Context, *RemoveGroupMembersCMSReq) (*RemoveGroupMembersCMSResp, error)
|
||||||
AddGroupMembersCMS(context.Context, *AddGroupMembersCMSReq) (*AddGroupMembersCMSResp, error)
|
AddGroupMembersCMS(context.Context, *AddGroupMembersCMSReq) (*AddGroupMembersCMSResp, error)
|
||||||
|
SetGroupMaster(context.Context, *SetGroupMasterReq) (*SetGroupMasterResp, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnimplementedGroupServer can be embedded to have forward compatible implementations.
|
// UnimplementedGroupServer can be embedded to have forward compatible implementations.
|
||||||
@ -4758,6 +4941,9 @@ func (*UnimplementedGroupServer) RemoveGroupMembersCMS(context.Context, *RemoveG
|
|||||||
func (*UnimplementedGroupServer) AddGroupMembersCMS(context.Context, *AddGroupMembersCMSReq) (*AddGroupMembersCMSResp, error) {
|
func (*UnimplementedGroupServer) AddGroupMembersCMS(context.Context, *AddGroupMembersCMSReq) (*AddGroupMembersCMSResp, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method AddGroupMembersCMS not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method AddGroupMembersCMS not implemented")
|
||||||
}
|
}
|
||||||
|
func (*UnimplementedGroupServer) SetGroupMaster(context.Context, *SetGroupMasterReq) (*SetGroupMasterResp, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method SetGroupMaster 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)
|
||||||
@ -5177,6 +5363,24 @@ func _Group_AddGroupMembersCMS_Handler(srv interface{}, ctx context.Context, dec
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func _Group_SetGroupMaster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(SetGroupMasterReq)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(GroupServer).SetGroupMaster(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/group.group/SetGroupMaster",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(GroupServer).SetGroupMaster(ctx, req.(*SetGroupMasterReq))
|
||||||
|
}
|
||||||
|
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),
|
||||||
@ -5273,6 +5477,10 @@ var _Group_serviceDesc = grpc.ServiceDesc{
|
|||||||
MethodName: "AddGroupMembersCMS",
|
MethodName: "AddGroupMembersCMS",
|
||||||
Handler: _Group_AddGroupMembersCMS_Handler,
|
Handler: _Group_AddGroupMembersCMS_Handler,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MethodName: "SetGroupMaster",
|
||||||
|
Handler: _Group_SetGroupMaster_Handler,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "group/group.proto",
|
Metadata: "group/group.proto",
|
||||||
|
@ -210,6 +210,7 @@ message GetGroupReq {
|
|||||||
message GetGroupResp {
|
message GetGroupResp {
|
||||||
repeated CMSGroup CMSGroups = 1;
|
repeated CMSGroup CMSGroups = 1;
|
||||||
server_api_params.RequestPagination Pagination = 2;
|
server_api_params.RequestPagination Pagination = 2;
|
||||||
|
int32 GroupNums = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetGroupsReq {
|
message GetGroupsReq {
|
||||||
@ -269,13 +270,15 @@ message GetGroupByIdResp {
|
|||||||
|
|
||||||
message GetGroupMembersCMSReq {
|
message GetGroupMembersCMSReq {
|
||||||
string GroupId = 1;
|
string GroupId = 1;
|
||||||
server_api_params.RequestPagination Pagination = 2;
|
string UserName = 2;
|
||||||
string OperationID = 3;
|
server_api_params.RequestPagination Pagination = 3;
|
||||||
|
string OperationID = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetGroupMembersCMSResp {
|
message GetGroupMembersCMSResp {
|
||||||
repeated server_api_params.GroupMemberFullInfo members = 3;
|
repeated server_api_params.GroupMemberFullInfo members = 1;
|
||||||
server_api_params.RequestPagination Pagination = 2;
|
server_api_params.ResponsePagination Pagination = 2;
|
||||||
|
int32 MemberNums = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message RemoveGroupMembersCMSReq {
|
message RemoveGroupMembersCMSReq {
|
||||||
@ -292,7 +295,7 @@ message RemoveGroupMembersCMSResp {
|
|||||||
message AddGroupMembersCMSReq {
|
message AddGroupMembersCMSReq {
|
||||||
string GroupId = 1;
|
string GroupId = 1;
|
||||||
repeated string UserIds = 2;
|
repeated string UserIds = 2;
|
||||||
string OperationID = 3;
|
string OperationId = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AddGroupMembersCMSResp {
|
message AddGroupMembersCMSResp {
|
||||||
@ -300,6 +303,16 @@ message AddGroupMembersCMSResp {
|
|||||||
repeated string failed = 2;
|
repeated string failed = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message SetGroupMasterReq {
|
||||||
|
string GroupId = 1;
|
||||||
|
string UserId = 2;
|
||||||
|
string OperationId = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message SetGroupMasterResp {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
service group{
|
service group{
|
||||||
rpc createGroup(CreateGroupReq) returns(CreateGroupResp);
|
rpc createGroup(CreateGroupReq) returns(CreateGroupResp);
|
||||||
rpc joinGroup(JoinGroupReq) returns(JoinGroupResp);
|
rpc joinGroup(JoinGroupReq) returns(JoinGroupResp);
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -99,7 +99,7 @@ message GetReceiveMessageOptResp{
|
|||||||
|
|
||||||
message GetAllConversationMsgOptReq{
|
message GetAllConversationMsgOptReq{
|
||||||
string FromUserID = 1;
|
string FromUserID = 1;
|
||||||
string operationID = 2;
|
string operationID = 2;
|
||||||
string OpUserID = 3;
|
string OpUserID = 3;
|
||||||
}
|
}
|
||||||
message GetAllConversationMsgOptResp{
|
message GetAllConversationMsgOptResp{
|
||||||
@ -134,6 +134,18 @@ message GetUserByIdResp{
|
|||||||
User user = 2;
|
User user = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message GetUsersByNameReq {
|
||||||
|
string UserName = 1;
|
||||||
|
server_api_params.RequestPagination Pagination =2;
|
||||||
|
string OperationID = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message GetUsersByNameResp {
|
||||||
|
repeated User users = 1;
|
||||||
|
server_api_params.ResponsePagination Pagination = 2;
|
||||||
|
int32 UserNums = 3;
|
||||||
|
}
|
||||||
|
|
||||||
message AlterUserReq{
|
message AlterUserReq{
|
||||||
string UserId = 1;
|
string UserId = 1;
|
||||||
string OperationID = 2;
|
string OperationID = 2;
|
||||||
@ -156,7 +168,7 @@ message GetUsersResp{
|
|||||||
CommonResp CommonResp = 1;
|
CommonResp CommonResp = 1;
|
||||||
repeated User user = 2;
|
repeated User user = 2;
|
||||||
server_api_params.ResponsePagination Pagination = 3;
|
server_api_params.ResponsePagination Pagination = 3;
|
||||||
string OperationID = 4;
|
int32 UserNums = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AddUserReq{
|
message AddUserReq{
|
||||||
@ -193,7 +205,7 @@ message UnBlockUserResp{
|
|||||||
message GetBlockUsersReq{
|
message GetBlockUsersReq{
|
||||||
server_api_params.RequestPagination Pagination =1;
|
server_api_params.RequestPagination Pagination =1;
|
||||||
string OperationID = 2;
|
string OperationID = 2;
|
||||||
int32 BlockUserNum = 4;
|
int32 BlockUserNum = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message BlockUser {
|
message BlockUser {
|
||||||
@ -206,6 +218,7 @@ message GetBlockUsersResp{
|
|||||||
CommonResp CommonResp = 1;
|
CommonResp CommonResp = 1;
|
||||||
repeated BlockUser BlockUsers = 2;
|
repeated BlockUser BlockUsers = 2;
|
||||||
server_api_params.ResponsePagination Pagination = 3;
|
server_api_params.ResponsePagination Pagination = 3;
|
||||||
|
int32 UserNums = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetBlockUserByIdReq {
|
message GetBlockUserByIdReq {
|
||||||
@ -236,7 +249,8 @@ service user {
|
|||||||
rpc GetAllConversationMsgOpt(GetAllConversationMsgOptReq)returns(GetAllConversationMsgOptResp);
|
rpc GetAllConversationMsgOpt(GetAllConversationMsgOptReq)returns(GetAllConversationMsgOptResp);
|
||||||
rpc AccountCheck(AccountCheckReq)returns(AccountCheckResp);
|
rpc AccountCheck(AccountCheckReq)returns(AccountCheckResp);
|
||||||
|
|
||||||
rpc GetUserById(GetUserByIdReq) returns (GetUserByIdResp);
|
rpc GetUserById(GetUserByIdReq) returns (GetUserByIdResp);
|
||||||
|
rpc GetUsersByName(GetUsersByNameReq) returns (GetUsersByNameResp);
|
||||||
rpc ResignUser(ResignUserReq) returns (ResignUserResp);
|
rpc ResignUser(ResignUserReq) returns (ResignUserResp);
|
||||||
rpc AlterUser(AlterUserReq) returns (AlterUserResp);
|
rpc AlterUser(AlterUserReq) returns (AlterUserResp);
|
||||||
rpc GetUsers(GetUsersReq) returns (GetUsersResp);
|
rpc GetUsers(GetUsersReq) returns (GetUsersResp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user