|
@@ -0,0 +1,113 @@
|
|
|
+// Code generated by goctl. DO NOT EDIT!
|
|
|
+// Source: message.proto
|
|
|
+
|
|
|
+package server
|
|
|
+
|
|
|
+import (
|
|
|
+ "context"
|
|
|
+
|
|
|
+ "app.yhyue.com/moapp/MessageCenter/rpc/internal/logic"
|
|
|
+ "app.yhyue.com/moapp/MessageCenter/rpc/internal/svc"
|
|
|
+ "app.yhyue.com/moapp/MessageCenter/rpc/type/message"
|
|
|
+)
|
|
|
+
|
|
|
+type MessageServer struct {
|
|
|
+ svcCtx *svc.ServiceContext
|
|
|
+ message.UnimplementedMessageServer
|
|
|
+}
|
|
|
+
|
|
|
+func NewMessageServer(svcCtx *svc.ServiceContext) *MessageServer {
|
|
|
+ return &MessageServer{
|
|
|
+ svcCtx: svcCtx,
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 工作桌面列表
|
|
|
+func (s *MessageServer) WorkingDesktopList(ctx context.Context, in *message.WorkingDesktopReq) (*message.WorkingDesktopResp, error) {
|
|
|
+ l := logic.NewWorkingDesktopListLogic(ctx, s.svcCtx)
|
|
|
+ return l.WorkingDesktopList(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 发送消息更新一次消息汇总表
|
|
|
+func (s *MessageServer) UpdateMsgSummary(ctx context.Context, in *message.UpdateMsgSummaryReq) (*message.Response, error) {
|
|
|
+ l := logic.NewUpdateMsgSummaryLogic(ctx, s.svcCtx)
|
|
|
+ return l.UpdateMsgSummary(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 新用户发送消息
|
|
|
+func (s *MessageServer) NewUserMsg(ctx context.Context, in *message.NewUserInsertMsgReq) (*message.Response, error) {
|
|
|
+ l := logic.NewNewUserMsgLogic(ctx, s.svcCtx)
|
|
|
+ return l.NewUserMsg(in)
|
|
|
+}
|
|
|
+
|
|
|
+// bitmap保存消息
|
|
|
+func (s *MessageServer) BitmapSaveMsg(ctx context.Context, in *message.MultipleSaveMsgReq) (*message.MultipleSaveMsgResp, error) {
|
|
|
+ l := logic.NewBitmapSaveMsgLogic(ctx, s.svcCtx)
|
|
|
+ return l.BitmapSaveMsg(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 批量保存消息
|
|
|
+func (s *MessageServer) MultipleSaveMsg(ctx context.Context, in *message.MultipleSaveMsgReq) (*message.MultipleSaveMsgResp, error) {
|
|
|
+ l := logic.NewMultipleSaveMsgLogic(ctx, s.svcCtx)
|
|
|
+ return l.MultipleSaveMsg(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 修改消息阅读状态
|
|
|
+func (s *MessageServer) ChangeReadStatus(ctx context.Context, in *message.ChangeReadStatusReq) (*message.Response, error) {
|
|
|
+ l := logic.NewChangeReadStatusLogic(ctx, s.svcCtx)
|
|
|
+ return l.ChangeReadStatus(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 查询指定用户的历史消息记录
|
|
|
+func (s *MessageServer) FindUserMsg(ctx context.Context, in *message.FindUserMsgReq) (*message.FindUserMsgRes, error) {
|
|
|
+ l := logic.NewFindUserMsgLogic(ctx, s.svcCtx)
|
|
|
+ return l.FindUserMsg(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 查看详细详情
|
|
|
+func (s *MessageServer) FindMessageDetail(ctx context.Context, in *message.MessageDetailReq) (*message.MessageDetailResp, error) {
|
|
|
+ l := logic.NewFindMessageDetailLogic(ctx, s.svcCtx)
|
|
|
+ return l.FindMessageDetail(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 消息的分类
|
|
|
+func (s *MessageServer) FindUserBuoyMsg(ctx context.Context, in *message.FindUserBuoyMsgReq) (*message.FindUserBuoyMsgRes, error) {
|
|
|
+ l := logic.NewFindUserBuoyMsgLogic(ctx, s.svcCtx)
|
|
|
+ return l.FindUserBuoyMsg(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 一键清空未读消息
|
|
|
+func (s *MessageServer) ClearUnreadMsg(ctx context.Context, in *message.ClearUnreadMsgReq) (*message.Response, error) {
|
|
|
+ l := logic.NewClearUnreadMsgLogic(ctx, s.svcCtx)
|
|
|
+ return l.ClearUnreadMsg(in)
|
|
|
+}
|
|
|
+
|
|
|
+// new用户消息列表
|
|
|
+func (s *MessageServer) UserMsgList(ctx context.Context, in *message.UserMsgListReq) (*message.UserMsgListRes, error) {
|
|
|
+ l := logic.NewUserMsgListLogic(ctx, s.svcCtx)
|
|
|
+ return l.UserMsgList(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 发送剑鱼微信模版消息
|
|
|
+func (s *MessageServer) SendWxTmplMsg(ctx context.Context, in *message.WxTmplMsgRequest) (*message.SendMsgResponse, error) {
|
|
|
+ l := logic.NewSendWxTmplMsgLogic(ctx, s.svcCtx)
|
|
|
+ return l.SendWxTmplMsg(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 官网、移动端首页、工作桌面消息滚动
|
|
|
+func (s *MessageServer) MsgOpenLog(ctx context.Context, in *message.MsgOpenLogReq) (*message.Response, error) {
|
|
|
+ l := logic.NewMsgOpenLogLogic(ctx, s.svcCtx)
|
|
|
+ return l.MsgOpenLog(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 物料详情
|
|
|
+func (s *MessageServer) MlDetails(ctx context.Context, in *message.MaterialDetailReq) (*message.MaterialDetailResp, error) {
|
|
|
+ l := logic.NewMlDetailsLogic(ctx, s.svcCtx)
|
|
|
+ return l.MlDetails(in)
|
|
|
+}
|
|
|
+
|
|
|
+// 发送剑鱼微信模版消息
|
|
|
+func (s *MessageServer) AppLetterPush(ctx context.Context, in *message.WxTmplMsgRequest) (*message.SendMsgResponse, error) {
|
|
|
+ l := logic.NewAppLetterPushLogic(ctx, s.svcCtx)
|
|
|
+ return l.AppLetterPush(in)
|
|
|
+}
|