pull/218/head
wangchuxiao 3 years ago
parent c0314d95c9
commit 91e03f7cfd

@ -1,23 +0,0 @@
.PHONY: all build run gotool install clean help
BINARY_NAME=open_im_office
BIN_DIR=../../../bin/
all: gotool build
build:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s"
run:
@go run ./
gotool:
go fmt ./
go vet ./
install:
make build
mv ${BINARY_NAME} ${BIN_DIR}
clean:
@if [ -f ${BINARY_NAME} ] ; then rm ${BINARY_NAME} ; fi

@ -1,15 +0,0 @@
package main
import (
rpc "Open_IM/internal/rpc/cache"
"flag"
"fmt"
)
func main() {
rpcPort := flag.Int("port", 11500, "rpc listening port")
flag.Parse()
fmt.Println("start office rpc server, port: ", *rpcPort)
rpcServer := rpc.NewOfficeServer(*rpcPort)
rpcServer.Run()
}

@ -730,3 +730,7 @@ func SetGroupMemberNickname(c *gin.Context) {
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), " api return ", resp) log.NewInfo(req.OperationID, utils.GetSelfFuncName(), " api return ", resp)
c.JSON(http.StatusOK, resp) c.JSON(http.StatusOK, resp)
} }
func GetGroupMemberIDListFromCache(c *gin.Context) {
}

@ -81,9 +81,12 @@ func SyncDB2Cache() error {
//err = updateAllUserToCache(userList) //err = updateAllUserToCache(userList)
err = updateAllFriendToCache(userList) err = updateAllFriendToCache(userList)
err = updateAllBlackListToCache(userList) err = updateAllBlackListToCache(userList)
err = updateAllGroupMemberListToCache()
return err return err
} }
func DelRelationCache() {}
func updateAllUserToCache(userList []db.User) error { func updateAllUserToCache(userList []db.User) error {
for _, userInfo := range userList { for _, userInfo := range userList {
userInfoPb := &commonPb.UserInfo{ userInfoPb := &commonPb.UserInfo{
@ -110,6 +113,28 @@ func updateAllUserToCache(userList []db.User) error {
return nil return nil
} }
func updateAllGroupMemberListToCache() error {
log.NewInfo("0", utils.GetSelfFuncName())
groupIDList, err := imdb.GetAllGroupIDList()
if err != nil {
log.NewError("0", utils.GetSelfFuncName(), "getAllGroupIDList failed", err.Error())
panic(err.Error())
}
for _, groupID := range groupIDList {
groupMemberIDList, err := imdb.GetGroupMemberIDListByGroupID(groupID)
if err != nil {
log.NewError("", utils.GetSelfFuncName(), "GetGroupMemberIDListByGroupID", err.Error())
continue
}
log.NewDebug("", utils.GetSelfFuncName(), "groupMemberIDList", groupMemberIDList)
if err := db.DB.AddGroupMemberToCache(groupID, groupMemberIDList...); err != nil {
log.NewError("", utils.GetSelfFuncName(), "AddGroupMemberToCache", err.Error())
}
}
log.NewInfo("0", utils.GetSelfFuncName(), "ok")
return nil
}
func updateAllFriendToCache(userList []db.User) error { func updateAllFriendToCache(userList []db.User) error {
log.NewInfo("0", utils.GetSelfFuncName()) log.NewInfo("0", utils.GetSelfFuncName())
for _, user := range userList { for _, user := range userList {
@ -260,3 +285,46 @@ func (s *cacheServer) ReduceBlackUserFromCache(_ context.Context, req *pbCache.R
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String()) log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String())
return resp, nil return resp, nil
} }
func (s *cacheServer) GetGroupMemberIDListFromCache(_ context.Context, req *pbCache.GetGroupMemberIDListFromCacheReq) (resp *pbCache.GetGroupMemberIDListFromCacheResp, err error) {
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String())
resp = &pbCache.GetGroupMemberIDListFromCacheResp{
CommonResp: &pbCache.CommonResp{},
}
userIDList, err := db.DB.GetGroupMemberIDListFromCache(req.GroupID)
if err != nil {
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetGroupMemberIDListFromCache failed", err.Error())
resp.CommonResp.ErrCode = constant.ErrDB.ErrCode
resp.CommonResp.ErrMsg = constant.ErrDB.ErrMsg
return resp, nil
}
resp.UserIDList = userIDList
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String())
return resp, nil
}
func (s *cacheServer) AddGroupMemberToCache(_ context.Context, req *pbCache.AddGroupMemberToCacheReq) (resp *pbCache.AddGroupMemberToCacheResp, err error) {
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String())
resp = &pbCache.AddGroupMemberToCacheResp{CommonResp: &pbCache.CommonResp{}}
if err := db.DB.AddGroupMemberToCache(req.GroupID, req.UserIDList...); err != nil {
log.NewError(req.OperationID, utils.GetSelfFuncName(), "AddGroupMemberToCache failed", err.Error())
resp.CommonResp.ErrCode = constant.ErrDB.ErrCode
resp.CommonResp.ErrMsg = constant.ErrDB.ErrMsg
return resp, nil
}
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String())
return resp, nil
}
func (s *cacheServer) ReduceGroupMemberFromCache(_ context.Context, req *pbCache.ReduceGroupMemberFromCacheReq) (resp *pbCache.ReduceGroupMemberFromCacheResp, err error) {
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String())
resp = &pbCache.ReduceGroupMemberFromCacheResp{}
if err := db.DB.ReduceGroupMemberFromCache(req.GroupID, req.UserIDList...); err != nil {
log.NewError(req.OperationID, utils.GetSelfFuncName(), "ReduceGroupMemberFromCache failed", err.Error())
resp.CommonResp.ErrCode = constant.ErrDB.ErrCode
resp.CommonResp.ErrMsg = constant.ErrDB.ErrMsg
return resp, nil
}
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String())
return resp, nil
}

