From d1ebcde7254f75f9d6c241e13aea02ab8b994cac Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Sun, 24 Apr 2022 17:42:41 +0800 Subject: [PATCH 1/2] work_moments --- cmd/open_im_cms_api/main.go | 2 +- internal/rpc/office/office.go | 37 +- pkg/base_info/work_moments_struct.go | 9 +- pkg/common/db/mongoModel.go | 38 +- pkg/proto/office/office.pb.go | 3063 -------------------------- pkg/proto/office/office.proto | 21 +- 6 files changed, 68 insertions(+), 3102 deletions(-) delete mode 100644 pkg/proto/office/office.pb.go diff --git a/cmd/open_im_cms_api/main.go b/cmd/open_im_cms_api/main.go index 024439075..20e6380db 100644 --- a/cmd/open_im_cms_api/main.go +++ b/cmd/open_im_cms_api/main.go @@ -14,7 +14,7 @@ func main() { gin.SetMode(gin.ReleaseMode) router := cms_api.NewGinRouter() router.Use(utils.CorsHandler()) - ginPort := flag.Int("port", 8000, "get ginServerPort from cmd,default 10000 as port") + ginPort := flag.Int("port", 8000, "get ginServerPort from cmd,default 8000 as port") fmt.Println("start cms api server, port: ", ginPort) router.Run(":" + strconv.Itoa(*ginPort)) } diff --git a/internal/rpc/office/office.go b/internal/rpc/office/office.go index ea4095f04..e0b54dddf 100644 --- a/internal/rpc/office/office.go +++ b/internal/rpc/office/office.go @@ -303,6 +303,7 @@ func (s *officeServer) CreateOneWorkMoment(_ context.Context, req *pbOffice.Crea UserID: workMoment.UserID, FaceURL: createUser.FaceURL, UserName: createUser.Nickname, + CreateTime: workMoment.CreateTime, } msg.WorkMomentSendNotification(req.OperationID, workMoment.UserID, atUser.UserID, workMomentNotificationMsg) } @@ -375,13 +376,13 @@ func isUserCanSeeWorkMoment(userID string, workMoment db.WorkMoment) bool { func (s *officeServer) LikeOneWorkMoment(_ context.Context, req *pbOffice.LikeOneWorkMomentReq) (resp *pbOffice.LikeOneWorkMomentResp, err error) { log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String()) resp = &pbOffice.LikeOneWorkMomentResp{CommonResp: &pbOffice.CommonResp{}} - userName, err := imdb.GetUserNameByUserID(req.UserID) + user, err := imdb.GetUserByUserID(req.UserID) if err != nil { log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetUserNameByUserID failed", err.Error()) resp.CommonResp = &pbOffice.CommonResp{ErrCode: constant.ErrDB.ErrCode, ErrMsg: constant.ErrDB.ErrMsg} return resp, nil } - workMoment, like, err := db.DB.LikeOneWorkMoment(req.UserID, userName, req.WorkMomentID) + workMoment, like, err := db.DB.LikeOneWorkMoment(req.UserID, user.Nickname, req.WorkMomentID) if err != nil { log.NewError(req.OperationID, utils.GetSelfFuncName(), "LikeOneWorkMoment failed ", err.Error()) resp.CommonResp = &pbOffice.CommonResp{ErrCode: constant.ErrDB.ErrCode, ErrMsg: constant.ErrDB.ErrMsg} @@ -391,9 +392,10 @@ func (s *officeServer) LikeOneWorkMoment(_ context.Context, req *pbOffice.LikeOn NotificationMsgType: constant.WorkMomentLikeNotification, WorkMomentID: workMoment.WorkMomentID, WorkMomentContent: workMoment.Content, - UserID: workMoment.UserID, - FaceURL: workMoment.FaceURL, - UserName: workMoment.UserName, + UserID: user.UserID, + FaceURL: user.FaceURL, + UserName: user.Nickname, + CreateTime: int32(time.Now().Unix()), } // send notification if like { @@ -442,16 +444,11 @@ func (s *officeServer) CommentOneWorkMoment(_ context.Context, req *pbOffice.Com UserID: workMoment.UserID, FaceURL: workMoment.FaceURL, UserName: workMoment.UserName, - Comment: &pbOffice.Comment{ - UserID: comment.UserID, - UserName: comment.UserName, - FaceURL: commentUser.FaceURL, - ReplyUserID: comment.ReplyUserID, - ReplyUserName: comment.ReplyUserName, - ContentID: comment.ContentID, - Content: comment.Content, - CreateTime: comment.CreateTime, - }, + ReplyUserID: comment.ReplyUserID, + ReplyUserName: comment.ReplyUserName, + ContentID: comment.ContentID, + Content: comment.Content, + CreateTime: comment.CreateTime, } msg.WorkMomentSendNotification(req.OperationID, req.UserID, workMoment.UserID, workMomentNotificationMsg) if req.ReplyUserID != "" { @@ -488,10 +485,14 @@ func (s *officeServer) GetWorkMomentByID(_ context.Context, req *pbOffice.GetWor func (s *officeServer) GetUserWorkMoments(_ context.Context, req *pbOffice.GetUserWorkMomentsReq) (resp *pbOffice.GetUserWorkMomentsResp, err error) { log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String()) resp = &pbOffice.GetUserWorkMomentsResp{CommonResp: &pbOffice.CommonResp{}, WorkMoments: []*pbOffice.WorkMoment{}} - //resp.WorkMoments = make([]*pbOffice.WorkMoment, 0) - workMoments, err := db.DB.GetUserWorkMoments(req.UserID, req.Pagination.ShowNumber, req.Pagination.PageNumber) + var workMoments []db.WorkMoment + if req.UserID == req.OpUserID { + workMoments, err = db.DB.GetUserSelfWorkMoments(req.UserID, req.Pagination.ShowNumber, req.Pagination.PageNumber) + } else { + workMoments, err = db.DB.GetUserWorkMoments(req.OpUserID, req.UserID, req.Pagination.ShowNumber, req.Pagination.PageNumber) + } if err != nil { - log.NewError(req.OperationID, utils.GetSelfFuncName(), err) + log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetUserWorkMoments failed", err.Error()) resp.CommonResp = &pbOffice.CommonResp{ErrCode: constant.ErrDB.ErrCode, ErrMsg: constant.ErrDB.ErrMsg} return resp, nil } diff --git a/pkg/base_info/work_moments_struct.go b/pkg/base_info/work_moments_struct.go index ecc80f834..9ed09a832 100644 --- a/pkg/base_info/work_moments_struct.go +++ b/pkg/base_info/work_moments_struct.go @@ -50,13 +50,10 @@ type WorkMoment struct { Content string `json:"content"` LikeUserList []*WorkMomentUser `json:"likeUsers"` Comments []*Comment `json:"comments"` - FaceURL string `json:"faceUrl"` + FaceURL string `json:"faceURL"` UserName string `json:"userName"` - //Permission int32 `json:"permission"` - //PermissionUserIDList []string `json:"permissionUserIDList"` - //PermissionGroupIDList []string `json:"permissionGroupIDList"` - AtUserList []*WorkMomentUser `json:"atUsers"` - CreateTime int32 `json:"createTime"` + AtUserList []*WorkMomentUser `json:"atUsers"` + CreateTime int32 `json:"createTime"` } type WorkMomentUser struct { diff --git a/pkg/common/db/mongoModel.go b/pkg/common/db/mongoModel.go index f44799ecf..14adb3057 100644 --- a/pkg/common/db/mongoModel.go +++ b/pkg/common/db/mongoModel.go @@ -11,12 +11,14 @@ import ( "errors" "fmt" "github.com/gogo/protobuf/sortkeys" + "go.etcd.io/etcd/clientv3" + "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo/options" "math/rand" //"github.com/garyburd/redigo/redis" "github.com/golang/protobuf/proto" - "gopkg.in/mgo.v2/bson" + "go.mongodb.org/mongo-driver/bson" "strconv" "time" @@ -659,7 +661,7 @@ func (d *DataBases) CommentOneWorkMoment(comment *Comment, workMomentID string) return workMoment, err } -func (d *DataBases) GetUserWorkMoments(userID string, showNumber, pageNumber int32) ([]WorkMoment, error) { +func (d *DataBases) GetUserSelfWorkMoments(userID string, showNumber, pageNumber int32) ([]WorkMoment, error) { ctx, _ := context.WithTimeout(context.Background(), time.Duration(config.Config.Mongo.DBTimeout)*time.Second) c := d.mongoClient.Database(config.Config.Mongo.DBDatabase).Collection(cWorkMoment) var workMomentList []WorkMoment @@ -672,15 +674,39 @@ func (d *DataBases) GetUserWorkMoments(userID string, showNumber, pageNumber int return workMomentList, err } +func (d *DataBases) GetUserWorkMoments(opUserID, userID string, showNumber, pageNumber int32) ([]WorkMoment, error) { + ctx, _ := context.WithTimeout(context.Background(), time.Duration(config.Config.Mongo.DBTimeout)*time.Second) + c := d.mongoClient.Database(config.Config.Mongo.DBDatabase).Collection(cWorkMoment) + var workMomentList []WorkMoment + findOpts := options.Find().SetLimit(int64(showNumber)).SetSkip(int64(showNumber) * (int64(pageNumber) - 1)).SetSort(bson.M{"create_time": -1}) + result, err := c.Find(ctx, bson.D{ // 等价条件: select * from + {"user_id", userID}, + {"$or", bson.A{ + bson.D{{"permission", constant.WorkMomentPermissionCantSee}, {opUserID, bson.D{{"$in", "permission_user_id_list"}}}}, + bson.D{{"permission", constant.WorkMomentPermissionCanSee}, {opUserID, bson.D{{"$in", "permission_user_id_list"}}}}, + bson.D{{"permission", constant.WorkMomentPublic}}, + }}, + }, findOpts) + if err != nil { + return workMomentList, nil + } + err = result.All(ctx, &workMomentList) + return workMomentList, err +} + func (d *DataBases) GetUserFriendWorkMoments(friendIDList []*string, showNumber, pageNumber int32, userID string) ([]WorkMoment, error) { ctx, _ := context.WithTimeout(context.Background(), time.Duration(config.Config.Mongo.DBTimeout)*time.Second) c := d.mongoClient.Database(config.Config.Mongo.DBDatabase).Collection(cWorkMoment) var workMomentList []WorkMoment findOpts := options.Find().SetLimit(int64(showNumber)).SetSkip(int64(showNumber) * (int64(pageNumber) - 1)).SetSort(bson.M{"create_time": -1}) - result, err := c.Find(ctx, - bson.M{"user_id": friendIDList, "$or": bson.M{"who_can_see_user_id_list": bson.M{"$elemMatch": bson.M{"$eq": userID}}, - "who_cant_see_user_id_list": bson.M{"$nin": userID}}, - }, findOpts) + result, err := c.Find(ctx, bson.D{ // 等价条件: select * from t where user_id in friend_id_list and () or () or (); + {"user_id", bson.D{{"$in", friendIDList}}}, + {"$or", bson.A{ + bson.D{{"permission", constant.WorkMomentPermissionCantSee}, {userID, bson.D{{"$in", "permission_user_id_list"}}}}, + bson.D{{"permission", constant.WorkMomentPermissionCanSee}, {userID, bson.D{{"$in", "permission_user_id_list"}}}}, + bson.D{{"permission", constant.WorkMomentPublic}}, + }}, + }, findOpts) if err != nil { return workMomentList, err } diff --git a/pkg/proto/office/office.pb.go b/pkg/proto/office/office.pb.go deleted file mode 100644 index f0a67fd91..000000000 --- a/pkg/proto/office/office.pb.go +++ /dev/null @@ -1,3063 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: office/office.proto - -package office // import "./office" - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import sdk_ws "Open_IM/pkg/proto/sdk_ws" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type CommonResp struct { - ErrCode int32 `protobuf:"varint,1,opt,name=errCode" json:"errCode,omitempty"` - ErrMsg string `protobuf:"bytes,2,opt,name=errMsg" json:"errMsg,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommonResp) Reset() { *m = CommonResp{} } -func (m *CommonResp) String() string { return proto.CompactTextString(m) } -func (*CommonResp) ProtoMessage() {} -func (*CommonResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{0} -} -func (m *CommonResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommonResp.Unmarshal(m, b) -} -func (m *CommonResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommonResp.Marshal(b, m, deterministic) -} -func (dst *CommonResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommonResp.Merge(dst, src) -} -func (m *CommonResp) XXX_Size() int { - return xxx_messageInfo_CommonResp.Size(m) -} -func (m *CommonResp) XXX_DiscardUnknown() { - xxx_messageInfo_CommonResp.DiscardUnknown(m) -} - -var xxx_messageInfo_CommonResp proto.InternalMessageInfo - -func (m *CommonResp) GetErrCode() int32 { - if m != nil { - return m.ErrCode - } - return 0 -} - -func (m *CommonResp) GetErrMsg() string { - if m != nil { - return m.ErrMsg - } - return "" -} - -type TagUser struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName" json:"userName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagUser) Reset() { *m = TagUser{} } -func (m *TagUser) String() string { return proto.CompactTextString(m) } -func (*TagUser) ProtoMessage() {} -func (*TagUser) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{1} -} -func (m *TagUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagUser.Unmarshal(m, b) -} -func (m *TagUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagUser.Marshal(b, m, deterministic) -} -func (dst *TagUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagUser.Merge(dst, src) -} -func (m *TagUser) XXX_Size() int { - return xxx_messageInfo_TagUser.Size(m) -} -func (m *TagUser) XXX_DiscardUnknown() { - xxx_messageInfo_TagUser.DiscardUnknown(m) -} - -var xxx_messageInfo_TagUser proto.InternalMessageInfo - -func (m *TagUser) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *TagUser) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -type Tag struct { - TagID string `protobuf:"bytes,1,opt,name=tagID" json:"tagID,omitempty"` - TagName string `protobuf:"bytes,2,opt,name=tagName" json:"tagName,omitempty"` - UserList []*TagUser `protobuf:"bytes,3,rep,name=userList" json:"userList,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Tag) Reset() { *m = Tag{} } -func (m *Tag) String() string { return proto.CompactTextString(m) } -func (*Tag) ProtoMessage() {} -func (*Tag) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{2} -} -func (m *Tag) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Tag.Unmarshal(m, b) -} -func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Tag.Marshal(b, m, deterministic) -} -func (dst *Tag) XXX_Merge(src proto.Message) { - xxx_messageInfo_Tag.Merge(dst, src) -} -func (m *Tag) XXX_Size() int { - return xxx_messageInfo_Tag.Size(m) -} -func (m *Tag) XXX_DiscardUnknown() { - xxx_messageInfo_Tag.DiscardUnknown(m) -} - -var xxx_messageInfo_Tag proto.InternalMessageInfo - -func (m *Tag) GetTagID() string { - if m != nil { - return m.TagID - } - return "" -} - -func (m *Tag) GetTagName() string { - if m != nil { - return m.TagName - } - return "" -} - -func (m *Tag) GetUserList() []*TagUser { - if m != nil { - return m.UserList - } - return nil -} - -type GetUserTagsReq struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetUserTagsReq) Reset() { *m = GetUserTagsReq{} } -func (m *GetUserTagsReq) String() string { return proto.CompactTextString(m) } -func (*GetUserTagsReq) ProtoMessage() {} -func (*GetUserTagsReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{3} -} -func (m *GetUserTagsReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserTagsReq.Unmarshal(m, b) -} -func (m *GetUserTagsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserTagsReq.Marshal(b, m, deterministic) -} -func (dst *GetUserTagsReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserTagsReq.Merge(dst, src) -} -func (m *GetUserTagsReq) XXX_Size() int { - return xxx_messageInfo_GetUserTagsReq.Size(m) -} -func (m *GetUserTagsReq) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserTagsReq.DiscardUnknown(m) -} - -var xxx_messageInfo_GetUserTagsReq proto.InternalMessageInfo - -func (m *GetUserTagsReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *GetUserTagsReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type GetUserTagsResp struct { - CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"` - Tags []*Tag `protobuf:"bytes,2,rep,name=tags" json:"tags,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetUserTagsResp) Reset() { *m = GetUserTagsResp{} } -func (m *GetUserTagsResp) String() string { return proto.CompactTextString(m) } -func (*GetUserTagsResp) ProtoMessage() {} -func (*GetUserTagsResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{4} -} -func (m *GetUserTagsResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserTagsResp.Unmarshal(m, b) -} -func (m *GetUserTagsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserTagsResp.Marshal(b, m, deterministic) -} -func (dst *GetUserTagsResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserTagsResp.Merge(dst, src) -} -func (m *GetUserTagsResp) XXX_Size() int { - return xxx_messageInfo_GetUserTagsResp.Size(m) -} -func (m *GetUserTagsResp) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserTagsResp.DiscardUnknown(m) -} - -var xxx_messageInfo_GetUserTagsResp proto.InternalMessageInfo - -func (m *GetUserTagsResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -func (m *GetUserTagsResp) GetTags() []*Tag { - if m != nil { - return m.Tags - } - return nil -} - -type CreateTagReq struct { - TagName string `protobuf:"bytes,1,opt,name=tagName" json:"tagName,omitempty"` - UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,omitempty"` - UserIDList []string `protobuf:"bytes,3,rep,name=userIDList" json:"userIDList,omitempty"` - OperationID string `protobuf:"bytes,4,opt,name=operationID" json:"operationID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateTagReq) Reset() { *m = CreateTagReq{} } -func (m *CreateTagReq) String() string { return proto.CompactTextString(m) } -func (*CreateTagReq) ProtoMessage() {} -func (*CreateTagReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{5} -} -func (m *CreateTagReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateTagReq.Unmarshal(m, b) -} -func (m *CreateTagReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateTagReq.Marshal(b, m, deterministic) -} -func (dst *CreateTagReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateTagReq.Merge(dst, src) -} -func (m *CreateTagReq) XXX_Size() int { - return xxx_messageInfo_CreateTagReq.Size(m) -} -func (m *CreateTagReq) XXX_DiscardUnknown() { - xxx_messageInfo_CreateTagReq.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateTagReq proto.InternalMessageInfo - -func (m *CreateTagReq) GetTagName() string { - if m != nil { - return m.TagName - } - return "" -} - -func (m *CreateTagReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *CreateTagReq) GetUserIDList() []string { - if m != nil { - return m.UserIDList - } - return nil -} - -func (m *CreateTagReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type CreateTagResp 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 *CreateTagResp) Reset() { *m = CreateTagResp{} } -func (m *CreateTagResp) String() string { return proto.CompactTextString(m) } -func (*CreateTagResp) ProtoMessage() {} -func (*CreateTagResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{6} -} -func (m *CreateTagResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateTagResp.Unmarshal(m, b) -} -func (m *CreateTagResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateTagResp.Marshal(b, m, deterministic) -} -func (dst *CreateTagResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateTagResp.Merge(dst, src) -} -func (m *CreateTagResp) XXX_Size() int { - return xxx_messageInfo_CreateTagResp.Size(m) -} -func (m *CreateTagResp) XXX_DiscardUnknown() { - xxx_messageInfo_CreateTagResp.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateTagResp proto.InternalMessageInfo - -func (m *CreateTagResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -type DeleteTagReq struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - TagID string `protobuf:"bytes,2,opt,name=tagID" json:"tagID,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 *DeleteTagReq) Reset() { *m = DeleteTagReq{} } -func (m *DeleteTagReq) String() string { return proto.CompactTextString(m) } -func (*DeleteTagReq) ProtoMessage() {} -func (*DeleteTagReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{7} -} -func (m *DeleteTagReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteTagReq.Unmarshal(m, b) -} -func (m *DeleteTagReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteTagReq.Marshal(b, m, deterministic) -} -func (dst *DeleteTagReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteTagReq.Merge(dst, src) -} -func (m *DeleteTagReq) XXX_Size() int { - return xxx_messageInfo_DeleteTagReq.Size(m) -} -func (m *DeleteTagReq) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteTagReq.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteTagReq proto.InternalMessageInfo - -func (m *DeleteTagReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *DeleteTagReq) GetTagID() string { - if m != nil { - return m.TagID - } - return "" -} - -func (m *DeleteTagReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type DeleteTagResp 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 *DeleteTagResp) Reset() { *m = DeleteTagResp{} } -func (m *DeleteTagResp) String() string { return proto.CompactTextString(m) } -func (*DeleteTagResp) ProtoMessage() {} -func (*DeleteTagResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{8} -} -func (m *DeleteTagResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteTagResp.Unmarshal(m, b) -} -func (m *DeleteTagResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteTagResp.Marshal(b, m, deterministic) -} -func (dst *DeleteTagResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteTagResp.Merge(dst, src) -} -func (m *DeleteTagResp) XXX_Size() int { - return xxx_messageInfo_DeleteTagResp.Size(m) -} -func (m *DeleteTagResp) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteTagResp.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteTagResp proto.InternalMessageInfo - -func (m *DeleteTagResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -type SetTagReq struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - TagID string `protobuf:"bytes,2,opt,name=tagID" json:"tagID,omitempty"` - NewName string `protobuf:"bytes,3,opt,name=newName" json:"newName,omitempty"` - IncreaseUserIDList []string `protobuf:"bytes,4,rep,name=increaseUserIDList" json:"increaseUserIDList,omitempty"` - ReduceUserIDList []string `protobuf:"bytes,5,rep,name=reduceUserIDList" json:"reduceUserIDList,omitempty"` - OperationID string `protobuf:"bytes,6,opt,name=operationID" json:"operationID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetTagReq) Reset() { *m = SetTagReq{} } -func (m *SetTagReq) String() string { return proto.CompactTextString(m) } -func (*SetTagReq) ProtoMessage() {} -func (*SetTagReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{9} -} -func (m *SetTagReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetTagReq.Unmarshal(m, b) -} -func (m *SetTagReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetTagReq.Marshal(b, m, deterministic) -} -func (dst *SetTagReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetTagReq.Merge(dst, src) -} -func (m *SetTagReq) XXX_Size() int { - return xxx_messageInfo_SetTagReq.Size(m) -} -func (m *SetTagReq) XXX_DiscardUnknown() { - xxx_messageInfo_SetTagReq.DiscardUnknown(m) -} - -var xxx_messageInfo_SetTagReq proto.InternalMessageInfo - -func (m *SetTagReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *SetTagReq) GetTagID() string { - if m != nil { - return m.TagID - } - return "" -} - -func (m *SetTagReq) GetNewName() string { - if m != nil { - return m.NewName - } - return "" -} - -func (m *SetTagReq) GetIncreaseUserIDList() []string { - if m != nil { - return m.IncreaseUserIDList - } - return nil -} - -func (m *SetTagReq) GetReduceUserIDList() []string { - if m != nil { - return m.ReduceUserIDList - } - return nil -} - -func (m *SetTagReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type SetTagResp 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 *SetTagResp) Reset() { *m = SetTagResp{} } -func (m *SetTagResp) String() string { return proto.CompactTextString(m) } -func (*SetTagResp) ProtoMessage() {} -func (*SetTagResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{10} -} -func (m *SetTagResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetTagResp.Unmarshal(m, b) -} -func (m *SetTagResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetTagResp.Marshal(b, m, deterministic) -} -func (dst *SetTagResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetTagResp.Merge(dst, src) -} -func (m *SetTagResp) XXX_Size() int { - return xxx_messageInfo_SetTagResp.Size(m) -} -func (m *SetTagResp) XXX_DiscardUnknown() { - xxx_messageInfo_SetTagResp.DiscardUnknown(m) -} - -var xxx_messageInfo_SetTagResp proto.InternalMessageInfo - -func (m *SetTagResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -type SendMsg2TagReq struct { - TagList []string `protobuf:"bytes,1,rep,name=tagList" json:"tagList,omitempty"` - UserList []string `protobuf:"bytes,2,rep,name=UserList" json:"UserList,omitempty"` - GroupList []string `protobuf:"bytes,3,rep,name=GroupList" json:"GroupList,omitempty"` - SendID string `protobuf:"bytes,4,opt,name=sendID" json:"sendID,omitempty"` - SenderPlatformID int32 `protobuf:"varint,5,opt,name=senderPlatformID" json:"senderPlatformID,omitempty"` - Content string `protobuf:"bytes,6,opt,name=content" json:"content,omitempty"` - OperationID string `protobuf:"bytes,7,opt,name=operationID" json:"operationID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SendMsg2TagReq) Reset() { *m = SendMsg2TagReq{} } -func (m *SendMsg2TagReq) String() string { return proto.CompactTextString(m) } -func (*SendMsg2TagReq) ProtoMessage() {} -func (*SendMsg2TagReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{11} -} -func (m *SendMsg2TagReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SendMsg2TagReq.Unmarshal(m, b) -} -func (m *SendMsg2TagReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SendMsg2TagReq.Marshal(b, m, deterministic) -} -func (dst *SendMsg2TagReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_SendMsg2TagReq.Merge(dst, src) -} -func (m *SendMsg2TagReq) XXX_Size() int { - return xxx_messageInfo_SendMsg2TagReq.Size(m) -} -func (m *SendMsg2TagReq) XXX_DiscardUnknown() { - xxx_messageInfo_SendMsg2TagReq.DiscardUnknown(m) -} - -var xxx_messageInfo_SendMsg2TagReq proto.InternalMessageInfo - -func (m *SendMsg2TagReq) GetTagList() []string { - if m != nil { - return m.TagList - } - return nil -} - -func (m *SendMsg2TagReq) GetUserList() []string { - if m != nil { - return m.UserList - } - return nil -} - -func (m *SendMsg2TagReq) GetGroupList() []string { - if m != nil { - return m.GroupList - } - return nil -} - -func (m *SendMsg2TagReq) GetSendID() string { - if m != nil { - return m.SendID - } - return "" -} - -func (m *SendMsg2TagReq) GetSenderPlatformID() int32 { - if m != nil { - return m.SenderPlatformID - } - return 0 -} - -func (m *SendMsg2TagReq) GetContent() string { - if m != nil { - return m.Content - } - return "" -} - -func (m *SendMsg2TagReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type SendMsg2TagResp 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 *SendMsg2TagResp) Reset() { *m = SendMsg2TagResp{} } -func (m *SendMsg2TagResp) String() string { return proto.CompactTextString(m) } -func (*SendMsg2TagResp) ProtoMessage() {} -func (*SendMsg2TagResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{12} -} -func (m *SendMsg2TagResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SendMsg2TagResp.Unmarshal(m, b) -} -func (m *SendMsg2TagResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SendMsg2TagResp.Marshal(b, m, deterministic) -} -func (dst *SendMsg2TagResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_SendMsg2TagResp.Merge(dst, src) -} -func (m *SendMsg2TagResp) XXX_Size() int { - return xxx_messageInfo_SendMsg2TagResp.Size(m) -} -func (m *SendMsg2TagResp) XXX_DiscardUnknown() { - xxx_messageInfo_SendMsg2TagResp.DiscardUnknown(m) -} - -var xxx_messageInfo_SendMsg2TagResp proto.InternalMessageInfo - -func (m *SendMsg2TagResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -type GetTagSendLogsReq struct { - Pagination *sdk_ws.RequestPagination `protobuf:"bytes,1,opt,name=Pagination" json:"Pagination,omitempty"` - UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,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 *GetTagSendLogsReq) Reset() { *m = GetTagSendLogsReq{} } -func (m *GetTagSendLogsReq) String() string { return proto.CompactTextString(m) } -func (*GetTagSendLogsReq) ProtoMessage() {} -func (*GetTagSendLogsReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{13} -} -func (m *GetTagSendLogsReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTagSendLogsReq.Unmarshal(m, b) -} -func (m *GetTagSendLogsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTagSendLogsReq.Marshal(b, m, deterministic) -} -func (dst *GetTagSendLogsReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTagSendLogsReq.Merge(dst, src) -} -func (m *GetTagSendLogsReq) XXX_Size() int { - return xxx_messageInfo_GetTagSendLogsReq.Size(m) -} -func (m *GetTagSendLogsReq) XXX_DiscardUnknown() { - xxx_messageInfo_GetTagSendLogsReq.DiscardUnknown(m) -} - -var xxx_messageInfo_GetTagSendLogsReq proto.InternalMessageInfo - -func (m *GetTagSendLogsReq) GetPagination() *sdk_ws.RequestPagination { - if m != nil { - return m.Pagination - } - return nil -} - -func (m *GetTagSendLogsReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *GetTagSendLogsReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type TagSendLog struct { - UserList []*TagUser `protobuf:"bytes,1,rep,name=userList" json:"userList,omitempty"` - Content string `protobuf:"bytes,2,opt,name=content" json:"content,omitempty"` - SendTime int64 `protobuf:"varint,3,opt,name=sendTime" json:"sendTime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagSendLog) Reset() { *m = TagSendLog{} } -func (m *TagSendLog) String() string { return proto.CompactTextString(m) } -func (*TagSendLog) ProtoMessage() {} -func (*TagSendLog) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{14} -} -func (m *TagSendLog) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagSendLog.Unmarshal(m, b) -} -func (m *TagSendLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagSendLog.Marshal(b, m, deterministic) -} -func (dst *TagSendLog) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagSendLog.Merge(dst, src) -} -func (m *TagSendLog) XXX_Size() int { - return xxx_messageInfo_TagSendLog.Size(m) -} -func (m *TagSendLog) XXX_DiscardUnknown() { - xxx_messageInfo_TagSendLog.DiscardUnknown(m) -} - -var xxx_messageInfo_TagSendLog proto.InternalMessageInfo - -func (m *TagSendLog) GetUserList() []*TagUser { - if m != nil { - return m.UserList - } - return nil -} - -func (m *TagSendLog) GetContent() string { - if m != nil { - return m.Content - } - return "" -} - -func (m *TagSendLog) GetSendTime() int64 { - if m != nil { - return m.SendTime - } - return 0 -} - -type GetTagSendLogsResp struct { - CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"` - Pagination *sdk_ws.ResponsePagination `protobuf:"bytes,2,opt,name=Pagination" json:"Pagination,omitempty"` - TagSendLogs []*TagSendLog `protobuf:"bytes,3,rep,name=tagSendLogs" json:"tagSendLogs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetTagSendLogsResp) Reset() { *m = GetTagSendLogsResp{} } -func (m *GetTagSendLogsResp) String() string { return proto.CompactTextString(m) } -func (*GetTagSendLogsResp) ProtoMessage() {} -func (*GetTagSendLogsResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{15} -} -func (m *GetTagSendLogsResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTagSendLogsResp.Unmarshal(m, b) -} -func (m *GetTagSendLogsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTagSendLogsResp.Marshal(b, m, deterministic) -} -func (dst *GetTagSendLogsResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTagSendLogsResp.Merge(dst, src) -} -func (m *GetTagSendLogsResp) XXX_Size() int { - return xxx_messageInfo_GetTagSendLogsResp.Size(m) -} -func (m *GetTagSendLogsResp) XXX_DiscardUnknown() { - xxx_messageInfo_GetTagSendLogsResp.DiscardUnknown(m) -} - -var xxx_messageInfo_GetTagSendLogsResp proto.InternalMessageInfo - -func (m *GetTagSendLogsResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -func (m *GetTagSendLogsResp) GetPagination() *sdk_ws.ResponsePagination { - if m != nil { - return m.Pagination - } - return nil -} - -func (m *GetTagSendLogsResp) GetTagSendLogs() []*TagSendLog { - if m != nil { - return m.TagSendLogs - } - return nil -} - -type GetUserTagByIDReq struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - TagID string `protobuf:"bytes,2,opt,name=tagID" json:"tagID,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 *GetUserTagByIDReq) Reset() { *m = GetUserTagByIDReq{} } -func (m *GetUserTagByIDReq) String() string { return proto.CompactTextString(m) } -func (*GetUserTagByIDReq) ProtoMessage() {} -func (*GetUserTagByIDReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{16} -} -func (m *GetUserTagByIDReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserTagByIDReq.Unmarshal(m, b) -} -func (m *GetUserTagByIDReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserTagByIDReq.Marshal(b, m, deterministic) -} -func (dst *GetUserTagByIDReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserTagByIDReq.Merge(dst, src) -} -func (m *GetUserTagByIDReq) XXX_Size() int { - return xxx_messageInfo_GetUserTagByIDReq.Size(m) -} -func (m *GetUserTagByIDReq) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserTagByIDReq.DiscardUnknown(m) -} - -var xxx_messageInfo_GetUserTagByIDReq proto.InternalMessageInfo - -func (m *GetUserTagByIDReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *GetUserTagByIDReq) GetTagID() string { - if m != nil { - return m.TagID - } - return "" -} - -func (m *GetUserTagByIDReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type GetUserTagByIDResp struct { - CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"` - Tag *Tag `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetUserTagByIDResp) Reset() { *m = GetUserTagByIDResp{} } -func (m *GetUserTagByIDResp) String() string { return proto.CompactTextString(m) } -func (*GetUserTagByIDResp) ProtoMessage() {} -func (*GetUserTagByIDResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{17} -} -func (m *GetUserTagByIDResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserTagByIDResp.Unmarshal(m, b) -} -func (m *GetUserTagByIDResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserTagByIDResp.Marshal(b, m, deterministic) -} -func (dst *GetUserTagByIDResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserTagByIDResp.Merge(dst, src) -} -func (m *GetUserTagByIDResp) XXX_Size() int { - return xxx_messageInfo_GetUserTagByIDResp.Size(m) -} -func (m *GetUserTagByIDResp) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserTagByIDResp.DiscardUnknown(m) -} - -var xxx_messageInfo_GetUserTagByIDResp proto.InternalMessageInfo - -func (m *GetUserTagByIDResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -func (m *GetUserTagByIDResp) GetTag() *Tag { - if m != nil { - return m.Tag - } - return nil -} - -type LikeUser struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName" json:"userName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LikeUser) Reset() { *m = LikeUser{} } -func (m *LikeUser) String() string { return proto.CompactTextString(m) } -func (*LikeUser) ProtoMessage() {} -func (*LikeUser) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{18} -} -func (m *LikeUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LikeUser.Unmarshal(m, b) -} -func (m *LikeUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LikeUser.Marshal(b, m, deterministic) -} -func (dst *LikeUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_LikeUser.Merge(dst, src) -} -func (m *LikeUser) XXX_Size() int { - return xxx_messageInfo_LikeUser.Size(m) -} -func (m *LikeUser) XXX_DiscardUnknown() { - xxx_messageInfo_LikeUser.DiscardUnknown(m) -} - -var xxx_messageInfo_LikeUser proto.InternalMessageInfo - -func (m *LikeUser) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *LikeUser) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -type NotificationUser struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName" json:"userName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NotificationUser) Reset() { *m = NotificationUser{} } -func (m *NotificationUser) String() string { return proto.CompactTextString(m) } -func (*NotificationUser) ProtoMessage() {} -func (*NotificationUser) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{19} -} -func (m *NotificationUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NotificationUser.Unmarshal(m, b) -} -func (m *NotificationUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NotificationUser.Marshal(b, m, deterministic) -} -func (dst *NotificationUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotificationUser.Merge(dst, src) -} -func (m *NotificationUser) XXX_Size() int { - return xxx_messageInfo_NotificationUser.Size(m) -} -func (m *NotificationUser) XXX_DiscardUnknown() { - xxx_messageInfo_NotificationUser.DiscardUnknown(m) -} - -var xxx_messageInfo_NotificationUser proto.InternalMessageInfo - -func (m *NotificationUser) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *NotificationUser) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -type Comment struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName" json:"userName,omitempty"` - FaceURL string `protobuf:"bytes,3,opt,name=faceURL" json:"faceURL,omitempty"` - ReplyUserID string `protobuf:"bytes,4,opt,name=replyUserID" json:"replyUserID,omitempty"` - ReplyUserName string `protobuf:"bytes,5,opt,name=replyUserName" json:"replyUserName,omitempty"` - ContentID string `protobuf:"bytes,6,opt,name=contentID" json:"contentID,omitempty"` - Content string `protobuf:"bytes,7,opt,name=content" json:"content,omitempty"` - CreateTime int32 `protobuf:"varint,8,opt,name=createTime" json:"createTime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Comment) Reset() { *m = Comment{} } -func (m *Comment) String() string { return proto.CompactTextString(m) } -func (*Comment) ProtoMessage() {} -func (*Comment) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{20} -} -func (m *Comment) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Comment.Unmarshal(m, b) -} -func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Comment.Marshal(b, m, deterministic) -} -func (dst *Comment) XXX_Merge(src proto.Message) { - xxx_messageInfo_Comment.Merge(dst, src) -} -func (m *Comment) XXX_Size() int { - return xxx_messageInfo_Comment.Size(m) -} -func (m *Comment) XXX_DiscardUnknown() { - xxx_messageInfo_Comment.DiscardUnknown(m) -} - -var xxx_messageInfo_Comment proto.InternalMessageInfo - -func (m *Comment) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *Comment) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *Comment) GetFaceURL() string { - if m != nil { - return m.FaceURL - } - return "" -} - -func (m *Comment) GetReplyUserID() string { - if m != nil { - return m.ReplyUserID - } - return "" -} - -func (m *Comment) GetReplyUserName() string { - if m != nil { - return m.ReplyUserName - } - return "" -} - -func (m *Comment) GetContentID() string { - if m != nil { - return m.ContentID - } - return "" -} - -func (m *Comment) GetContent() string { - if m != nil { - return m.Content - } - return "" -} - -func (m *Comment) GetCreateTime() int32 { - if m != nil { - return m.CreateTime - } - return 0 -} - -type PermissionGroup struct { - GroupName string `protobuf:"bytes,1,opt,name=groupName" json:"groupName,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 *PermissionGroup) Reset() { *m = PermissionGroup{} } -func (m *PermissionGroup) String() string { return proto.CompactTextString(m) } -func (*PermissionGroup) ProtoMessage() {} -func (*PermissionGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{21} -} -func (m *PermissionGroup) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PermissionGroup.Unmarshal(m, b) -} -func (m *PermissionGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PermissionGroup.Marshal(b, m, deterministic) -} -func (dst *PermissionGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_PermissionGroup.Merge(dst, src) -} -func (m *PermissionGroup) XXX_Size() int { - return xxx_messageInfo_PermissionGroup.Size(m) -} -func (m *PermissionGroup) XXX_DiscardUnknown() { - xxx_messageInfo_PermissionGroup.DiscardUnknown(m) -} - -var xxx_messageInfo_PermissionGroup proto.InternalMessageInfo - -func (m *PermissionGroup) GetGroupName() string { - if m != nil { - return m.GroupName - } - return "" -} - -func (m *PermissionGroup) GetGroupID() string { - if m != nil { - return m.GroupID - } - return "" -} - -type WorkMomentUser struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName" json:"userName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkMomentUser) Reset() { *m = WorkMomentUser{} } -func (m *WorkMomentUser) String() string { return proto.CompactTextString(m) } -func (*WorkMomentUser) ProtoMessage() {} -func (*WorkMomentUser) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{22} -} -func (m *WorkMomentUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkMomentUser.Unmarshal(m, b) -} -func (m *WorkMomentUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkMomentUser.Marshal(b, m, deterministic) -} -func (dst *WorkMomentUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkMomentUser.Merge(dst, src) -} -func (m *WorkMomentUser) XXX_Size() int { - return xxx_messageInfo_WorkMomentUser.Size(m) -} -func (m *WorkMomentUser) XXX_DiscardUnknown() { - xxx_messageInfo_WorkMomentUser.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkMomentUser proto.InternalMessageInfo - -func (m *WorkMomentUser) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *WorkMomentUser) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -type WorkMoment struct { - WorkMomentID string `protobuf:"bytes,1,opt,name=workMomentID" json:"workMomentID,omitempty"` - UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,omitempty"` - UserName string `protobuf:"bytes,3,opt,name=userName" json:"userName,omitempty"` - FaceURL string `protobuf:"bytes,4,opt,name=faceURL" json:"faceURL,omitempty"` - Content string `protobuf:"bytes,5,opt,name=content" json:"content,omitempty"` - LikeUserList []*WorkMomentUser `protobuf:"bytes,6,rep,name=likeUserList" json:"likeUserList,omitempty"` - Comments []*Comment `protobuf:"bytes,7,rep,name=comments" json:"comments,omitempty"` - Permission int32 `protobuf:"varint,8,opt,name=permission" json:"permission,omitempty"` - PermissionUserList []*WorkMomentUser `protobuf:"bytes,9,rep,name=permissionUserList" json:"permissionUserList,omitempty"` - PermissionGroupList []*PermissionGroup `protobuf:"bytes,10,rep,name=permissionGroupList" json:"permissionGroupList,omitempty"` - AtUserList []*WorkMomentUser `protobuf:"bytes,11,rep,name=atUserList" json:"atUserList,omitempty"` - CreateTime int32 `protobuf:"varint,12,opt,name=createTime" json:"createTime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkMoment) Reset() { *m = WorkMoment{} } -func (m *WorkMoment) String() string { return proto.CompactTextString(m) } -func (*WorkMoment) ProtoMessage() {} -func (*WorkMoment) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{23} -} -func (m *WorkMoment) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkMoment.Unmarshal(m, b) -} -func (m *WorkMoment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkMoment.Marshal(b, m, deterministic) -} -func (dst *WorkMoment) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkMoment.Merge(dst, src) -} -func (m *WorkMoment) XXX_Size() int { - return xxx_messageInfo_WorkMoment.Size(m) -} -func (m *WorkMoment) XXX_DiscardUnknown() { - xxx_messageInfo_WorkMoment.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkMoment proto.InternalMessageInfo - -func (m *WorkMoment) GetWorkMomentID() string { - if m != nil { - return m.WorkMomentID - } - return "" -} - -func (m *WorkMoment) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *WorkMoment) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *WorkMoment) GetFaceURL() string { - if m != nil { - return m.FaceURL - } - return "" -} - -func (m *WorkMoment) GetContent() string { - if m != nil { - return m.Content - } - return "" -} - -func (m *WorkMoment) GetLikeUserList() []*WorkMomentUser { - if m != nil { - return m.LikeUserList - } - return nil -} - -func (m *WorkMoment) GetComments() []*Comment { - if m != nil { - return m.Comments - } - return nil -} - -func (m *WorkMoment) GetPermission() int32 { - if m != nil { - return m.Permission - } - return 0 -} - -func (m *WorkMoment) GetPermissionUserList() []*WorkMomentUser { - if m != nil { - return m.PermissionUserList - } - return nil -} - -func (m *WorkMoment) GetPermissionGroupList() []*PermissionGroup { - if m != nil { - return m.PermissionGroupList - } - return nil -} - -func (m *WorkMoment) GetAtUserList() []*WorkMomentUser { - if m != nil { - return m.AtUserList - } - return nil -} - -func (m *WorkMoment) GetCreateTime() int32 { - if m != nil { - return m.CreateTime - } - return 0 -} - -type CreateOneWorkMomentReq struct { - WorkMoment *WorkMoment `protobuf:"bytes,1,opt,name=workMoment" json:"workMoment,omitempty"` - OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateOneWorkMomentReq) Reset() { *m = CreateOneWorkMomentReq{} } -func (m *CreateOneWorkMomentReq) String() string { return proto.CompactTextString(m) } -func (*CreateOneWorkMomentReq) ProtoMessage() {} -func (*CreateOneWorkMomentReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{24} -} -func (m *CreateOneWorkMomentReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateOneWorkMomentReq.Unmarshal(m, b) -} -func (m *CreateOneWorkMomentReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateOneWorkMomentReq.Marshal(b, m, deterministic) -} -func (dst *CreateOneWorkMomentReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateOneWorkMomentReq.Merge(dst, src) -} -func (m *CreateOneWorkMomentReq) XXX_Size() int { - return xxx_messageInfo_CreateOneWorkMomentReq.Size(m) -} -func (m *CreateOneWorkMomentReq) XXX_DiscardUnknown() { - xxx_messageInfo_CreateOneWorkMomentReq.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateOneWorkMomentReq proto.InternalMessageInfo - -func (m *CreateOneWorkMomentReq) GetWorkMoment() *WorkMoment { - if m != nil { - return m.WorkMoment - } - return nil -} - -func (m *CreateOneWorkMomentReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type CreateOneWorkMomentResp 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 *CreateOneWorkMomentResp) Reset() { *m = CreateOneWorkMomentResp{} } -func (m *CreateOneWorkMomentResp) String() string { return proto.CompactTextString(m) } -func (*CreateOneWorkMomentResp) ProtoMessage() {} -func (*CreateOneWorkMomentResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{25} -} -func (m *CreateOneWorkMomentResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateOneWorkMomentResp.Unmarshal(m, b) -} -func (m *CreateOneWorkMomentResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateOneWorkMomentResp.Marshal(b, m, deterministic) -} -func (dst *CreateOneWorkMomentResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateOneWorkMomentResp.Merge(dst, src) -} -func (m *CreateOneWorkMomentResp) XXX_Size() int { - return xxx_messageInfo_CreateOneWorkMomentResp.Size(m) -} -func (m *CreateOneWorkMomentResp) XXX_DiscardUnknown() { - xxx_messageInfo_CreateOneWorkMomentResp.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateOneWorkMomentResp proto.InternalMessageInfo - -func (m *CreateOneWorkMomentResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -type DeleteOneWorkMomentReq struct { - WorkMomentID string `protobuf:"bytes,1,opt,name=workMomentID" json:"workMomentID,omitempty"` - UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,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 *DeleteOneWorkMomentReq) Reset() { *m = DeleteOneWorkMomentReq{} } -func (m *DeleteOneWorkMomentReq) String() string { return proto.CompactTextString(m) } -func (*DeleteOneWorkMomentReq) ProtoMessage() {} -func (*DeleteOneWorkMomentReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{26} -} -func (m *DeleteOneWorkMomentReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteOneWorkMomentReq.Unmarshal(m, b) -} -func (m *DeleteOneWorkMomentReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteOneWorkMomentReq.Marshal(b, m, deterministic) -} -func (dst *DeleteOneWorkMomentReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteOneWorkMomentReq.Merge(dst, src) -} -func (m *DeleteOneWorkMomentReq) XXX_Size() int { - return xxx_messageInfo_DeleteOneWorkMomentReq.Size(m) -} -func (m *DeleteOneWorkMomentReq) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteOneWorkMomentReq.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteOneWorkMomentReq proto.InternalMessageInfo - -func (m *DeleteOneWorkMomentReq) GetWorkMomentID() string { - if m != nil { - return m.WorkMomentID - } - return "" -} - -func (m *DeleteOneWorkMomentReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *DeleteOneWorkMomentReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type DeleteOneWorkMomentResp 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 *DeleteOneWorkMomentResp) Reset() { *m = DeleteOneWorkMomentResp{} } -func (m *DeleteOneWorkMomentResp) String() string { return proto.CompactTextString(m) } -func (*DeleteOneWorkMomentResp) ProtoMessage() {} -func (*DeleteOneWorkMomentResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{27} -} -func (m *DeleteOneWorkMomentResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteOneWorkMomentResp.Unmarshal(m, b) -} -func (m *DeleteOneWorkMomentResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteOneWorkMomentResp.Marshal(b, m, deterministic) -} -func (dst *DeleteOneWorkMomentResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteOneWorkMomentResp.Merge(dst, src) -} -func (m *DeleteOneWorkMomentResp) XXX_Size() int { - return xxx_messageInfo_DeleteOneWorkMomentResp.Size(m) -} -func (m *DeleteOneWorkMomentResp) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteOneWorkMomentResp.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteOneWorkMomentResp proto.InternalMessageInfo - -func (m *DeleteOneWorkMomentResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -type LikeOneWorkMomentReq struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - WorkMomentID string `protobuf:"bytes,2,opt,name=WorkMomentID" json:"WorkMomentID,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 *LikeOneWorkMomentReq) Reset() { *m = LikeOneWorkMomentReq{} } -func (m *LikeOneWorkMomentReq) String() string { return proto.CompactTextString(m) } -func (*LikeOneWorkMomentReq) ProtoMessage() {} -func (*LikeOneWorkMomentReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{28} -} -func (m *LikeOneWorkMomentReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LikeOneWorkMomentReq.Unmarshal(m, b) -} -func (m *LikeOneWorkMomentReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LikeOneWorkMomentReq.Marshal(b, m, deterministic) -} -func (dst *LikeOneWorkMomentReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LikeOneWorkMomentReq.Merge(dst, src) -} -func (m *LikeOneWorkMomentReq) XXX_Size() int { - return xxx_messageInfo_LikeOneWorkMomentReq.Size(m) -} -func (m *LikeOneWorkMomentReq) XXX_DiscardUnknown() { - xxx_messageInfo_LikeOneWorkMomentReq.DiscardUnknown(m) -} - -var xxx_messageInfo_LikeOneWorkMomentReq proto.InternalMessageInfo - -func (m *LikeOneWorkMomentReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *LikeOneWorkMomentReq) GetWorkMomentID() string { - if m != nil { - return m.WorkMomentID - } - return "" -} - -func (m *LikeOneWorkMomentReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type LikeOneWorkMomentResp 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 *LikeOneWorkMomentResp) Reset() { *m = LikeOneWorkMomentResp{} } -func (m *LikeOneWorkMomentResp) String() string { return proto.CompactTextString(m) } -func (*LikeOneWorkMomentResp) ProtoMessage() {} -func (*LikeOneWorkMomentResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{29} -} -func (m *LikeOneWorkMomentResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LikeOneWorkMomentResp.Unmarshal(m, b) -} -func (m *LikeOneWorkMomentResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LikeOneWorkMomentResp.Marshal(b, m, deterministic) -} -func (dst *LikeOneWorkMomentResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LikeOneWorkMomentResp.Merge(dst, src) -} -func (m *LikeOneWorkMomentResp) XXX_Size() int { - return xxx_messageInfo_LikeOneWorkMomentResp.Size(m) -} -func (m *LikeOneWorkMomentResp) XXX_DiscardUnknown() { - xxx_messageInfo_LikeOneWorkMomentResp.DiscardUnknown(m) -} - -var xxx_messageInfo_LikeOneWorkMomentResp proto.InternalMessageInfo - -func (m *LikeOneWorkMomentResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -type CommentOneWorkMomentReq struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - WorkMomentID string `protobuf:"bytes,2,opt,name=workMomentID" json:"workMomentID,omitempty"` - ReplyUserID string `protobuf:"bytes,3,opt,name=replyUserID" json:"replyUserID,omitempty"` - Content string `protobuf:"bytes,4,opt,name=content" json:"content,omitempty"` - OperationID string `protobuf:"bytes,5,opt,name=operationID" json:"operationID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommentOneWorkMomentReq) Reset() { *m = CommentOneWorkMomentReq{} } -func (m *CommentOneWorkMomentReq) String() string { return proto.CompactTextString(m) } -func (*CommentOneWorkMomentReq) ProtoMessage() {} -func (*CommentOneWorkMomentReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{30} -} -func (m *CommentOneWorkMomentReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommentOneWorkMomentReq.Unmarshal(m, b) -} -func (m *CommentOneWorkMomentReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommentOneWorkMomentReq.Marshal(b, m, deterministic) -} -func (dst *CommentOneWorkMomentReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommentOneWorkMomentReq.Merge(dst, src) -} -func (m *CommentOneWorkMomentReq) XXX_Size() int { - return xxx_messageInfo_CommentOneWorkMomentReq.Size(m) -} -func (m *CommentOneWorkMomentReq) XXX_DiscardUnknown() { - xxx_messageInfo_CommentOneWorkMomentReq.DiscardUnknown(m) -} - -var xxx_messageInfo_CommentOneWorkMomentReq proto.InternalMessageInfo - -func (m *CommentOneWorkMomentReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *CommentOneWorkMomentReq) GetWorkMomentID() string { - if m != nil { - return m.WorkMomentID - } - return "" -} - -func (m *CommentOneWorkMomentReq) GetReplyUserID() string { - if m != nil { - return m.ReplyUserID - } - return "" -} - -func (m *CommentOneWorkMomentReq) GetContent() string { - if m != nil { - return m.Content - } - return "" -} - -func (m *CommentOneWorkMomentReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type CommentOneWorkMomentResp 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 *CommentOneWorkMomentResp) Reset() { *m = CommentOneWorkMomentResp{} } -func (m *CommentOneWorkMomentResp) String() string { return proto.CompactTextString(m) } -func (*CommentOneWorkMomentResp) ProtoMessage() {} -func (*CommentOneWorkMomentResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{31} -} -func (m *CommentOneWorkMomentResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommentOneWorkMomentResp.Unmarshal(m, b) -} -func (m *CommentOneWorkMomentResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommentOneWorkMomentResp.Marshal(b, m, deterministic) -} -func (dst *CommentOneWorkMomentResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommentOneWorkMomentResp.Merge(dst, src) -} -func (m *CommentOneWorkMomentResp) XXX_Size() int { - return xxx_messageInfo_CommentOneWorkMomentResp.Size(m) -} -func (m *CommentOneWorkMomentResp) XXX_DiscardUnknown() { - xxx_messageInfo_CommentOneWorkMomentResp.DiscardUnknown(m) -} - -var xxx_messageInfo_CommentOneWorkMomentResp proto.InternalMessageInfo - -func (m *CommentOneWorkMomentResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -type GetWorkMomentByIDReq struct { - WorkMomentID string `protobuf:"bytes,1,opt,name=workMomentID" json:"workMomentID,omitempty"` - OpUserID string `protobuf:"bytes,2,opt,name=opUserID" json:"opUserID,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 *GetWorkMomentByIDReq) Reset() { *m = GetWorkMomentByIDReq{} } -func (m *GetWorkMomentByIDReq) String() string { return proto.CompactTextString(m) } -func (*GetWorkMomentByIDReq) ProtoMessage() {} -func (*GetWorkMomentByIDReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{32} -} -func (m *GetWorkMomentByIDReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetWorkMomentByIDReq.Unmarshal(m, b) -} -func (m *GetWorkMomentByIDReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetWorkMomentByIDReq.Marshal(b, m, deterministic) -} -func (dst *GetWorkMomentByIDReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetWorkMomentByIDReq.Merge(dst, src) -} -func (m *GetWorkMomentByIDReq) XXX_Size() int { - return xxx_messageInfo_GetWorkMomentByIDReq.Size(m) -} -func (m *GetWorkMomentByIDReq) XXX_DiscardUnknown() { - xxx_messageInfo_GetWorkMomentByIDReq.DiscardUnknown(m) -} - -var xxx_messageInfo_GetWorkMomentByIDReq proto.InternalMessageInfo - -func (m *GetWorkMomentByIDReq) GetWorkMomentID() string { - if m != nil { - return m.WorkMomentID - } - return "" -} - -func (m *GetWorkMomentByIDReq) GetOpUserID() string { - if m != nil { - return m.OpUserID - } - return "" -} - -func (m *GetWorkMomentByIDReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type GetWorkMomentByIDResp struct { - CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"` - WorkMoment *WorkMoment `protobuf:"bytes,2,opt,name=workMoment" json:"workMoment,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetWorkMomentByIDResp) Reset() { *m = GetWorkMomentByIDResp{} } -func (m *GetWorkMomentByIDResp) String() string { return proto.CompactTextString(m) } -func (*GetWorkMomentByIDResp) ProtoMessage() {} -func (*GetWorkMomentByIDResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{33} -} -func (m *GetWorkMomentByIDResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetWorkMomentByIDResp.Unmarshal(m, b) -} -func (m *GetWorkMomentByIDResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetWorkMomentByIDResp.Marshal(b, m, deterministic) -} -func (dst *GetWorkMomentByIDResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetWorkMomentByIDResp.Merge(dst, src) -} -func (m *GetWorkMomentByIDResp) XXX_Size() int { - return xxx_messageInfo_GetWorkMomentByIDResp.Size(m) -} -func (m *GetWorkMomentByIDResp) XXX_DiscardUnknown() { - xxx_messageInfo_GetWorkMomentByIDResp.DiscardUnknown(m) -} - -var xxx_messageInfo_GetWorkMomentByIDResp proto.InternalMessageInfo - -func (m *GetWorkMomentByIDResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -func (m *GetWorkMomentByIDResp) GetWorkMoment() *WorkMoment { - if m != nil { - return m.WorkMoment - } - return nil -} - -type ChangeWorkMomentPermissionReq struct { - WorkMomentID string `protobuf:"bytes,1,opt,name=workMomentID" json:"workMomentID,omitempty"` - OpUserID string `protobuf:"bytes,2,opt,name=opUserID" json:"opUserID,omitempty"` - Permission int32 `protobuf:"varint,3,opt,name=permission" json:"permission,omitempty"` - PermissionUserIDList []string `protobuf:"bytes,4,rep,name=permissionUserIDList" json:"permissionUserIDList,omitempty"` - OperationID string `protobuf:"bytes,5,opt,name=operationID" json:"operationID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangeWorkMomentPermissionReq) Reset() { *m = ChangeWorkMomentPermissionReq{} } -func (m *ChangeWorkMomentPermissionReq) String() string { return proto.CompactTextString(m) } -func (*ChangeWorkMomentPermissionReq) ProtoMessage() {} -func (*ChangeWorkMomentPermissionReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{34} -} -func (m *ChangeWorkMomentPermissionReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChangeWorkMomentPermissionReq.Unmarshal(m, b) -} -func (m *ChangeWorkMomentPermissionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChangeWorkMomentPermissionReq.Marshal(b, m, deterministic) -} -func (dst *ChangeWorkMomentPermissionReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangeWorkMomentPermissionReq.Merge(dst, src) -} -func (m *ChangeWorkMomentPermissionReq) XXX_Size() int { - return xxx_messageInfo_ChangeWorkMomentPermissionReq.Size(m) -} -func (m *ChangeWorkMomentPermissionReq) XXX_DiscardUnknown() { - xxx_messageInfo_ChangeWorkMomentPermissionReq.DiscardUnknown(m) -} - -var xxx_messageInfo_ChangeWorkMomentPermissionReq proto.InternalMessageInfo - -func (m *ChangeWorkMomentPermissionReq) GetWorkMomentID() string { - if m != nil { - return m.WorkMomentID - } - return "" -} - -func (m *ChangeWorkMomentPermissionReq) GetOpUserID() string { - if m != nil { - return m.OpUserID - } - return "" -} - -func (m *ChangeWorkMomentPermissionReq) GetPermission() int32 { - if m != nil { - return m.Permission - } - return 0 -} - -func (m *ChangeWorkMomentPermissionReq) GetPermissionUserIDList() []string { - if m != nil { - return m.PermissionUserIDList - } - return nil -} - -func (m *ChangeWorkMomentPermissionReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type ChangeWorkMomentPermissionResp 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 *ChangeWorkMomentPermissionResp) Reset() { *m = ChangeWorkMomentPermissionResp{} } -func (m *ChangeWorkMomentPermissionResp) String() string { return proto.CompactTextString(m) } -func (*ChangeWorkMomentPermissionResp) ProtoMessage() {} -func (*ChangeWorkMomentPermissionResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{35} -} -func (m *ChangeWorkMomentPermissionResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChangeWorkMomentPermissionResp.Unmarshal(m, b) -} -func (m *ChangeWorkMomentPermissionResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChangeWorkMomentPermissionResp.Marshal(b, m, deterministic) -} -func (dst *ChangeWorkMomentPermissionResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangeWorkMomentPermissionResp.Merge(dst, src) -} -func (m *ChangeWorkMomentPermissionResp) XXX_Size() int { - return xxx_messageInfo_ChangeWorkMomentPermissionResp.Size(m) -} -func (m *ChangeWorkMomentPermissionResp) XXX_DiscardUnknown() { - xxx_messageInfo_ChangeWorkMomentPermissionResp.DiscardUnknown(m) -} - -var xxx_messageInfo_ChangeWorkMomentPermissionResp proto.InternalMessageInfo - -func (m *ChangeWorkMomentPermissionResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -type GetUserWorkMomentsReq struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - Pagination *sdk_ws.RequestPagination `protobuf:"bytes,2,opt,name=Pagination" json:"Pagination,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 *GetUserWorkMomentsReq) Reset() { *m = GetUserWorkMomentsReq{} } -func (m *GetUserWorkMomentsReq) String() string { return proto.CompactTextString(m) } -func (*GetUserWorkMomentsReq) ProtoMessage() {} -func (*GetUserWorkMomentsReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{36} -} -func (m *GetUserWorkMomentsReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserWorkMomentsReq.Unmarshal(m, b) -} -func (m *GetUserWorkMomentsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserWorkMomentsReq.Marshal(b, m, deterministic) -} -func (dst *GetUserWorkMomentsReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserWorkMomentsReq.Merge(dst, src) -} -func (m *GetUserWorkMomentsReq) XXX_Size() int { - return xxx_messageInfo_GetUserWorkMomentsReq.Size(m) -} -func (m *GetUserWorkMomentsReq) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserWorkMomentsReq.DiscardUnknown(m) -} - -var xxx_messageInfo_GetUserWorkMomentsReq proto.InternalMessageInfo - -func (m *GetUserWorkMomentsReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *GetUserWorkMomentsReq) GetPagination() *sdk_ws.RequestPagination { - if m != nil { - return m.Pagination - } - return nil -} - -func (m *GetUserWorkMomentsReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type GetUserWorkMomentsResp struct { - CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"` - WorkMoments []*WorkMoment `protobuf:"bytes,2,rep,name=workMoments" json:"workMoments,omitempty"` - Pagination *sdk_ws.ResponsePagination `protobuf:"bytes,3,opt,name=Pagination" json:"Pagination,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetUserWorkMomentsResp) Reset() { *m = GetUserWorkMomentsResp{} } -func (m *GetUserWorkMomentsResp) String() string { return proto.CompactTextString(m) } -func (*GetUserWorkMomentsResp) ProtoMessage() {} -func (*GetUserWorkMomentsResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{37} -} -func (m *GetUserWorkMomentsResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserWorkMomentsResp.Unmarshal(m, b) -} -func (m *GetUserWorkMomentsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserWorkMomentsResp.Marshal(b, m, deterministic) -} -func (dst *GetUserWorkMomentsResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserWorkMomentsResp.Merge(dst, src) -} -func (m *GetUserWorkMomentsResp) XXX_Size() int { - return xxx_messageInfo_GetUserWorkMomentsResp.Size(m) -} -func (m *GetUserWorkMomentsResp) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserWorkMomentsResp.DiscardUnknown(m) -} - -var xxx_messageInfo_GetUserWorkMomentsResp proto.InternalMessageInfo - -func (m *GetUserWorkMomentsResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -func (m *GetUserWorkMomentsResp) GetWorkMoments() []*WorkMoment { - if m != nil { - return m.WorkMoments - } - return nil -} - -func (m *GetUserWorkMomentsResp) GetPagination() *sdk_ws.ResponsePagination { - if m != nil { - return m.Pagination - } - return nil -} - -type GetUserFriendWorkMomentsReq struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - Pagination *sdk_ws.RequestPagination `protobuf:"bytes,2,opt,name=Pagination" json:"Pagination,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 *GetUserFriendWorkMomentsReq) Reset() { *m = GetUserFriendWorkMomentsReq{} } -func (m *GetUserFriendWorkMomentsReq) String() string { return proto.CompactTextString(m) } -func (*GetUserFriendWorkMomentsReq) ProtoMessage() {} -func (*GetUserFriendWorkMomentsReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{38} -} -func (m *GetUserFriendWorkMomentsReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserFriendWorkMomentsReq.Unmarshal(m, b) -} -func (m *GetUserFriendWorkMomentsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserFriendWorkMomentsReq.Marshal(b, m, deterministic) -} -func (dst *GetUserFriendWorkMomentsReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserFriendWorkMomentsReq.Merge(dst, src) -} -func (m *GetUserFriendWorkMomentsReq) XXX_Size() int { - return xxx_messageInfo_GetUserFriendWorkMomentsReq.Size(m) -} -func (m *GetUserFriendWorkMomentsReq) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserFriendWorkMomentsReq.DiscardUnknown(m) -} - -var xxx_messageInfo_GetUserFriendWorkMomentsReq proto.InternalMessageInfo - -func (m *GetUserFriendWorkMomentsReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *GetUserFriendWorkMomentsReq) GetPagination() *sdk_ws.RequestPagination { - if m != nil { - return m.Pagination - } - return nil -} - -func (m *GetUserFriendWorkMomentsReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type GetUserFriendWorkMomentsResp struct { - CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"` - WorkMoments []*WorkMoment `protobuf:"bytes,2,rep,name=workMoments" json:"workMoments,omitempty"` - Pagination *sdk_ws.ResponsePagination `protobuf:"bytes,3,opt,name=Pagination" json:"Pagination,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetUserFriendWorkMomentsResp) Reset() { *m = GetUserFriendWorkMomentsResp{} } -func (m *GetUserFriendWorkMomentsResp) String() string { return proto.CompactTextString(m) } -func (*GetUserFriendWorkMomentsResp) ProtoMessage() {} -func (*GetUserFriendWorkMomentsResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{39} -} -func (m *GetUserFriendWorkMomentsResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserFriendWorkMomentsResp.Unmarshal(m, b) -} -func (m *GetUserFriendWorkMomentsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserFriendWorkMomentsResp.Marshal(b, m, deterministic) -} -func (dst *GetUserFriendWorkMomentsResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserFriendWorkMomentsResp.Merge(dst, src) -} -func (m *GetUserFriendWorkMomentsResp) XXX_Size() int { - return xxx_messageInfo_GetUserFriendWorkMomentsResp.Size(m) -} -func (m *GetUserFriendWorkMomentsResp) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserFriendWorkMomentsResp.DiscardUnknown(m) -} - -var xxx_messageInfo_GetUserFriendWorkMomentsResp proto.InternalMessageInfo - -func (m *GetUserFriendWorkMomentsResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -func (m *GetUserFriendWorkMomentsResp) GetWorkMoments() []*WorkMoment { - if m != nil { - return m.WorkMoments - } - return nil -} - -func (m *GetUserFriendWorkMomentsResp) GetPagination() *sdk_ws.ResponsePagination { - if m != nil { - return m.Pagination - } - return nil -} - -type WorkMomentNotificationMsg struct { - NotificationMsgType int32 `protobuf:"varint,1,opt,name=notificationMsgType" json:"notificationMsgType,omitempty"` - Comment *Comment `protobuf:"bytes,2,opt,name=comment" json:"comment,omitempty"` - WorkMomentID string `protobuf:"bytes,3,opt,name=workMomentID" json:"workMomentID,omitempty"` - UserID string `protobuf:"bytes,4,opt,name=userID" json:"userID,omitempty"` - UserName string `protobuf:"bytes,5,opt,name=userName" json:"userName,omitempty"` - FaceURL string `protobuf:"bytes,6,opt,name=faceURL" json:"faceURL,omitempty"` - WorkMomentContent string `protobuf:"bytes,7,opt,name=workMomentContent" json:"workMomentContent,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkMomentNotificationMsg) Reset() { *m = WorkMomentNotificationMsg{} } -func (m *WorkMomentNotificationMsg) String() string { return proto.CompactTextString(m) } -func (*WorkMomentNotificationMsg) ProtoMessage() {} -func (*WorkMomentNotificationMsg) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{40} -} -func (m *WorkMomentNotificationMsg) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkMomentNotificationMsg.Unmarshal(m, b) -} -func (m *WorkMomentNotificationMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkMomentNotificationMsg.Marshal(b, m, deterministic) -} -func (dst *WorkMomentNotificationMsg) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkMomentNotificationMsg.Merge(dst, src) -} -func (m *WorkMomentNotificationMsg) XXX_Size() int { - return xxx_messageInfo_WorkMomentNotificationMsg.Size(m) -} -func (m *WorkMomentNotificationMsg) XXX_DiscardUnknown() { - xxx_messageInfo_WorkMomentNotificationMsg.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkMomentNotificationMsg proto.InternalMessageInfo - -func (m *WorkMomentNotificationMsg) GetNotificationMsgType() int32 { - if m != nil { - return m.NotificationMsgType - } - return 0 -} - -func (m *WorkMomentNotificationMsg) GetComment() *Comment { - if m != nil { - return m.Comment - } - return nil -} - -func (m *WorkMomentNotificationMsg) GetWorkMomentID() string { - if m != nil { - return m.WorkMomentID - } - return "" -} - -func (m *WorkMomentNotificationMsg) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *WorkMomentNotificationMsg) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *WorkMomentNotificationMsg) GetFaceURL() string { - if m != nil { - return m.FaceURL - } - return "" -} - -func (m *WorkMomentNotificationMsg) GetWorkMomentContent() string { - if m != nil { - return m.WorkMomentContent - } - return "" -} - -type SetUserWorkMomentsLevelReq struct { - UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` - Level int32 `protobuf:"varint,2,opt,name=level" json:"level,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 *SetUserWorkMomentsLevelReq) Reset() { *m = SetUserWorkMomentsLevelReq{} } -func (m *SetUserWorkMomentsLevelReq) String() string { return proto.CompactTextString(m) } -func (*SetUserWorkMomentsLevelReq) ProtoMessage() {} -func (*SetUserWorkMomentsLevelReq) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{41} -} -func (m *SetUserWorkMomentsLevelReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetUserWorkMomentsLevelReq.Unmarshal(m, b) -} -func (m *SetUserWorkMomentsLevelReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetUserWorkMomentsLevelReq.Marshal(b, m, deterministic) -} -func (dst *SetUserWorkMomentsLevelReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetUserWorkMomentsLevelReq.Merge(dst, src) -} -func (m *SetUserWorkMomentsLevelReq) XXX_Size() int { - return xxx_messageInfo_SetUserWorkMomentsLevelReq.Size(m) -} -func (m *SetUserWorkMomentsLevelReq) XXX_DiscardUnknown() { - xxx_messageInfo_SetUserWorkMomentsLevelReq.DiscardUnknown(m) -} - -var xxx_messageInfo_SetUserWorkMomentsLevelReq proto.InternalMessageInfo - -func (m *SetUserWorkMomentsLevelReq) GetUserID() string { - if m != nil { - return m.UserID - } - return "" -} - -func (m *SetUserWorkMomentsLevelReq) GetLevel() int32 { - if m != nil { - return m.Level - } - return 0 -} - -func (m *SetUserWorkMomentsLevelReq) GetOperationID() string { - if m != nil { - return m.OperationID - } - return "" -} - -type SetUserWorkMomentsLevelResp 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 *SetUserWorkMomentsLevelResp) Reset() { *m = SetUserWorkMomentsLevelResp{} } -func (m *SetUserWorkMomentsLevelResp) String() string { return proto.CompactTextString(m) } -func (*SetUserWorkMomentsLevelResp) ProtoMessage() {} -func (*SetUserWorkMomentsLevelResp) Descriptor() ([]byte, []int) { - return fileDescriptor_office_02f43b66ea327245, []int{42} -} -func (m *SetUserWorkMomentsLevelResp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetUserWorkMomentsLevelResp.Unmarshal(m, b) -} -func (m *SetUserWorkMomentsLevelResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetUserWorkMomentsLevelResp.Marshal(b, m, deterministic) -} -func (dst *SetUserWorkMomentsLevelResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetUserWorkMomentsLevelResp.Merge(dst, src) -} -func (m *SetUserWorkMomentsLevelResp) XXX_Size() int { - return xxx_messageInfo_SetUserWorkMomentsLevelResp.Size(m) -} -func (m *SetUserWorkMomentsLevelResp) XXX_DiscardUnknown() { - xxx_messageInfo_SetUserWorkMomentsLevelResp.DiscardUnknown(m) -} - -var xxx_messageInfo_SetUserWorkMomentsLevelResp proto.InternalMessageInfo - -func (m *SetUserWorkMomentsLevelResp) GetCommonResp() *CommonResp { - if m != nil { - return m.CommonResp - } - return nil -} - -func init() { - proto.RegisterType((*CommonResp)(nil), "office.CommonResp") - proto.RegisterType((*TagUser)(nil), "office.TagUser") - proto.RegisterType((*Tag)(nil), "office.Tag") - proto.RegisterType((*GetUserTagsReq)(nil), "office.GetUserTagsReq") - proto.RegisterType((*GetUserTagsResp)(nil), "office.GetUserTagsResp") - proto.RegisterType((*CreateTagReq)(nil), "office.CreateTagReq") - proto.RegisterType((*CreateTagResp)(nil), "office.CreateTagResp") - proto.RegisterType((*DeleteTagReq)(nil), "office.DeleteTagReq") - proto.RegisterType((*DeleteTagResp)(nil), "office.DeleteTagResp") - proto.RegisterType((*SetTagReq)(nil), "office.SetTagReq") - proto.RegisterType((*SetTagResp)(nil), "office.SetTagResp") - proto.RegisterType((*SendMsg2TagReq)(nil), "office.SendMsg2TagReq") - proto.RegisterType((*SendMsg2TagResp)(nil), "office.SendMsg2TagResp") - proto.RegisterType((*GetTagSendLogsReq)(nil), "office.GetTagSendLogsReq") - proto.RegisterType((*TagSendLog)(nil), "office.TagSendLog") - proto.RegisterType((*GetTagSendLogsResp)(nil), "office.GetTagSendLogsResp") - proto.RegisterType((*GetUserTagByIDReq)(nil), "office.GetUserTagByIDReq") - proto.RegisterType((*GetUserTagByIDResp)(nil), "office.GetUserTagByIDResp") - proto.RegisterType((*LikeUser)(nil), "office.LikeUser") - proto.RegisterType((*NotificationUser)(nil), "office.NotificationUser") - proto.RegisterType((*Comment)(nil), "office.Comment") - proto.RegisterType((*PermissionGroup)(nil), "office.PermissionGroup") - proto.RegisterType((*WorkMomentUser)(nil), "office.WorkMomentUser") - proto.RegisterType((*WorkMoment)(nil), "office.WorkMoment") - proto.RegisterType((*CreateOneWorkMomentReq)(nil), "office.CreateOneWorkMomentReq") - proto.RegisterType((*CreateOneWorkMomentResp)(nil), "office.CreateOneWorkMomentResp") - proto.RegisterType((*DeleteOneWorkMomentReq)(nil), "office.DeleteOneWorkMomentReq") - proto.RegisterType((*DeleteOneWorkMomentResp)(nil), "office.DeleteOneWorkMomentResp") - proto.RegisterType((*LikeOneWorkMomentReq)(nil), "office.LikeOneWorkMomentReq") - proto.RegisterType((*LikeOneWorkMomentResp)(nil), "office.LikeOneWorkMomentResp") - proto.RegisterType((*CommentOneWorkMomentReq)(nil), "office.CommentOneWorkMomentReq") - proto.RegisterType((*CommentOneWorkMomentResp)(nil), "office.CommentOneWorkMomentResp") - proto.RegisterType((*GetWorkMomentByIDReq)(nil), "office.GetWorkMomentByIDReq") - proto.RegisterType((*GetWorkMomentByIDResp)(nil), "office.GetWorkMomentByIDResp") - proto.RegisterType((*ChangeWorkMomentPermissionReq)(nil), "office.ChangeWorkMomentPermissionReq") - proto.RegisterType((*ChangeWorkMomentPermissionResp)(nil), "office.ChangeWorkMomentPermissionResp") - proto.RegisterType((*GetUserWorkMomentsReq)(nil), "office.GetUserWorkMomentsReq") - proto.RegisterType((*GetUserWorkMomentsResp)(nil), "office.GetUserWorkMomentsResp") - proto.RegisterType((*GetUserFriendWorkMomentsReq)(nil), "office.GetUserFriendWorkMomentsReq") - proto.RegisterType((*GetUserFriendWorkMomentsResp)(nil), "office.GetUserFriendWorkMomentsResp") - proto.RegisterType((*WorkMomentNotificationMsg)(nil), "office.WorkMomentNotificationMsg") - proto.RegisterType((*SetUserWorkMomentsLevelReq)(nil), "office.SetUserWorkMomentsLevelReq") - proto.RegisterType((*SetUserWorkMomentsLevelResp)(nil), "office.SetUserWorkMomentsLevelResp") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for OfficeService service - -type OfficeServiceClient interface { - GetUserTags(ctx context.Context, in *GetUserTagsReq, opts ...grpc.CallOption) (*GetUserTagsResp, error) - CreateTag(ctx context.Context, in *CreateTagReq, opts ...grpc.CallOption) (*CreateTagResp, error) - DeleteTag(ctx context.Context, in *DeleteTagReq, opts ...grpc.CallOption) (*DeleteTagResp, error) - SetTag(ctx context.Context, in *SetTagReq, opts ...grpc.CallOption) (*SetTagResp, error) - SendMsg2Tag(ctx context.Context, in *SendMsg2TagReq, opts ...grpc.CallOption) (*SendMsg2TagResp, error) - GetTagSendLogs(ctx context.Context, in *GetTagSendLogsReq, opts ...grpc.CallOption) (*GetTagSendLogsResp, error) - GetUserTagByID(ctx context.Context, in *GetUserTagByIDReq, opts ...grpc.CallOption) (*GetUserTagByIDResp, error) - CreateOneWorkMoment(ctx context.Context, in *CreateOneWorkMomentReq, opts ...grpc.CallOption) (*CreateOneWorkMomentResp, error) - DeleteOneWorkMoment(ctx context.Context, in *DeleteOneWorkMomentReq, opts ...grpc.CallOption) (*DeleteOneWorkMomentResp, error) - LikeOneWorkMoment(ctx context.Context, in *LikeOneWorkMomentReq, opts ...grpc.CallOption) (*LikeOneWorkMomentResp, error) - CommentOneWorkMoment(ctx context.Context, in *CommentOneWorkMomentReq, opts ...grpc.CallOption) (*CommentOneWorkMomentResp, error) - GetWorkMomentByID(ctx context.Context, in *GetWorkMomentByIDReq, opts ...grpc.CallOption) (*GetWorkMomentByIDResp, error) - ChangeWorkMomentPermission(ctx context.Context, in *ChangeWorkMomentPermissionReq, opts ...grpc.CallOption) (*ChangeWorkMomentPermissionResp, error) - // / user self - GetUserWorkMoments(ctx context.Context, in *GetUserWorkMomentsReq, opts ...grpc.CallOption) (*GetUserWorkMomentsResp, error) - // / users friend - GetUserFriendWorkMoments(ctx context.Context, in *GetUserFriendWorkMomentsReq, opts ...grpc.CallOption) (*GetUserFriendWorkMomentsResp, error) - SetUserWorkMomentsLevel(ctx context.Context, in *SetUserWorkMomentsLevelReq, opts ...grpc.CallOption) (*SetUserWorkMomentsLevelResp, error) -} - -type officeServiceClient struct { - cc *grpc.ClientConn -} - -func NewOfficeServiceClient(cc *grpc.ClientConn) OfficeServiceClient { - return &officeServiceClient{cc} -} - -func (c *officeServiceClient) GetUserTags(ctx context.Context, in *GetUserTagsReq, opts ...grpc.CallOption) (*GetUserTagsResp, error) { - out := new(GetUserTagsResp) - err := grpc.Invoke(ctx, "/office.OfficeService/GetUserTags", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) CreateTag(ctx context.Context, in *CreateTagReq, opts ...grpc.CallOption) (*CreateTagResp, error) { - out := new(CreateTagResp) - err := grpc.Invoke(ctx, "/office.OfficeService/CreateTag", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) DeleteTag(ctx context.Context, in *DeleteTagReq, opts ...grpc.CallOption) (*DeleteTagResp, error) { - out := new(DeleteTagResp) - err := grpc.Invoke(ctx, "/office.OfficeService/DeleteTag", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) SetTag(ctx context.Context, in *SetTagReq, opts ...grpc.CallOption) (*SetTagResp, error) { - out := new(SetTagResp) - err := grpc.Invoke(ctx, "/office.OfficeService/SetTag", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) SendMsg2Tag(ctx context.Context, in *SendMsg2TagReq, opts ...grpc.CallOption) (*SendMsg2TagResp, error) { - out := new(SendMsg2TagResp) - err := grpc.Invoke(ctx, "/office.OfficeService/SendMsg2Tag", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) GetTagSendLogs(ctx context.Context, in *GetTagSendLogsReq, opts ...grpc.CallOption) (*GetTagSendLogsResp, error) { - out := new(GetTagSendLogsResp) - err := grpc.Invoke(ctx, "/office.OfficeService/GetTagSendLogs", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) GetUserTagByID(ctx context.Context, in *GetUserTagByIDReq, opts ...grpc.CallOption) (*GetUserTagByIDResp, error) { - out := new(GetUserTagByIDResp) - err := grpc.Invoke(ctx, "/office.OfficeService/GetUserTagByID", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) CreateOneWorkMoment(ctx context.Context, in *CreateOneWorkMomentReq, opts ...grpc.CallOption) (*CreateOneWorkMomentResp, error) { - out := new(CreateOneWorkMomentResp) - err := grpc.Invoke(ctx, "/office.OfficeService/CreateOneWorkMoment", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) DeleteOneWorkMoment(ctx context.Context, in *DeleteOneWorkMomentReq, opts ...grpc.CallOption) (*DeleteOneWorkMomentResp, error) { - out := new(DeleteOneWorkMomentResp) - err := grpc.Invoke(ctx, "/office.OfficeService/DeleteOneWorkMoment", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) LikeOneWorkMoment(ctx context.Context, in *LikeOneWorkMomentReq, opts ...grpc.CallOption) (*LikeOneWorkMomentResp, error) { - out := new(LikeOneWorkMomentResp) - err := grpc.Invoke(ctx, "/office.OfficeService/LikeOneWorkMoment", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) CommentOneWorkMoment(ctx context.Context, in *CommentOneWorkMomentReq, opts ...grpc.CallOption) (*CommentOneWorkMomentResp, error) { - out := new(CommentOneWorkMomentResp) - err := grpc.Invoke(ctx, "/office.OfficeService/CommentOneWorkMoment", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) GetWorkMomentByID(ctx context.Context, in *GetWorkMomentByIDReq, opts ...grpc.CallOption) (*GetWorkMomentByIDResp, error) { - out := new(GetWorkMomentByIDResp) - err := grpc.Invoke(ctx, "/office.OfficeService/GetWorkMomentByID", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) ChangeWorkMomentPermission(ctx context.Context, in *ChangeWorkMomentPermissionReq, opts ...grpc.CallOption) (*ChangeWorkMomentPermissionResp, error) { - out := new(ChangeWorkMomentPermissionResp) - err := grpc.Invoke(ctx, "/office.OfficeService/ChangeWorkMomentPermission", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) GetUserWorkMoments(ctx context.Context, in *GetUserWorkMomentsReq, opts ...grpc.CallOption) (*GetUserWorkMomentsResp, error) { - out := new(GetUserWorkMomentsResp) - err := grpc.Invoke(ctx, "/office.OfficeService/GetUserWorkMoments", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) GetUserFriendWorkMoments(ctx context.Context, in *GetUserFriendWorkMomentsReq, opts ...grpc.CallOption) (*GetUserFriendWorkMomentsResp, error) { - out := new(GetUserFriendWorkMomentsResp) - err := grpc.Invoke(ctx, "/office.OfficeService/GetUserFriendWorkMoments", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *officeServiceClient) SetUserWorkMomentsLevel(ctx context.Context, in *SetUserWorkMomentsLevelReq, opts ...grpc.CallOption) (*SetUserWorkMomentsLevelResp, error) { - out := new(SetUserWorkMomentsLevelResp) - err := grpc.Invoke(ctx, "/office.OfficeService/SetUserWorkMomentsLevel", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for OfficeService service - -type OfficeServiceServer interface { - GetUserTags(context.Context, *GetUserTagsReq) (*GetUserTagsResp, error) - CreateTag(context.Context, *CreateTagReq) (*CreateTagResp, error) - DeleteTag(context.Context, *DeleteTagReq) (*DeleteTagResp, error) - SetTag(context.Context, *SetTagReq) (*SetTagResp, error) - SendMsg2Tag(context.Context, *SendMsg2TagReq) (*SendMsg2TagResp, error) - GetTagSendLogs(context.Context, *GetTagSendLogsReq) (*GetTagSendLogsResp, error) - GetUserTagByID(context.Context, *GetUserTagByIDReq) (*GetUserTagByIDResp, error) - CreateOneWorkMoment(context.Context, *CreateOneWorkMomentReq) (*CreateOneWorkMomentResp, error) - DeleteOneWorkMoment(context.Context, *DeleteOneWorkMomentReq) (*DeleteOneWorkMomentResp, error) - LikeOneWorkMoment(context.Context, *LikeOneWorkMomentReq) (*LikeOneWorkMomentResp, error) - CommentOneWorkMoment(context.Context, *CommentOneWorkMomentReq) (*CommentOneWorkMomentResp, error) - GetWorkMomentByID(context.Context, *GetWorkMomentByIDReq) (*GetWorkMomentByIDResp, error) - ChangeWorkMomentPermission(context.Context, *ChangeWorkMomentPermissionReq) (*ChangeWorkMomentPermissionResp, error) - // / user self - GetUserWorkMoments(context.Context, *GetUserWorkMomentsReq) (*GetUserWorkMomentsResp, error) - // / users friend - GetUserFriendWorkMoments(context.Context, *GetUserFriendWorkMomentsReq) (*GetUserFriendWorkMomentsResp, error) - SetUserWorkMomentsLevel(context.Context, *SetUserWorkMomentsLevelReq) (*SetUserWorkMomentsLevelResp, error) -} - -func RegisterOfficeServiceServer(s *grpc.Server, srv OfficeServiceServer) { - s.RegisterService(&_OfficeService_serviceDesc, srv) -} - -func _OfficeService_GetUserTags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserTagsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).GetUserTags(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/GetUserTags", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).GetUserTags(ctx, req.(*GetUserTagsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_CreateTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateTagReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).CreateTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/CreateTag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).CreateTag(ctx, req.(*CreateTagReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_DeleteTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteTagReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).DeleteTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/DeleteTag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).DeleteTag(ctx, req.(*DeleteTagReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_SetTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetTagReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).SetTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/SetTag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).SetTag(ctx, req.(*SetTagReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_SendMsg2Tag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendMsg2TagReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).SendMsg2Tag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/SendMsg2Tag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).SendMsg2Tag(ctx, req.(*SendMsg2TagReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_GetTagSendLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetTagSendLogsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).GetTagSendLogs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/GetTagSendLogs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).GetTagSendLogs(ctx, req.(*GetTagSendLogsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_GetUserTagByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserTagByIDReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).GetUserTagByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/GetUserTagByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).GetUserTagByID(ctx, req.(*GetUserTagByIDReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_CreateOneWorkMoment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateOneWorkMomentReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).CreateOneWorkMoment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/CreateOneWorkMoment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).CreateOneWorkMoment(ctx, req.(*CreateOneWorkMomentReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_DeleteOneWorkMoment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteOneWorkMomentReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).DeleteOneWorkMoment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/DeleteOneWorkMoment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).DeleteOneWorkMoment(ctx, req.(*DeleteOneWorkMomentReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_LikeOneWorkMoment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LikeOneWorkMomentReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).LikeOneWorkMoment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/LikeOneWorkMoment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).LikeOneWorkMoment(ctx, req.(*LikeOneWorkMomentReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_CommentOneWorkMoment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommentOneWorkMomentReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).CommentOneWorkMoment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/CommentOneWorkMoment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).CommentOneWorkMoment(ctx, req.(*CommentOneWorkMomentReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_GetWorkMomentByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetWorkMomentByIDReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).GetWorkMomentByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/GetWorkMomentByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).GetWorkMomentByID(ctx, req.(*GetWorkMomentByIDReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_ChangeWorkMomentPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeWorkMomentPermissionReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).ChangeWorkMomentPermission(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/ChangeWorkMomentPermission", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).ChangeWorkMomentPermission(ctx, req.(*ChangeWorkMomentPermissionReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_GetUserWorkMoments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserWorkMomentsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).GetUserWorkMoments(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/GetUserWorkMoments", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).GetUserWorkMoments(ctx, req.(*GetUserWorkMomentsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_GetUserFriendWorkMoments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserFriendWorkMomentsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).GetUserFriendWorkMoments(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/GetUserFriendWorkMoments", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).GetUserFriendWorkMoments(ctx, req.(*GetUserFriendWorkMomentsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _OfficeService_SetUserWorkMomentsLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetUserWorkMomentsLevelReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OfficeServiceServer).SetUserWorkMomentsLevel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/office.OfficeService/SetUserWorkMomentsLevel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OfficeServiceServer).SetUserWorkMomentsLevel(ctx, req.(*SetUserWorkMomentsLevelReq)) - } - return interceptor(ctx, in, info, handler) -} - -var _OfficeService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "office.OfficeService", - HandlerType: (*OfficeServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetUserTags", - Handler: _OfficeService_GetUserTags_Handler, - }, - { - MethodName: "CreateTag", - Handler: _OfficeService_CreateTag_Handler, - }, - { - MethodName: "DeleteTag", - Handler: _OfficeService_DeleteTag_Handler, - }, - { - MethodName: "SetTag", - Handler: _OfficeService_SetTag_Handler, - }, - { - MethodName: "SendMsg2Tag", - Handler: _OfficeService_SendMsg2Tag_Handler, - }, - { - MethodName: "GetTagSendLogs", - Handler: _OfficeService_GetTagSendLogs_Handler, - }, - { - MethodName: "GetUserTagByID", - Handler: _OfficeService_GetUserTagByID_Handler, - }, - { - MethodName: "CreateOneWorkMoment", - Handler: _OfficeService_CreateOneWorkMoment_Handler, - }, - { - MethodName: "DeleteOneWorkMoment", - Handler: _OfficeService_DeleteOneWorkMoment_Handler, - }, - { - MethodName: "LikeOneWorkMoment", - Handler: _OfficeService_LikeOneWorkMoment_Handler, - }, - { - MethodName: "CommentOneWorkMoment", - Handler: _OfficeService_CommentOneWorkMoment_Handler, - }, - { - MethodName: "GetWorkMomentByID", - Handler: _OfficeService_GetWorkMomentByID_Handler, - }, - { - MethodName: "ChangeWorkMomentPermission", - Handler: _OfficeService_ChangeWorkMomentPermission_Handler, - }, - { - MethodName: "GetUserWorkMoments", - Handler: _OfficeService_GetUserWorkMoments_Handler, - }, - { - MethodName: "GetUserFriendWorkMoments", - Handler: _OfficeService_GetUserFriendWorkMoments_Handler, - }, - { - MethodName: "SetUserWorkMomentsLevel", - Handler: _OfficeService_SetUserWorkMomentsLevel_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "office/office.proto", -} - -func init() { proto.RegisterFile("office/office.proto", fileDescriptor_office_02f43b66ea327245) } - -var fileDescriptor_office_02f43b66ea327245 = []byte{ - // 1604 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xcd, 0x6e, 0x1c, 0xc5, - 0x13, 0xd7, 0xec, 0xa7, 0xb7, 0xd6, 0x89, 0xe3, 0xb6, 0x63, 0x6f, 0x26, 0xb1, 0xe3, 0xff, 0x24, - 0xf9, 0x2b, 0x7c, 0xc8, 0x46, 0x4b, 0x84, 0x10, 0x88, 0x08, 0xc5, 0x9b, 0x58, 0x0b, 0xde, 0xc4, - 0x8c, 0x6d, 0x22, 0x38, 0x60, 0x4d, 0xd6, 0x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0xf4, 0x56, 0xcc, 0x31, 0x9e, 0x92, 0x46, 0x8c, 0x3e, 0x2c, 0xec, 0xe1, 0x60, 0xec, 0x10, 0xe2, - 0x78, 0x2e, 0x23, 0x3f, 0xba, 0x95, 0x4d, 0x7f, 0x48, 0xaf, 0xba, 0x18, 0xa0, 0x5b, 0x31, 0x81, - 0x67, 0x55, 0x22, 0x1a, 0x3d, 0xb8, 0xfc, 0xd4, 0x0b, 0x4e, 0x07, 0x1e, 0x85, 0xb1, 0xf4, 0x51, - 0x7c, 0x53, 0x03, 0x10, 0x66, 0x90, 0x01, 0xf3, 0x17, 0x5c, 0xe2, 0x86, 0x94, 0xb1, 0x42, 0x1a, - 0x92, 0xb7, 0xa9, 0x16, 0x9f, 0x58, 0x4d, 0x3d, 0x31, 0x09, 0xcb, 0xba, 0x8a, 0xe5, 0x7b, 0x30, - 0x3f, 0x8a, 0xb3, 0x95, 0x51, 0x55, 0x83, 0x5d, 0xd9, 0x95, 0x24, 0xab, 0xd5, 0xe0, 0x4d, 0x45, - 0x97, 0x52, 0xdc, 0x30, 0x4a, 0x30, 0xd2, 0x69, 0xaa, 0x14, 0x17, 0x27, 0x9e, 0xc9, 0x15, 0xe8, - 0xa1, 0xf9, 0xfc, 0x50, 0x92, 0x43, 0x13, 0x23, 0xe8, 0x11, 0x20, 0x21, 0x71, 0x77, 0x5a, 0x13, - 0xdd, 0xc9, 0x59, 0x81, 0xfa, 0xb0, 0xe4, 0xab, 0x87, 0xcf, 0x0c, 0x01, 0x33, 0xb4, 0x9a, 0x18, - 0x4a, 0xe5, 0x87, 0x99, 0xb7, 0x06, 0xbd, 0x03, 0x60, 0x85, 0xdc, 0x95, 0xf6, 0x44, 0x57, 0x24, - 0xcd, 0x54, 0x7e, 0xce, 0x67, 0xf2, 0xd3, 0x85, 0x95, 0xa8, 0xd8, 0x7b, 0xe2, 0x62, 0x61, 0x86, - 0x92, 0x5e, 0x17, 0x40, 0x64, 0x41, 0x9a, 0x8e, 0x24, 0x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8b, 0x1a, 0xf1, 0xd1, - 0x3e, 0xef, 0x4d, 0x49, 0xbc, 0x81, 0xd6, 0x52, 0xd9, 0xa4, 0xbe, 0xa3, 0xfa, 0xfa, 0xa4, 0x69, - 0xe2, 0x23, 0x0c, 0x9d, 0xa2, 0x67, 0x0e, 0xdd, 0x4a, 0xad, 0xcd, 0x7b, 0xa8, 0xf5, 0xdb, 0xd3, - 0x95, 0x88, 0x8f, 0x9e, 0xc1, 0x6a, 0x01, 0xe7, 0x21, 0x43, 0xba, 0xd8, 0x05, 0x14, 0xac, 0xdf, - 0x9a, 0xaa, 0x43, 0xfc, 0x07, 0x8b, 0x9f, 0x2f, 0x6c, 0xc6, 0xff, 0x76, 0x7b, 0x3f, 0xfa, 0xf3, - 0xac, 0xc1, 0xfe, 0xa7, 0xf6, 0xf6, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x70, 0x91, 0x17, 0x98, - 0x95, 0x1b, 0x00, 0x00, -} diff --git a/pkg/proto/office/office.proto b/pkg/proto/office/office.proto index 63d04955a..04ead1788 100644 --- a/pkg/proto/office/office.proto +++ b/pkg/proto/office/office.proto @@ -220,8 +220,9 @@ message ChangeWorkMomentPermissionResp { message GetUserWorkMomentsReq { string userID = 1; - server_api_params.RequestPagination Pagination = 2; - string operationID = 3; + string opUserID = 2; + server_api_params.RequestPagination Pagination = 3; + string operationID = 4; } message GetUserWorkMomentsResp { @@ -244,12 +245,16 @@ message GetUserFriendWorkMomentsResp { message WorkMomentNotificationMsg { int32 notificationMsgType = 1; - Comment comment = 2; - string workMomentID = 3; - string userID = 4; - string userName = 5; - string faceURL = 6; - string workMomentContent = 7; + string replyUserName = 2; + string replyUserID = 3; + string content = 4; + string contentID = 5; + string workMomentID = 6; + string userID = 7; + string userName = 8; + string faceURL = 9; + string workMomentContent = 10; + int32 createTime = 11; } message SetUserWorkMomentsLevelReq { From 010f24e5c3cd091259ea59fbe59a4466003bce40 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Sun, 24 Apr 2022 17:46:47 +0800 Subject: [PATCH 2/2] work_moments --- pkg/common/db/mongoModel.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/common/db/mongoModel.go b/pkg/common/db/mongoModel.go index 14adb3057..6ff42d558 100644 --- a/pkg/common/db/mongoModel.go +++ b/pkg/common/db/mongoModel.go @@ -11,8 +11,6 @@ import ( "errors" "fmt" "github.com/gogo/protobuf/sortkeys" - "go.etcd.io/etcd/clientv3" - "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo/options" "math/rand" @@ -682,7 +680,7 @@ func (d *DataBases) GetUserWorkMoments(opUserID, userID string, showNumber, page result, err := c.Find(ctx, bson.D{ // 等价条件: select * from {"user_id", userID}, {"$or", bson.A{ - bson.D{{"permission", constant.WorkMomentPermissionCantSee}, {opUserID, bson.D{{"$in", "permission_user_id_list"}}}}, + bson.D{{"permission", constant.WorkMomentPermissionCantSee}, {opUserID, bson.D{{"$nin", "permission_user_id_list"}}}}, bson.D{{"permission", constant.WorkMomentPermissionCanSee}, {opUserID, bson.D{{"$in", "permission_user_id_list"}}}}, bson.D{{"permission", constant.WorkMomentPublic}}, }}, @@ -702,7 +700,7 @@ func (d *DataBases) GetUserFriendWorkMoments(friendIDList []*string, showNumber, result, err := c.Find(ctx, bson.D{ // 等价条件: select * from t where user_id in friend_id_list and () or () or (); {"user_id", bson.D{{"$in", friendIDList}}}, {"$or", bson.A{ - bson.D{{"permission", constant.WorkMomentPermissionCantSee}, {userID, bson.D{{"$in", "permission_user_id_list"}}}}, + bson.D{{"permission", constant.WorkMomentPermissionCantSee}, {userID, bson.D{{"$nin", "permission_user_id_list"}}}}, bson.D{{"permission", constant.WorkMomentPermissionCanSee}, {userID, bson.D{{"$in", "permission_user_id_list"}}}}, bson.D{{"permission", constant.WorkMomentPublic}}, }},