@ -161,6 +161,7 @@ func (s *groupServer) CreateGroup(ctx context.Context, req *pbGroup.CreateGroupR
resp.GroupInfo.OwnerUserID = req.OwnerUserID resp.GroupInfo.OwnerUserID = req.OwnerUserID
log.NewInfo(req.OperationID, "rpc CreateGroup return ", resp.String()) log.NewInfo(req.OperationID, "rpc CreateGroup return ", resp.String())
chat.GroupCreatedNotification(req.OperationID, req.OpUserID, groupId, okUserIDList) chat.GroupCreatedNotification(req.OperationID, req.OpUserID, groupId, okUserIDList)
return resp, nil return resp, nil
} }
@ -690,6 +691,22 @@ func (s *groupServer) QuitGroup(ctx context.Context, req *pbGroup.QuitGroupReq)
} else { } else {
log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "SetConversation success", respPb.String()) log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "SetConversation success", respPb.String())
} }
//reduceGroupMemberFromCacheReq := &pbCache.ReduceGroupMemberFromCacheReq{
// UserIDList: []string{req.OpUserID},
// GroupID: req.GroupID,
// OperationID: req.OperationID,
//}
//etcdConn = getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImCacheName)
//cacheClient := pbCache.NewCacheClient(etcdConn)
//respCachePb, err := cacheClient.ReduceGroupMemberFromCache(context.Background(), reduceGroupMemberFromCacheReq)
//if err != nil {
// log.NewError(req.OperationID, utils.GetSelfFuncName(), "AddFriendToCache failed", err.Error(), reduceGroupMemberFromCacheReq.String())
// return &pbGroup.QuitGroupResp{CommonResp: &pbGroup.CommonResp{ErrCode: constant.ErrServer.ErrCode, ErrMsg: constant.ErrServer.ErrMsg}}, nil
//}
//if respPb.CommonResp.ErrCode != 0 {
// log.NewError(req.OperationID, utils.GetSelfFuncName(), "AddFriendToCache failed", reduceGroupMemberFromCacheReq.String())
// return &pbGroup.QuitGroupResp{CommonResp: &pbGroup.CommonResp{ErrCode:respCachePb.CommonResp.ErrCode, ErrMsg: respCachePb.CommonResp.ErrMsg}}, nil
//}
chat.MemberQuitNotification(req) chat.MemberQuitNotification(req)
log.NewInfo(req.OperationID, "rpc QuitGroup return ", pbGroup.QuitGroupResp{CommonResp: &pbGroup.CommonResp{ErrCode: 0, ErrMsg: ""}}) log.NewInfo(req.OperationID, "rpc QuitGroup return ", pbGroup.QuitGroupResp{CommonResp: &pbGroup.CommonResp{ErrCode: 0, ErrMsg: ""}})
return &pbGroup.QuitGroupResp{CommonResp: &pbGroup.CommonResp{ErrCode: 0, ErrMsg: ""}}, nil return &pbGroup.QuitGroupResp{CommonResp: &pbGroup.CommonResp{ErrCode: 0, ErrMsg: ""}}, nil

@ -165,7 +165,7 @@ func (s *officeServer) SendMsg2Tag(_ context.Context, req *pbOffice.SendMsg2TagR
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetGroupMemberIDListByGroupID failed", err.Error()) log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetGroupMemberIDListByGroupID failed", err.Error())
continue continue
} }
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), userIDList) log.NewDebug(req.OperationID, utils.GetSelfFuncName(), userIDList)
groupUserIDList = append(groupUserIDList, userIDList...) groupUserIDList = append(groupUserIDList, userIDList...)
} }
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), groupUserIDList, req.GroupList) log.NewInfo(req.OperationID, utils.GetSelfFuncName(), groupUserIDList, req.GroupList)
@ -315,12 +315,13 @@ func (s *officeServer) CreateOneWorkMoment(_ context.Context, req *pbOffice.Crea
func (s *officeServer) getPermissionUserIDList(operationID string, groupList []*pbOffice.PermissionGroup, userList []*pbOffice.WorkMomentUser) []string { func (s *officeServer) getPermissionUserIDList(operationID string, groupList []*pbOffice.PermissionGroup, userList []*pbOffice.WorkMomentUser) []string {
var permissionUserIDList []string var permissionUserIDList []string
for _, group := range groupList { for _, group := range groupList {
GroupMemberIDList, err := imdb.GetGroupMemberIDListByGroupID(group.GroupID) groupMemberIDList, err := imdb.GetGroupMemberIDListByGroupID(group.GroupID)
if err != nil { if err != nil {
log.NewError(operationID, utils.GetSelfFuncName(), "GetGroupMemberIDListByGroupID failed", group, err.Error()) log.NewError(operationID, utils.GetSelfFuncName(), "GetGroupMemberIDListByGroupID failed", group, err.Error())
continue continue
} }
permissionUserIDList = append(permissionUserIDList, GroupMemberIDList...) log.NewDebug(operationID, utils.GetSelfFuncName(), "groupMemberIDList: ", groupMemberIDList)
permissionUserIDList = append(permissionUserIDList, groupMemberIDList...)
} }
var userIDList []string var userIDList []string
for _, user := range userList { for _, user := range userList {

@ -72,15 +72,11 @@ func GetGroupMemberIDListByGroupID(groupID string) ([]string, error) {
return nil, err return nil, err
} }
dbConn.LogMode(false) dbConn.LogMode(false)
var groupMembers []db.GroupMember var groupMemberIDList []string
err = dbConn.Table("group_members").Select("user_id").Where("group_id=?", groupID).Find(&groupMembers).Error err = dbConn.Table("group_members").Where("group_id=?", groupID).Pluck("user_id", &groupMemberIDList).Error
if err != nil { if err != nil {
return nil, err return nil, err
} }
var groupMemberIDList []string
for _, v := range groupMembers {
groupMemberIDList = append(groupMemberIDList, v.UserID)
}
return groupMemberIDList, nil return groupMemberIDList, nil
} }

@ -223,3 +223,13 @@ func UpdateGroupInfoDefaultZero(groupID string, args map[string]interface{}) err
} }
return dbConn.Table("groups").Where("group_id = ? ", groupID).Update(args).Error return dbConn.Table("groups").Where("group_id = ? ", groupID).Update(args).Error
} }
func GetAllGroupIDList() ([]string, error) {
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
if err != nil {
return nil, err
}
var groupIDList []string
err = dbConn.Model(&db.Group{}).Pluck("group_id", &groupIDList).Error
return groupIDList, err
}

@ -20,6 +20,7 @@ const (
userInfoCache = "USER_INFO_CACHE:" userInfoCache = "USER_INFO_CACHE:"
friendRelationCache = "FRIEND_RELATION_CACHE:" friendRelationCache = "FRIEND_RELATION_CACHE:"
blackListCache = "BLACK_LIST_CACHE:" blackListCache = "BLACK_LIST_CACHE:"
groupCache = "GROUP_CACHE:"
) )
func (d *DataBases) Exec(cmd string, key interface{}, args ...interface{}) (interface{}, error) { func (d *DataBases) Exec(cmd string, key interface{}, args ...interface{}) (interface{}, error) {
@ -226,3 +227,26 @@ func (d *DataBases) GetBlackListFromCache(userID string) ([]string, error) {
result, err := redis.Strings(d.Exec("SMEMBERS", blackListCache+userID)) result, err := redis.Strings(d.Exec("SMEMBERS", blackListCache+userID))
return result, err return result, err
} }
func (d *DataBases) AddGroupMemberToCache(groupID string, userIDList ...string) error {
var IDList []interface{}
for _, id := range userIDList {
IDList = append(IDList, id)
}
_, err := d.Exec("SADD", blackListCache+groupID, IDList...)
return err
}
func (d *DataBases) ReduceGroupMemberFromCache(groupID string, userIDList ...string) error {
var IDList []interface{}
for _, id := range userIDList {
IDList = append(IDList, id)
}
_, err := d.Exec("SREM", blackListCache+groupID, IDList...)
return err
}
func (d *DataBases) GetGroupMemberIDListFromCache(groupID string) ([]string, error) {
result, err := redis.Strings(d.Exec("SMEMBERS", groupCache+groupID))
return result, err
}

@ -36,7 +36,7 @@ func (m *CommonResp) Reset() { *m = CommonResp{} }
func (m *CommonResp) String() string { return proto.CompactTextString(m) } func (m *CommonResp) String() string { return proto.CompactTextString(m) }
func (*CommonResp) ProtoMessage() {} func (*CommonResp) ProtoMessage() {}
func (*CommonResp) Descriptor() ([]byte, []int) { func (*CommonResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{0} return fileDescriptor_cache_cf8751e0f76be356, []int{0}
} }
func (m *CommonResp) XXX_Unmarshal(b []byte) error { func (m *CommonResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommonResp.Unmarshal(m, b) return xxx_messageInfo_CommonResp.Unmarshal(m, b)
@ -82,7 +82,7 @@ func (m *GetUserInfoFromCacheReq) Reset() { *m = GetUserInfoFromCacheReq
func (m *GetUserInfoFromCacheReq) String() string { return proto.CompactTextString(m) } func (m *GetUserInfoFromCacheReq) String() string { return proto.CompactTextString(m) }
func (*GetUserInfoFromCacheReq) ProtoMessage() {} func (*GetUserInfoFromCacheReq) ProtoMessage() {}
func (*GetUserInfoFromCacheReq) Descriptor() ([]byte, []int) { func (*GetUserInfoFromCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{1} return fileDescriptor_cache_cf8751e0f76be356, []int{1}
} }
func (m *GetUserInfoFromCacheReq) XXX_Unmarshal(b []byte) error { func (m *GetUserInfoFromCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetUserInfoFromCacheReq.Unmarshal(m, b) return xxx_messageInfo_GetUserInfoFromCacheReq.Unmarshal(m, b)
@ -128,7 +128,7 @@ func (m *GetUserInfoFromCacheResp) Reset() { *m = GetUserInfoFromCacheRe
func (m *GetUserInfoFromCacheResp) String() string { return proto.CompactTextString(m) } func (m *GetUserInfoFromCacheResp) String() string { return proto.CompactTextString(m) }
func (*GetUserInfoFromCacheResp) ProtoMessage() {} func (*GetUserInfoFromCacheResp) ProtoMessage() {}
func (*GetUserInfoFromCacheResp) Descriptor() ([]byte, []int) { func (*GetUserInfoFromCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{2} return fileDescriptor_cache_cf8751e0f76be356, []int{2}
} }
func (m *GetUserInfoFromCacheResp) XXX_Unmarshal(b []byte) error { func (m *GetUserInfoFromCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetUserInfoFromCacheResp.Unmarshal(m, b) return xxx_messageInfo_GetUserInfoFromCacheResp.Unmarshal(m, b)
@ -174,7 +174,7 @@ func (m *UpdateUserInfoToCacheReq) Reset() { *m = UpdateUserInfoToCacheR
func (m *UpdateUserInfoToCacheReq) String() string { return proto.CompactTextString(m) } func (m *UpdateUserInfoToCacheReq) String() string { return proto.CompactTextString(m) }
func (*UpdateUserInfoToCacheReq) ProtoMessage() {} func (*UpdateUserInfoToCacheReq) ProtoMessage() {}
func (*UpdateUserInfoToCacheReq) Descriptor() ([]byte, []int) { func (*UpdateUserInfoToCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{3} return fileDescriptor_cache_cf8751e0f76be356, []int{3}
} }
func (m *UpdateUserInfoToCacheReq) XXX_Unmarshal(b []byte) error { func (m *UpdateUserInfoToCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateUserInfoToCacheReq.Unmarshal(m, b) return xxx_messageInfo_UpdateUserInfoToCacheReq.Unmarshal(m, b)
@ -219,7 +219,7 @@ func (m *UpdateUserInfoToCacheResp) Reset() { *m = UpdateUserInfoToCache
func (m *UpdateUserInfoToCacheResp) String() string { return proto.CompactTextString(m) } func (m *UpdateUserInfoToCacheResp) String() string { return proto.CompactTextString(m) }
func (*UpdateUserInfoToCacheResp) ProtoMessage() {} func (*UpdateUserInfoToCacheResp) ProtoMessage() {}
func (*UpdateUserInfoToCacheResp) Descriptor() ([]byte, []int) { func (*UpdateUserInfoToCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{4} return fileDescriptor_cache_cf8751e0f76be356, []int{4}
} }
func (m *UpdateUserInfoToCacheResp) XXX_Unmarshal(b []byte) error { func (m *UpdateUserInfoToCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateUserInfoToCacheResp.Unmarshal(m, b) return xxx_messageInfo_UpdateUserInfoToCacheResp.Unmarshal(m, b)
@ -258,7 +258,7 @@ func (m *GetFriendIDListFromCacheReq) Reset() { *m = GetFriendIDListFrom
func (m *GetFriendIDListFromCacheReq) String() string { return proto.CompactTextString(m) } func (m *GetFriendIDListFromCacheReq) String() string { return proto.CompactTextString(m) }
func (*GetFriendIDListFromCacheReq) ProtoMessage() {} func (*GetFriendIDListFromCacheReq) ProtoMessage() {}
func (*GetFriendIDListFromCacheReq) Descriptor() ([]byte, []int) { func (*GetFriendIDListFromCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{5} return fileDescriptor_cache_cf8751e0f76be356, []int{5}
} }
func (m *GetFriendIDListFromCacheReq) XXX_Unmarshal(b []byte) error { func (m *GetFriendIDListFromCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFriendIDListFromCacheReq.Unmarshal(m, b) return xxx_messageInfo_GetFriendIDListFromCacheReq.Unmarshal(m, b)
@ -304,7 +304,7 @@ func (m *GetFriendIDListFromCacheResp) Reset() { *m = GetFriendIDListFro
func (m *GetFriendIDListFromCacheResp) String() string { return proto.CompactTextString(m) } func (m *GetFriendIDListFromCacheResp) String() string { return proto.CompactTextString(m) }
func (*GetFriendIDListFromCacheResp) ProtoMessage() {} func (*GetFriendIDListFromCacheResp) ProtoMessage() {}
func (*GetFriendIDListFromCacheResp) Descriptor() ([]byte, []int) { func (*GetFriendIDListFromCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{6} return fileDescriptor_cache_cf8751e0f76be356, []int{6}
} }
func (m *GetFriendIDListFromCacheResp) XXX_Unmarshal(b []byte) error { func (m *GetFriendIDListFromCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFriendIDListFromCacheResp.Unmarshal(m, b) return xxx_messageInfo_GetFriendIDListFromCacheResp.Unmarshal(m, b)
@ -351,7 +351,7 @@ func (m *AddFriendToCacheReq) Reset() { *m = AddFriendToCacheReq{} }
func (m *AddFriendToCacheReq) String() string { return proto.CompactTextString(m) } func (m *AddFriendToCacheReq) String() string { return proto.CompactTextString(m) }
func (*AddFriendToCacheReq) ProtoMessage() {} func (*AddFriendToCacheReq) ProtoMessage() {}
func (*AddFriendToCacheReq) Descriptor() ([]byte, []int) { func (*AddFriendToCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{7} return fileDescriptor_cache_cf8751e0f76be356, []int{7}
} }
func (m *AddFriendToCacheReq) XXX_Unmarshal(b []byte) error { func (m *AddFriendToCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddFriendToCacheReq.Unmarshal(m, b) return xxx_messageInfo_AddFriendToCacheReq.Unmarshal(m, b)
@ -403,7 +403,7 @@ func (m *AddFriendToCacheResp) Reset() { *m = AddFriendToCacheResp{} }
func (m *AddFriendToCacheResp) String() string { return proto.CompactTextString(m) } func (m *AddFriendToCacheResp) String() string { return proto.CompactTextString(m) }
func (*AddFriendToCacheResp) ProtoMessage() {} func (*AddFriendToCacheResp) ProtoMessage() {}
func (*AddFriendToCacheResp) Descriptor() ([]byte, []int) { func (*AddFriendToCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{8} return fileDescriptor_cache_cf8751e0f76be356, []int{8}
} }
func (m *AddFriendToCacheResp) XXX_Unmarshal(b []byte) error { func (m *AddFriendToCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddFriendToCacheResp.Unmarshal(m, b) return xxx_messageInfo_AddFriendToCacheResp.Unmarshal(m, b)
@ -443,7 +443,7 @@ func (m *ReduceFriendFromCacheReq) Reset() { *m = ReduceFriendFromCacheR
func (m *ReduceFriendFromCacheReq) String() string { return proto.CompactTextString(m) } func (m *ReduceFriendFromCacheReq) String() string { return proto.CompactTextString(m) }
func (*ReduceFriendFromCacheReq) ProtoMessage() {} func (*ReduceFriendFromCacheReq) ProtoMessage() {}
func (*ReduceFriendFromCacheReq) Descriptor() ([]byte, []int) { func (*ReduceFriendFromCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{9} return fileDescriptor_cache_cf8751e0f76be356, []int{9}
} }
func (m *ReduceFriendFromCacheReq) XXX_Unmarshal(b []byte) error { func (m *ReduceFriendFromCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReduceFriendFromCacheReq.Unmarshal(m, b) return xxx_messageInfo_ReduceFriendFromCacheReq.Unmarshal(m, b)
@ -495,7 +495,7 @@ func (m *ReduceFriendFromCacheResp) Reset() { *m = ReduceFriendFromCache
func (m *ReduceFriendFromCacheResp) String() string { return proto.CompactTextString(m) } func (m *ReduceFriendFromCacheResp) String() string { return proto.CompactTextString(m) }
func (*ReduceFriendFromCacheResp) ProtoMessage() {} func (*ReduceFriendFromCacheResp) ProtoMessage() {}
func (*ReduceFriendFromCacheResp) Descriptor() ([]byte, []int) { func (*ReduceFriendFromCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{10} return fileDescriptor_cache_cf8751e0f76be356, []int{10}
} }
func (m *ReduceFriendFromCacheResp) XXX_Unmarshal(b []byte) error { func (m *ReduceFriendFromCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReduceFriendFromCacheResp.Unmarshal(m, b) return xxx_messageInfo_ReduceFriendFromCacheResp.Unmarshal(m, b)
@ -534,7 +534,7 @@ func (m *GetBlackIDListFromCacheReq) Reset() { *m = GetBlackIDListFromCa
func (m *GetBlackIDListFromCacheReq) String() string { return proto.CompactTextString(m) } func (m *GetBlackIDListFromCacheReq) String() string { return proto.CompactTextString(m) }
func (*GetBlackIDListFromCacheReq) ProtoMessage() {} func (*GetBlackIDListFromCacheReq) ProtoMessage() {}
func (*GetBlackIDListFromCacheReq) Descriptor() ([]byte, []int) { func (*GetBlackIDListFromCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{11} return fileDescriptor_cache_cf8751e0f76be356, []int{11}
} }
func (m *GetBlackIDListFromCacheReq) XXX_Unmarshal(b []byte) error { func (m *GetBlackIDListFromCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBlackIDListFromCacheReq.Unmarshal(m, b) return xxx_messageInfo_GetBlackIDListFromCacheReq.Unmarshal(m, b)
@ -580,7 +580,7 @@ func (m *GetBlackIDListFromCacheResp) Reset() { *m = GetBlackIDListFromC
func (m *GetBlackIDListFromCacheResp) String() string { return proto.CompactTextString(m) } func (m *GetBlackIDListFromCacheResp) String() string { return proto.CompactTextString(m) }
func (*GetBlackIDListFromCacheResp) ProtoMessage() {} func (*GetBlackIDListFromCacheResp) ProtoMessage() {}
func (*GetBlackIDListFromCacheResp) Descriptor() ([]byte, []int) { func (*GetBlackIDListFromCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{12} return fileDescriptor_cache_cf8751e0f76be356, []int{12}
} }
func (m *GetBlackIDListFromCacheResp) XXX_Unmarshal(b []byte) error { func (m *GetBlackIDListFromCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBlackIDListFromCacheResp.Unmarshal(m, b) return xxx_messageInfo_GetBlackIDListFromCacheResp.Unmarshal(m, b)
@ -627,7 +627,7 @@ func (m *AddBlackUserToCacheReq) Reset() { *m = AddBlackUserToCacheReq{}
func (m *AddBlackUserToCacheReq) String() string { return proto.CompactTextString(m) } func (m *AddBlackUserToCacheReq) String() string { return proto.CompactTextString(m) }
func (*AddBlackUserToCacheReq) ProtoMessage() {} func (*AddBlackUserToCacheReq) ProtoMessage() {}
func (*AddBlackUserToCacheReq) Descriptor() ([]byte, []int) { func (*AddBlackUserToCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{13} return fileDescriptor_cache_cf8751e0f76be356, []int{13}
} }
func (m *AddBlackUserToCacheReq) XXX_Unmarshal(b []byte) error { func (m *AddBlackUserToCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddBlackUserToCacheReq.Unmarshal(m, b) return xxx_messageInfo_AddBlackUserToCacheReq.Unmarshal(m, b)
@ -679,7 +679,7 @@ func (m *AddBlackUserToCacheResp) Reset() { *m = AddBlackUserToCacheResp
func (m *AddBlackUserToCacheResp) String() string { return proto.CompactTextString(m) } func (m *AddBlackUserToCacheResp) String() string { return proto.CompactTextString(m) }
func (*AddBlackUserToCacheResp) ProtoMessage() {} func (*AddBlackUserToCacheResp) ProtoMessage() {}
func (*AddBlackUserToCacheResp) Descriptor() ([]byte, []int) { func (*AddBlackUserToCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{14} return fileDescriptor_cache_cf8751e0f76be356, []int{14}
} }
func (m *AddBlackUserToCacheResp) XXX_Unmarshal(b []byte) error { func (m *AddBlackUserToCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddBlackUserToCacheResp.Unmarshal(m, b) return xxx_messageInfo_AddBlackUserToCacheResp.Unmarshal(m, b)
@ -719,7 +719,7 @@ func (m *ReduceBlackUserFromCacheReq) Reset() { *m = ReduceBlackUserFrom
func (m *ReduceBlackUserFromCacheReq) String() string { return proto.CompactTextString(m) } func (m *ReduceBlackUserFromCacheReq) String() string { return proto.CompactTextString(m) }
func (*ReduceBlackUserFromCacheReq) ProtoMessage() {} func (*ReduceBlackUserFromCacheReq) ProtoMessage() {}
func (*ReduceBlackUserFromCacheReq) Descriptor() ([]byte, []int) { func (*ReduceBlackUserFromCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{15} return fileDescriptor_cache_cf8751e0f76be356, []int{15}
} }
func (m *ReduceBlackUserFromCacheReq) XXX_Unmarshal(b []byte) error { func (m *ReduceBlackUserFromCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReduceBlackUserFromCacheReq.Unmarshal(m, b) return xxx_messageInfo_ReduceBlackUserFromCacheReq.Unmarshal(m, b)
@ -771,7 +771,7 @@ func (m *ReduceBlackUserFromCacheResp) Reset() { *m = ReduceBlackUserFro
func (m *ReduceBlackUserFromCacheResp) String() string { return proto.CompactTextString(m) } func (m *ReduceBlackUserFromCacheResp) String() string { return proto.CompactTextString(m) }
func (*ReduceBlackUserFromCacheResp) ProtoMessage() {} func (*ReduceBlackUserFromCacheResp) ProtoMessage() {}
func (*ReduceBlackUserFromCacheResp) Descriptor() ([]byte, []int) { func (*ReduceBlackUserFromCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_d0822f7e413e82c3, []int{16} return fileDescriptor_cache_cf8751e0f76be356, []int{16}
} }
func (m *ReduceBlackUserFromCacheResp) XXX_Unmarshal(b []byte) error { func (m *ReduceBlackUserFromCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReduceBlackUserFromCacheResp.Unmarshal(m, b) return xxx_messageInfo_ReduceBlackUserFromCacheResp.Unmarshal(m, b)
@ -798,6 +798,282 @@ func (m *ReduceBlackUserFromCacheResp) GetCommonResp() *CommonResp {
return nil return nil
} }
type GetGroupMemberIDListFromCacheReq struct {
OperationID string `protobuf:"bytes,1,opt,name=operationID" json:"operationID,omitempty"`
GroupID string `protobuf:"bytes,2,opt,name=groupID" json:"groupID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetGroupMemberIDListFromCacheReq) Reset() { *m = GetGroupMemberIDListFromCacheReq{} }
func (m *GetGroupMemberIDListFromCacheReq) String() string { return proto.CompactTextString(m) }
func (*GetGroupMemberIDListFromCacheReq) ProtoMessage() {}
func (*GetGroupMemberIDListFromCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_cf8751e0f76be356, []int{17}
}
func (m *GetGroupMemberIDListFromCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGroupMemberIDListFromCacheReq.Unmarshal(m, b)
}
func (m *GetGroupMemberIDListFromCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGroupMemberIDListFromCacheReq.Marshal(b, m, deterministic)
}
func (dst *GetGroupMemberIDListFromCacheReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGroupMemberIDListFromCacheReq.Merge(dst, src)
}
func (m *GetGroupMemberIDListFromCacheReq) XXX_Size() int {
return xxx_messageInfo_GetGroupMemberIDListFromCacheReq.Size(m)
}
func (m *GetGroupMemberIDListFromCacheReq) XXX_DiscardUnknown() {
xxx_messageInfo_GetGroupMemberIDListFromCacheReq.DiscardUnknown(m)
}
var xxx_messageInfo_GetGroupMemberIDListFromCacheReq proto.InternalMessageInfo
func (m *GetGroupMemberIDListFromCacheReq) GetOperationID() string {
if m != nil {
return m.OperationID
}
return ""
}
func (m *GetGroupMemberIDListFromCacheReq) GetGroupID() string {
if m != nil {
return m.GroupID
}
return ""
}
type GetGroupMemberIDListFromCacheResp struct {
CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"`
UserIDList []string `protobuf:"bytes,2,rep,name=userIDList" json:"userIDList,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetGroupMemberIDListFromCacheResp) Reset() { *m = GetGroupMemberIDListFromCacheResp{} }
func (m *GetGroupMemberIDListFromCacheResp) String() string { return proto.CompactTextString(m) }
func (*GetGroupMemberIDListFromCacheResp) ProtoMessage() {}
func (*GetGroupMemberIDListFromCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_cf8751e0f76be356, []int{18}
}
func (m *GetGroupMemberIDListFromCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGroupMemberIDListFromCacheResp.Unmarshal(m, b)
}
func (m *GetGroupMemberIDListFromCacheResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGroupMemberIDListFromCacheResp.Marshal(b, m, deterministic)
}
func (dst *GetGroupMemberIDListFromCacheResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGroupMemberIDListFromCacheResp.Merge(dst, src)
}
func (m *GetGroupMemberIDListFromCacheResp) XXX_Size() int {
return xxx_messageInfo_GetGroupMemberIDListFromCacheResp.Size(m)
}
func (m *GetGroupMemberIDListFromCacheResp) XXX_DiscardUnknown() {
xxx_messageInfo_GetGroupMemberIDListFromCacheResp.DiscardUnknown(m)
}
var xxx_messageInfo_GetGroupMemberIDListFromCacheResp proto.InternalMessageInfo
func (m *GetGroupMemberIDListFromCacheResp) GetCommonResp() *CommonResp {
if m != nil {
return m.CommonResp
}
return nil
}
func (m *GetGroupMemberIDListFromCacheResp) GetUserIDList() []string {
if m != nil {
return m.UserIDList
}
return nil
}
type AddGroupMemberToCacheReq struct {
UserIDList []string `protobuf:"bytes,1,rep,name=userIDList" json:"userIDList,omitempty"`
GroupID string `protobuf:"bytes,2,opt,name=groupID" json:"groupID,omitempty"`
OperationID string `protobuf:"bytes,3,opt,name=operationID" json:"operationID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddGroupMemberToCacheReq) Reset() { *m = AddGroupMemberToCacheReq{} }
func (m *AddGroupMemberToCacheReq) String() string { return proto.CompactTextString(m) }
func (*AddGroupMemberToCacheReq) ProtoMessage() {}
func (*AddGroupMemberToCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_cf8751e0f76be356, []int{19}
}
func (m *AddGroupMemberToCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddGroupMemberToCacheReq.Unmarshal(m, b)
}
func (m *AddGroupMemberToCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddGroupMemberToCacheReq.Marshal(b, m, deterministic)
}
func (dst *AddGroupMemberToCacheReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddGroupMemberToCacheReq.Merge(dst, src)
}
func (m *AddGroupMemberToCacheReq) XXX_Size() int {
return xxx_messageInfo_AddGroupMemberToCacheReq.Size(m)
}
func (m *AddGroupMemberToCacheReq) XXX_DiscardUnknown() {
xxx_messageInfo_AddGroupMemberToCacheReq.DiscardUnknown(m)
}
var xxx_messageInfo_AddGroupMemberToCacheReq proto.InternalMessageInfo
func (m *AddGroupMemberToCacheReq) GetUserIDList() []string {
if m != nil {
return m.UserIDList
}
return nil
}
func (m *AddGroupMemberToCacheReq) GetGroupID() string {
if m != nil {
return m.GroupID
}
return ""
}
func (m *AddGroupMemberToCacheReq) GetOperationID() string {
if m != nil {
return m.OperationID
}
return ""
}
type AddGroupMemberToCacheResp struct {
CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddGroupMemberToCacheResp) Reset() { *m = AddGroupMemberToCacheResp{} }
func (m *AddGroupMemberToCacheResp) String() string { return proto.CompactTextString(m) }
func (*AddGroupMemberToCacheResp) ProtoMessage() {}
func (*AddGroupMemberToCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_cf8751e0f76be356, []int{20}
}
func (m *AddGroupMemberToCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddGroupMemberToCacheResp.Unmarshal(m, b)
}
func (m *AddGroupMemberToCacheResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddGroupMemberToCacheResp.Marshal(b, m, deterministic)
}
func (dst *AddGroupMemberToCacheResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddGroupMemberToCacheResp.Merge(dst, src)
}
func (m *AddGroupMemberToCacheResp) XXX_Size() int {
return xxx_messageInfo_AddGroupMemberToCacheResp.Size(m)
}
func (m *AddGroupMemberToCacheResp) XXX_DiscardUnknown() {
xxx_messageInfo_AddGroupMemberToCacheResp.DiscardUnknown(m)
}
var xxx_messageInfo_AddGroupMemberToCacheResp proto.InternalMessageInfo
func (m *AddGroupMemberToCacheResp) GetCommonResp() *CommonResp {
if m != nil {
return m.CommonResp
}
return nil
}
type ReduceGroupMemberFromCacheReq struct {
UserIDList []string `protobuf:"bytes,1,rep,name=userIDList" json:"userIDList,omitempty"`
GroupID string `protobuf:"bytes,2,opt,name=groupID" json:"groupID,omitempty"`
OperationID string `protobuf:"bytes,3,opt,name=operationID" json:"operationID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReduceGroupMemberFromCacheReq) Reset() { *m = ReduceGroupMemberFromCacheReq{} }
func (m *ReduceGroupMemberFromCacheReq) String() string { return proto.CompactTextString(m) }
func (*ReduceGroupMemberFromCacheReq) ProtoMessage() {}
func (*ReduceGroupMemberFromCacheReq) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_cf8751e0f76be356, []int{21}
}
func (m *ReduceGroupMemberFromCacheReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReduceGroupMemberFromCacheReq.Unmarshal(m, b)
}
func (m *ReduceGroupMemberFromCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReduceGroupMemberFromCacheReq.Marshal(b, m, deterministic)
}
func (dst *ReduceGroupMemberFromCacheReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReduceGroupMemberFromCacheReq.Merge(dst, src)
}
func (m *ReduceGroupMemberFromCacheReq) XXX_Size() int {
return xxx_messageInfo_ReduceGroupMemberFromCacheReq.Size(m)
}
func (m *ReduceGroupMemberFromCacheReq) XXX_DiscardUnknown() {
xxx_messageInfo_ReduceGroupMemberFromCacheReq.DiscardUnknown(m)
}
var xxx_messageInfo_ReduceGroupMemberFromCacheReq proto.InternalMessageInfo
func (m *ReduceGroupMemberFromCacheReq) GetUserIDList() []string {
if m != nil {
return m.UserIDList
}
return nil
}
func (m *ReduceGroupMemberFromCacheReq) GetGroupID() string {
if m != nil {
return m.GroupID
}
return ""
}
func (m *ReduceGroupMemberFromCacheReq) GetOperationID() string {
if m != nil {
return m.OperationID
}
return ""
}
type ReduceGroupMemberFromCacheResp struct {
CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReduceGroupMemberFromCacheResp) Reset() { *m = ReduceGroupMemberFromCacheResp{} }
func (m *ReduceGroupMemberFromCacheResp) String() string { return proto.CompactTextString(m) }
func (*ReduceGroupMemberFromCacheResp) ProtoMessage() {}
func (*ReduceGroupMemberFromCacheResp) Descriptor() ([]byte, []int) {
return fileDescriptor_cache_cf8751e0f76be356, []int{22}
}
func (m *ReduceGroupMemberFromCacheResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReduceGroupMemberFromCacheResp.Unmarshal(m, b)
}
func (m *ReduceGroupMemberFromCacheResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReduceGroupMemberFromCacheResp.Marshal(b, m, deterministic)
}
func (dst *ReduceGroupMemberFromCacheResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReduceGroupMemberFromCacheResp.Merge(dst, src)
}
func (m *ReduceGroupMemberFromCacheResp) XXX_Size() int {
return xxx_messageInfo_ReduceGroupMemberFromCacheResp.Size(m)
}
func (m *ReduceGroupMemberFromCacheResp) XXX_DiscardUnknown() {
xxx_messageInfo_ReduceGroupMemberFromCacheResp.DiscardUnknown(m)
}
var xxx_messageInfo_ReduceGroupMemberFromCacheResp proto.InternalMessageInfo
func (m *ReduceGroupMemberFromCacheResp) GetCommonResp() *CommonResp {
if m != nil {
return m.CommonResp
}
return nil
}
func init() { func init() {
proto.RegisterType((*CommonResp)(nil), "cache.CommonResp") proto.RegisterType((*CommonResp)(nil), "cache.CommonResp")
proto.RegisterType((*GetUserInfoFromCacheReq)(nil), "cache.GetUserInfoFromCacheReq") proto.RegisterType((*GetUserInfoFromCacheReq)(nil), "cache.GetUserInfoFromCacheReq")
@ -816,6 +1092,12 @@ func init() {
proto.RegisterType((*AddBlackUserToCacheResp)(nil), "cache.AddBlackUserToCacheResp") proto.RegisterType((*AddBlackUserToCacheResp)(nil), "cache.AddBlackUserToCacheResp")
proto.RegisterType((*ReduceBlackUserFromCacheReq)(nil), "cache.ReduceBlackUserFromCacheReq") proto.RegisterType((*ReduceBlackUserFromCacheReq)(nil), "cache.ReduceBlackUserFromCacheReq")
proto.RegisterType((*ReduceBlackUserFromCacheResp)(nil), "cache.ReduceBlackUserFromCacheResp") proto.RegisterType((*ReduceBlackUserFromCacheResp)(nil), "cache.ReduceBlackUserFromCacheResp")
proto.RegisterType((*GetGroupMemberIDListFromCacheReq)(nil), "cache.GetGroupMemberIDListFromCacheReq")
proto.RegisterType((*GetGroupMemberIDListFromCacheResp)(nil), "cache.GetGroupMemberIDListFromCacheResp")
proto.RegisterType((*AddGroupMemberToCacheReq)(nil), "cache.AddGroupMemberToCacheReq")
proto.RegisterType((*AddGroupMemberToCacheResp)(nil), "cache.AddGroupMemberToCacheResp")
proto.RegisterType((*ReduceGroupMemberFromCacheReq)(nil), "cache.ReduceGroupMemberFromCacheReq")
proto.RegisterType((*ReduceGroupMemberFromCacheResp)(nil), "cache.ReduceGroupMemberFromCacheResp")
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -840,6 +1122,10 @@ type CacheClient interface {
GetBlackIDListFromCache(ctx context.Context, in *GetBlackIDListFromCacheReq, opts ...grpc.CallOption) (*GetBlackIDListFromCacheResp, error) GetBlackIDListFromCache(ctx context.Context, in *GetBlackIDListFromCacheReq, opts ...grpc.CallOption) (*GetBlackIDListFromCacheResp, error)
AddBlackUserToCache(ctx context.Context, in *AddBlackUserToCacheReq, opts ...grpc.CallOption) (*AddBlackUserToCacheResp, error) AddBlackUserToCache(ctx context.Context, in *AddBlackUserToCacheReq, opts ...grpc.CallOption) (*AddBlackUserToCacheResp, error)
ReduceBlackUserFromCache(ctx context.Context, in *ReduceBlackUserFromCacheReq, opts ...grpc.CallOption) (*ReduceBlackUserFromCacheResp, error) ReduceBlackUserFromCache(ctx context.Context, in *ReduceBlackUserFromCacheReq, opts ...grpc.CallOption) (*ReduceBlackUserFromCacheResp, error)
// group
GetGroupMemberIDListFromCache(ctx context.Context, in *GetGroupMemberIDListFromCacheReq, opts ...grpc.CallOption) (*GetGroupMemberIDListFromCacheResp, error)
AddGroupMemberToCache(ctx context.Context, in *AddGroupMemberToCacheReq, opts ...grpc.CallOption) (*AddGroupMemberToCacheResp, error)
ReduceGroupMemberFromCache(ctx context.Context, in *ReduceGroupMemberFromCacheReq, opts ...grpc.CallOption) (*ReduceGroupMemberFromCacheResp, error)
} }
type cacheClient struct { type cacheClient struct {
@ -922,6 +1208,33 @@ func (c *cacheClient) ReduceBlackUserFromCache(ctx context.Context, in *ReduceBl
return out, nil return out, nil
} }
func (c *cacheClient) GetGroupMemberIDListFromCache(ctx context.Context, in *GetGroupMemberIDListFromCacheReq, opts ...grpc.CallOption) (*GetGroupMemberIDListFromCacheResp, error) {
out := new(GetGroupMemberIDListFromCacheResp)
err := grpc.Invoke(ctx, "/cache.cache/GetGroupMemberIDListFromCache", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cacheClient) AddGroupMemberToCache(ctx context.Context, in *AddGroupMemberToCacheReq, opts ...grpc.CallOption) (*AddGroupMemberToCacheResp, error) {
out := new(AddGroupMemberToCacheResp)
err := grpc.Invoke(ctx, "/cache.cache/AddGroupMemberToCache", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cacheClient) ReduceGroupMemberFromCache(ctx context.Context, in *ReduceGroupMemberFromCacheReq, opts ...grpc.CallOption) (*ReduceGroupMemberFromCacheResp, error) {
out := new(ReduceGroupMemberFromCacheResp)
err := grpc.Invoke(ctx, "/cache.cache/ReduceGroupMemberFromCache", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Cache service // Server API for Cache service
type CacheServer interface { type CacheServer interface {
@ -936,6 +1249,10 @@ type CacheServer interface {
GetBlackIDListFromCache(context.Context, *GetBlackIDListFromCacheReq) (*GetBlackIDListFromCacheResp, error) GetBlackIDListFromCache(context.Context, *GetBlackIDListFromCacheReq) (*GetBlackIDListFromCacheResp, error)
AddBlackUserToCache(context.Context, *AddBlackUserToCacheReq) (*AddBlackUserToCacheResp, error) AddBlackUserToCache(context.Context, *AddBlackUserToCacheReq) (*AddBlackUserToCacheResp, error)
ReduceBlackUserFromCache(context.Context, *ReduceBlackUserFromCacheReq) (*ReduceBlackUserFromCacheResp, error) ReduceBlackUserFromCache(context.Context, *ReduceBlackUserFromCacheReq) (*ReduceBlackUserFromCacheResp, error)
// group
GetGroupMemberIDListFromCache(context.Context, *GetGroupMemberIDListFromCacheReq) (*GetGroupMemberIDListFromCacheResp, error)
AddGroupMemberToCache(context.Context, *AddGroupMemberToCacheReq) (*AddGroupMemberToCacheResp, error)
ReduceGroupMemberFromCache(context.Context, *ReduceGroupMemberFromCacheReq) (*ReduceGroupMemberFromCacheResp, error)
} }
func RegisterCacheServer(s *grpc.Server, srv CacheServer) { func RegisterCacheServer(s *grpc.Server, srv CacheServer) {
@ -1086,6 +1403,60 @@ func _Cache_ReduceBlackUserFromCache_Handler(srv interface{}, ctx context.Contex
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Cache_GetGroupMemberIDListFromCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetGroupMemberIDListFromCacheReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CacheServer).GetGroupMemberIDListFromCache(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cache.cache/GetGroupMemberIDListFromCache",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CacheServer).GetGroupMemberIDListFromCache(ctx, req.(*GetGroupMemberIDListFromCacheReq))
}
return interceptor(ctx, in, info, handler)
}
func _Cache_AddGroupMemberToCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddGroupMemberToCacheReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CacheServer).AddGroupMemberToCache(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cache.cache/AddGroupMemberToCache",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CacheServer).AddGroupMemberToCache(ctx, req.(*AddGroupMemberToCacheReq))
}
return interceptor(ctx, in, info, handler)
}
func _Cache_ReduceGroupMemberFromCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ReduceGroupMemberFromCacheReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CacheServer).ReduceGroupMemberFromCache(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cache.cache/ReduceGroupMemberFromCache",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CacheServer).ReduceGroupMemberFromCache(ctx, req.(*ReduceGroupMemberFromCacheReq))
}
return interceptor(ctx, in, info, handler)
}
var _Cache_serviceDesc = grpc.ServiceDesc{ var _Cache_serviceDesc = grpc.ServiceDesc{
ServiceName: "cache.cache", ServiceName: "cache.cache",
HandlerType: (*CacheServer)(nil), HandlerType: (*CacheServer)(nil),
@ -1122,52 +1493,72 @@ var _Cache_serviceDesc = grpc.ServiceDesc{
MethodName: "ReduceBlackUserFromCache", MethodName: "ReduceBlackUserFromCache",
Handler: _Cache_ReduceBlackUserFromCache_Handler, Handler: _Cache_ReduceBlackUserFromCache_Handler,
}, },
{
MethodName: "GetGroupMemberIDListFromCache",
Handler: _Cache_GetGroupMemberIDListFromCache_Handler,
},
{
MethodName: "AddGroupMemberToCache",
Handler: _Cache_AddGroupMemberToCache_Handler,
},
{
MethodName: "ReduceGroupMemberFromCache",
Handler: _Cache_ReduceGroupMemberFromCache_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "cache/cache.proto", Metadata: "cache/cache.proto",
} }
func init() { proto.RegisterFile("cache/cache.proto", fileDescriptor_cache_d0822f7e413e82c3) } func init() { proto.RegisterFile("cache/cache.proto", fileDescriptor_cache_cf8751e0f76be356) }
var fileDescriptor_cache_d0822f7e413e82c3 = []byte{ var fileDescriptor_cache_cf8751e0f76be356 = []byte{
// 619 bytes of a gzipped FileDescriptorProto // 751 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdf, 0x6e, 0xd3, 0x3e, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x6f, 0x4f, 0x13, 0x4f,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xac, 0x2e, 0x07, 0xe8, 0x69, 0xe2, 0x4a, 0x14, 0xe5, 0x0a, 0x3f, 0x2b, 0x60, 0xc5,
0xe9, 0xf6, 0xfd, 0xd3, 0x7b, 0x4d, 0xf9, 0xc3, 0xf5, 0x4a, 0x3c, 0xcf, 0xe6, 0xc4, 0xdf, 0xd4,
0xcb, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x94, 0x59, 0x33, 0x8c, 0x0d, 0x00, 0x00,
} }

@ -88,6 +88,36 @@ message ReduceBlackUserFromCacheResp {
CommonResp commonResp = 1; CommonResp commonResp = 1;
} }
message GetGroupMemberIDListFromCacheReq {
string operationID = 1;
string groupID = 2;
}
message GetGroupMemberIDListFromCacheResp {
CommonResp commonResp = 1;
repeated string userIDList = 2;
}
message AddGroupMemberToCacheReq {
repeated string userIDList = 1;
string groupID = 2;
string operationID = 3;
}
message AddGroupMemberToCacheResp {
CommonResp commonResp = 1;
}
message ReduceGroupMemberFromCacheReq {
repeated string userIDList = 1;
string groupID = 2;
string operationID = 3;
}
message ReduceGroupMemberFromCacheResp {
CommonResp commonResp = 1;
}
service cache{ service cache{
// userInfo // userInfo
rpc GetUserInfoFromCache(GetUserInfoFromCacheReq) returns(GetUserInfoFromCacheResp); rpc GetUserInfoFromCache(GetUserInfoFromCacheReq) returns(GetUserInfoFromCacheResp);
@ -102,6 +132,11 @@ service cache{
rpc GetBlackIDListFromCache(GetBlackIDListFromCacheReq) returns(GetBlackIDListFromCacheResp); rpc GetBlackIDListFromCache(GetBlackIDListFromCacheReq) returns(GetBlackIDListFromCacheResp);
rpc AddBlackUserToCache(AddBlackUserToCacheReq) returns(AddBlackUserToCacheResp); rpc AddBlackUserToCache(AddBlackUserToCacheReq) returns(AddBlackUserToCacheResp);
rpc ReduceBlackUserFromCache(ReduceBlackUserFromCacheReq) returns(ReduceBlackUserFromCacheResp); rpc ReduceBlackUserFromCache(ReduceBlackUserFromCacheReq) returns(ReduceBlackUserFromCacheResp);
// group
rpc GetGroupMemberIDListFromCache(GetGroupMemberIDListFromCacheReq) returns(GetGroupMemberIDListFromCacheResp);
rpc AddGroupMemberToCache(AddGroupMemberToCacheReq) returns(AddGroupMemberToCacheResp);
rpc ReduceGroupMemberFromCache(ReduceGroupMemberFromCacheReq) returns(ReduceGroupMemberFromCacheResp);
} }

Loading…
Cancel
Save