Bladeren bron

消息打开记录

renjiaojiao 2 jaren geleden
bovenliggende
commit
d0b9970cae

+ 5 - 0
api/internal/handler/routes.go

@@ -57,6 +57,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Path:    "/messageCenter/sendWxTmplMsg",
 				Handler: SendWxTmplMsgHandler(serverCtx),
 			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/messageCenter/msgOpenLog",
+				Handler: MsgOpenLogHandler(serverCtx),
+			},
 		},
 	)
 }

+ 8 - 1
api/internal/types/types.go

@@ -7,7 +7,7 @@ type Response struct {
 }
 
 type MessageDetailReq struct {
-	Id string `json:"id"`
+	Id int64 `json:"id"`
 }
 
 type MessageDetailResp struct {
@@ -139,3 +139,10 @@ type WxTmplMessageResponse struct {
 	Total   int64  `json:"total"`
 	Message string `json:"message"`
 }
+
+type MsgOpenLogReq struct {
+	MsgLogId int64  `json:"msgLogId"`
+	Platform int64  `json:"platform"`
+	UserId   string `header:"mgoUserId"`
+	AppId    string `header:"appId"`
+}

+ 10 - 1
api/message.api

@@ -14,7 +14,7 @@ type response {
 
 //查询消息详情
 type MessageDetailReq {
-	Id string `json:"id"`
+	Id int64 `json:"id"`
 }
 type MessageDetailResp {
 	Code    int64                  `json:"code"`
@@ -141,6 +141,12 @@ type WxTmplMessageResponse {
 	Total   int64  `json:"total"`
 	Message string `json:"message"`
 }
+type MsgOpenLogReq {
+	MsgLogId int64  `json:"msgLogId"`
+	Platform int64  `json:"platform"` //1pc   2 app  3 微信
+	UserId   string `header:"mgoUserId"`
+	AppId    string `header:"appId"`
+}
 
 service message-api {
 	//查询消息详情
@@ -175,4 +181,7 @@ service message-api {
 	// 发送微信模版消息
 	@handler SendWxTmplMsg
 	post /messageCenter/sendWxTmplMsg (WxTmplMessageReq) returns (WxTmplMessageResponse)
+	// 消息打开记录
+	@handler MsgOpenLog
+	post /messageCenter/msgOpenLog (MsgOpenLogReq) returns (response)
 }

+ 0 - 2
entity/message.go

@@ -4,7 +4,6 @@ import (
 	"app.yhyue.com/moapp/jybase/mail"
 	m "app.yhyue.com/moapp/jybase/mongodb"
 	"app.yhyue.com/moapp/jybase/mysql"
-	clientv3 "go.etcd.io/etcd/client/v3"
 	"time"
 
 	"github.com/go-xorm/xorm"
@@ -12,7 +11,6 @@ import (
 
 // 定义orm引擎
 var Engine *xorm.Engine
-var EtcdCli *clientv3.Client
 var Mysql *mysql.Mysql
 var BaseMysql *mysql.Mysql
 var MessageColumn []map[string]interface{}

+ 1 - 1
rpc/etc/message.yaml

@@ -61,4 +61,4 @@ WxTmplConfig:
       nums: [ 150000,250000 ] #告警数量
       toMail: [ "wangkaiyue@topnet.net.cn" ] #告警邮箱收件地址
       ccMail: [ "duxin@topnet.net.cn" ] #告警邮箱抄送地址
-
+Tidb: "root:=PDT49#80Z!RVv52_z@tcp(192.168.3.217:4000)/messagetest?charset=utf8mb4&parseTime=true&loc=Local"

+ 76 - 0
rpc/internal/common/messageLog.go

@@ -0,0 +1,76 @@
+package common
+
+import (
+	"app.yhyue.com/moapp/MessageCenter/entity"
+	"github.com/go-xorm/xorm"
+	"log"
+	"time"
+)
+
+var (
+	SP        = make(chan bool, 5)
+	SaveCache = make(chan map[string]interface{}, 100000)
+)
+
+// SaveMessageClockLog 保存消息点击记录
+func SaveMessageClockLog(saveData []map[string]interface{}) {
+	orm := entity.Engine.NewSession()
+	defer func(orm *xorm.Session) {
+		orm.Close()
+	}(orm)
+	err := orm.Begin()
+	if err != nil {
+		log.Println("保存消息事务开启失败", err)
+		return
+	}
+	_, err = orm.Table("message_open_log").Insert(saveData)
+	if err != nil {
+		err2 := orm.Rollback()
+		if err2 != nil {
+			log.Println("存储消息rollback失败", err2)
+			return
+		}
+		log.Println("存储消息打开日志失败", err)
+	}
+	err = orm.Commit()
+	if err != nil {
+		log.Println("存储消息commit失败", err)
+		return
+	}
+}
+
+func SaveTask() {
+	log.Println("message log  Save...")
+	arru := make([]map[string]interface{}, 500)
+	indexu := 0
+	for {
+		select {
+		case v := <-SaveCache:
+			arru[indexu] = v
+			indexu++
+			if indexu == 500 {
+				SP <- true
+				go func(arru []map[string]interface{}) {
+					defer func() {
+						<-SP
+					}()
+					SaveMessageClockLog(arru)
+				}(arru)
+				arru = make([]map[string]interface{}, 500)
+				indexu = 0
+			}
+		case <-time.After(1000 * time.Millisecond):
+			if indexu > 0 {
+				SP <- true
+				go func(arru []map[string]interface{}) {
+					defer func() {
+						<-SP
+					}()
+					SaveMessageClockLog(arru)
+				}(arru[:indexu])
+				arru = make([]map[string]interface{}, 500)
+				indexu = 0
+			}
+		}
+	}
+}

+ 19 - 76
rpc/internal/common/messageService.go

@@ -3,13 +3,12 @@ package common
 import (
 	"app.yhyue.com/moapp/MessageCenter/entity"
 	"app.yhyue.com/moapp/MessageCenter/rpc/type/message"
-	"app.yhyue.com/moapp/MessageCenter/util"
 	qutil "app.yhyue.com/moapp/jybase/common"
 	"app.yhyue.com/moapp/jybase/redis"
 	"errors"
 	"fmt"
 	"log"
-	"strconv"
+	"time"
 )
 
 type MessageService struct{}
@@ -76,74 +75,17 @@ func (service *MessageService) CountUnread(userId string, appId string) (int64,
 	return 1, "查询未读消息成功", count
 }
 
-// 获取指定用户指定分类最新一条消息
-func (service *MessageService) LastMessage(userId string, appId string, msgType int64, isRead int64) (*message.Messages, error) {
-	query := map[string]interface{}{
-		"receive_userid": userId,
-		"isdel":          1,
-		"appid":          appId,
-	}
-	if isRead != -1 {
-		query["isRead"] = isRead
-	}
-	if msgType != -1 {
-		query["msg_type"] = msgType
-	}
-	lastMsg := entity.Mysql.FindOne("message", query, "", "createtime desc")
-	if lastMsg != nil && len(*lastMsg) > 0 {
-		_id := util.Int64All((*lastMsg)["id"])
-		id := strconv.FormatInt(_id, 10)
-		msg := message.Messages{
-			Id:            id,
-			Appid:         qutil.ObjToString((*lastMsg)["appid"]),
-			ReceiveUserId: qutil.ObjToString((*lastMsg)["receive_userid"]),
-			ReceiveName:   qutil.ObjToString((*lastMsg)["receive_name"]),
-			SendUserId:    qutil.ObjToString((*lastMsg)["send_userid"]),
-			SendName:      qutil.ObjToString((*lastMsg)["send_name"]),
-			Createtime:    qutil.ObjToString((*lastMsg)["createtime"]),
-			Title:         qutil.ObjToString((*lastMsg)["title"]),
-			MsgType:       qutil.Int64All((*lastMsg)["msg_type"]),
-			Link:          qutil.ObjToString((*lastMsg)["link"]),
-			CiteId:        qutil.Int64All((*lastMsg)["cite_id"]),
-			Content:       qutil.ObjToString((*lastMsg)["content"]),
-			IsRead:        qutil.Int64All((*lastMsg)["isRead"]),
-			MsgLogId:      qutil.Int64All((*lastMsg)["msg_log_id"]),
-		}
-		return &msg, nil
-	} else {
-		return nil, nil
-
-	}
-
-}
-
 // 查询消息详情
-func FindMessageDetail(id string) (entity.Message, error) {
-	orm := entity.Engine.NewSession()
-	defer orm.Close()
-	mess := entity.Message{}
-	err := orm.Table("message").Select("*").Where("id = ?", id).Find(&mess)
-	if err != nil {
-		return mess, err
-	}
-	return mess, nil
-}
-
-// 获取用户未读消息分类及数量 及分类下的最新一条消息
-func (service *MessageService) ClassCountAndMessage(userId string, appId string) ([]*message.ResCount, error) {
-	query := entity.Mysql.SelectBySql("SELECT msg_type,COUNT(CASE WHEN isRead=0 THEN 1 END) as count  FROM message where receive_userid=? and isdel=1 and appid=? GROUP BY msg_type  ORDER BY FIELD(`msg_type`,\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\")", userId, appId)
+func FindMessageDetail(id int64) (map[string]interface{}, error) {
 
-	typeCount := []*message.ResCount{}
-	// 未读消息分类及数量
-	if query != nil && len(*query) > 0 {
-		for _, v := range *query {
-			typeCount = append(typeCount, &message.ResCount{MsgType: v["msg_type"].(int64), Count: v["count"].(int64)})
-		}
+	msg := entity.Mysql.FindOne("message", map[string]interface{}{"id": id}, "", "")
+	if msg != nil && len(*msg) > 0 {
+		return *msg, nil
 	}
-	return typeCount, nil
+	return nil, errors.New("没有查询到消息")
 }
 
-// 已接收到消息的分类
+// GetMsgType 消息的分类
 func (service *MessageService) GetMsgType() (data []*message.MsgTypes, err error) {
 	types := entity.Mysql.SelectBySql("SELECT * FROM `message_column` WHERE msg_type > 0 ORDER BY sequence ASC")
 	if types != nil && len(*types) > 0 {
@@ -161,16 +103,17 @@ func (service *MessageService) GetMsgType() (data []*message.MsgTypes, err error
 	return nil, nil
 }
 
-func (service *MessageService) UpdateMessageReadStatus(msgType int, receiveUserid, appId string) (int, error) {
-	query := map[string]interface{}{
-		"receive_userid": receiveUserid,
-		"msg_type":       msgType,
-		"appid":          appId,
-	}
-	b := entity.Mysql.Update("message", query, map[string]interface{}{"isRead": 1})
-	if !b {
-		return 0, errors.New("修改消息已读出错")
+func (service *MessageService) MsgOpenLog(platFrom, msgLogId int64, userId string) int64 {
+	//判断用户是否已经在pc端打开过
+	count := entity.Mysql.CountBySql("SELECT COUNT(*) FROM message_open_log WHERE msg_log_id = ? and platform = ? and userid = ?", msgLogId, platFrom, userId)
+	if count <= 0 {
+		tmp := map[string]interface{}{
+			"msg_log_id": msgLogId,
+			"platform":   platFrom,
+			"userid":     userId,
+			"createtime": time.Now().Format("2006-01-02 15:04:05"),
+		}
+		SaveCache <- tmp
 	}
-	MsgCountZero(receiveUserid, appId, qutil.Int64All(msgType))
-	return 1, nil
+	return 0
 }

+ 1 - 0
rpc/internal/config/config.go

@@ -21,6 +21,7 @@ type Config struct {
 		Pwd  string `json:"pwd"`
 		User string `json:"user"`
 	} `json:"mail"`
+	TidbEng string `json:"Tidb"`
 }
 
 type mysqlConfig struct {

+ 14 - 13
rpc/internal/logic/findmessagedetaillogic.go

@@ -4,6 +4,7 @@ import (
 	service "app.yhyue.com/moapp/MessageCenter/rpc/internal/common"
 	"app.yhyue.com/moapp/MessageCenter/rpc/internal/svc"
 	"app.yhyue.com/moapp/MessageCenter/rpc/messageclient"
+	qutil "app.yhyue.com/moapp/jybase/common"
 	"context"
 
 	"github.com/zeromicro/go-zero/core/logx"
@@ -27,23 +28,23 @@ func NewFindMessageDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext)
 func (l *FindMessageDetailLogic) FindMessageDetail(in *messageclient.MessageDetailReq) (*messageclient.MessageDetailResp, error) {
 	// todo: add your logic here and delete this line
 	result := &messageclient.MessageDetailResp{}
-	mess, err := service.FindMessageDetail(in.Id)
+	msg, err := service.FindMessageDetail(in.Id)
 	if err != nil {
 		return &messageclient.MessageDetailResp{}, nil
 	}
 	detail := &messageclient.Messages{
-		ReceiveUserId: mess.ReceiveUserid,
-		ReceiveName:   mess.ReceiveName,
-		SendName:      mess.SendName,
-		SendUserId:    mess.SendUserid,
-		Title:         mess.Title,
-		Content:       mess.Content,
-		MsgType:       int64(mess.MsgType),
-		Link:          mess.Link,
-		CiteId:        int64(mess.CiteId),
-		IsRead:        int64(mess.IsRead),
-		Createtime:    (mess.CreateTime).Format("2006-01-02 15:04:05"),
-		MsgLogId:      mess.MsgLogId,
+		ReceiveUserId: qutil.ObjToString(msg["receive_userid"]),
+		ReceiveName:   qutil.ObjToString(msg["receive_name"]),
+		SendName:      qutil.ObjToString(msg["send_name"]),
+		SendUserId:    qutil.ObjToString(msg["send_userid"]),
+		Title:         qutil.ObjToString(msg["title"]),
+		Content:       qutil.ObjToString(msg["content"]),
+		MsgType:       qutil.Int64All(msg["msg_type"]),
+		Link:          qutil.ObjToString(msg["link"]),
+		CiteId:        qutil.Int64All(msg["cite_id"]),
+		IsRead:        qutil.Int64All(msg["isRead"]),
+		Createtime:    qutil.ObjToString(msg["createtime"]),
+		MsgLogId:      qutil.Int64All(msg["msg_type"]),
 	}
 	result.Code = 0
 	result.Message = "请求成功"

+ 6 - 0
rpc/internal/server/messageserver.go

@@ -81,3 +81,9 @@ func (s *MessageServer) UserUnreadMsgList(ctx context.Context, in *message.UserU
 	l := logic.NewUserUnreadMsgListLogic(ctx, s.svcCtx)
 	return l.UserUnreadMsgList(in)
 }
+
+//  点击消息-存查看记录
+func (s *MessageServer) MsgOpenLog(ctx context.Context, in *message.MsgOpenLogReq) (*message.Response, error) {
+	l := logic.NewMsgOpenLogLogic(ctx, s.svcCtx)
+	return l.MsgOpenLog(in)
+}

+ 4 - 0
rpc/message.go

@@ -18,6 +18,7 @@ import (
 	"app.yhyue.com/moapp/jybase/redis"
 	"flag"
 	"fmt"
+	"github.com/go-xorm/xorm"
 	"github.com/zeromicro/go-zero/core/conf"
 	"github.com/zeromicro/go-zero/core/logx"
 	"github.com/zeromicro/go-zero/zrpc"
@@ -33,6 +34,7 @@ var c config.Config
 func main() {
 	flag.Parse()
 	conf.MustLoad(*configFile, &c)
+	go common.SaveTask()
 	go func() {
 		err := endless.ListenAndServe(":"+mc.InterfaceToStr(c.WebRpcPort), nil, func() {})
 		if err != nil {
@@ -117,4 +119,6 @@ func init() {
 	if config.ConfigJson.SurvivalTime != 0 {
 		entity.SurvivalTime = config.ConfigJson.SurvivalTime
 	}
+	entity.Engine, _ = xorm.NewEngine("mysql", config.ConfigJson.TidbEng)
+	entity.Engine.ShowSQL(true)
 }

+ 9 - 1
rpc/message.proto

@@ -61,7 +61,7 @@ message GetClassUnreadCountReq {
 
 //查看消息内容
 message MessageDetailReq {
-    string id = 1; //消息id
+    int64 id = 1; //消息id
 }
 message MessageDetailResp {
     int64 code = 1; //状态码
@@ -249,6 +249,12 @@ message SendMsgResponse {
   int64 total = 1;    //发送数量
   string message = 2; //响应消息
 }
+message MsgOpenLogReq{
+    int64 msgLogId =1;
+    int64 platform =2;
+    string userId = 3;
+    string appId = 4;
+}
 
 service Message {
     //批量保存消息
@@ -273,4 +279,6 @@ service Message {
     rpc SendWxTmplMsg (WxTmplMsgRequest) returns(SendMsgResponse);
     //   官网、移动端首页、工作桌面消息滚动
     rpc UserUnreadMsgList (UserUnreadMsgListReq) returns (UserUnreadMsgListRes);
+    // 点击消息-存查看记录
+    rpc MsgOpenLog (MsgOpenLogReq) returns (Response);
 }

+ 9 - 0
rpc/messageclient/message.go

@@ -31,6 +31,7 @@ type (
 	MessageDetailReq       = message.MessageDetailReq
 	MessageDetailResp      = message.MessageDetailResp
 	Messages               = message.Messages
+	MsgOpenLogReq          = message.MsgOpenLogReq
 	MsgTypes               = message.MsgTypes
 	MultipleSaveMsgReq     = message.MultipleSaveMsgReq
 	MultipleSaveMsgResp    = message.MultipleSaveMsgResp
@@ -67,6 +68,8 @@ type (
 		SendWxTmplMsg(ctx context.Context, in *WxTmplMsgRequest, opts ...grpc.CallOption) (*SendMsgResponse, error)
 		//    官网、移动端首页、工作桌面消息滚动
 		UserUnreadMsgList(ctx context.Context, in *UserUnreadMsgListReq, opts ...grpc.CallOption) (*UserUnreadMsgListRes, error)
+		//  点击消息-存查看记录
+		MsgOpenLog(ctx context.Context, in *MsgOpenLogReq, opts ...grpc.CallOption) (*Response, error)
 	}
 
 	defaultMessage struct {
@@ -139,3 +142,9 @@ func (m *defaultMessage) UserUnreadMsgList(ctx context.Context, in *UserUnreadMs
 	client := message.NewMessageClient(m.cli.Conn())
 	return client.UserUnreadMsgList(ctx, in, opts...)
 }
+
+//  点击消息-存查看记录
+func (m *defaultMessage) MsgOpenLog(ctx context.Context, in *MsgOpenLogReq, opts ...grpc.CallOption) (*Response, error) {
+	client := message.NewMessageClient(m.cli.Conn())
+	return client.MsgOpenLog(ctx, in, opts...)
+}

+ 162 - 65
rpc/type/message/message.pb.go

@@ -587,7 +587,7 @@ type MessageDetailReq struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //消息id
+	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //消息id
 }
 
 func (x *MessageDetailReq) Reset() {
@@ -622,11 +622,11 @@ func (*MessageDetailReq) Descriptor() ([]byte, []int) {
 	return file_message_proto_rawDescGZIP(), []int{7}
 }
 
-func (x *MessageDetailReq) GetId() string {
+func (x *MessageDetailReq) GetId() int64 {
 	if x != nil {
 		return x.Id
 	}
-	return ""
+	return 0
 }
 
 type MessageDetailResp struct {
@@ -2447,6 +2447,77 @@ func (x *SendMsgResponse) GetMessage() string {
 	return ""
 }
 
+type MsgOpenLogReq struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	MsgLogId int64  `protobuf:"varint,1,opt,name=msgLogId,proto3" json:"msgLogId,omitempty"`
+	Platform int64  `protobuf:"varint,2,opt,name=platform,proto3" json:"platform,omitempty"`
+	UserId   string `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"`
+	AppId    string `protobuf:"bytes,4,opt,name=appId,proto3" json:"appId,omitempty"`
+}
+
+func (x *MsgOpenLogReq) Reset() {
+	*x = MsgOpenLogReq{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_message_proto_msgTypes[32]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *MsgOpenLogReq) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgOpenLogReq) ProtoMessage() {}
+
+func (x *MsgOpenLogReq) ProtoReflect() protoreflect.Message {
+	mi := &file_message_proto_msgTypes[32]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use MsgOpenLogReq.ProtoReflect.Descriptor instead.
+func (*MsgOpenLogReq) Descriptor() ([]byte, []int) {
+	return file_message_proto_rawDescGZIP(), []int{32}
+}
+
+func (x *MsgOpenLogReq) GetMsgLogId() int64 {
+	if x != nil {
+		return x.MsgLogId
+	}
+	return 0
+}
+
+func (x *MsgOpenLogReq) GetPlatform() int64 {
+	if x != nil {
+		return x.Platform
+	}
+	return 0
+}
+
+func (x *MsgOpenLogReq) GetUserId() string {
+	if x != nil {
+		return x.UserId
+	}
+	return ""
+}
+
+func (x *MsgOpenLogReq) GetAppId() string {
+	if x != nil {
+		return x.AppId
+	}
+	return ""
+}
+
 var File_message_proto protoreflect.FileDescriptor
 
 var file_message_proto_rawDesc = []byte{
@@ -2523,7 +2594,7 @@ var file_message_proto_rawDesc = []byte{
 	0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20,
 	0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x22, 0x0a, 0x10, 0x4d, 0x65,
 	0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x0e,
-	0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x68,
+	0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x68,
 	0x0a, 0x11, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52,
 	0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
 	0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
@@ -2740,52 +2811,63 @@ var file_message_proto_rawDesc = []byte{
 	0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74,
 	0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61,
 	0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0xcf, 0x05, 0x0a, 0x07,
-	0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x4c, 0x0a, 0x0f, 0x6d, 0x75, 0x6c, 0x74, 0x69,
-	0x70, 0x6c, 0x65, 0x53, 0x61, 0x76, 0x65, 0x4d, 0x73, 0x67, 0x12, 0x1b, 0x2e, 0x6d, 0x65, 0x73,
-	0x73, 0x61, 0x67, 0x65, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x53, 0x61, 0x76,
-	0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
-	0x65, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x53, 0x61, 0x76, 0x65, 0x4d, 0x73,
-	0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x43, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52,
-	0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x2e, 0x6d, 0x65, 0x73, 0x73,
-	0x61, 0x67, 0x65, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74,
-	0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
-	0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46, 0x69,
-	0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73,
+	0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x75, 0x0a, 0x0d, 0x4d,
+	0x73, 0x67, 0x4f, 0x70, 0x65, 0x6e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08,
+	0x6d, 0x73, 0x67, 0x4c, 0x6f, 0x67, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
+	0x6d, 0x73, 0x67, 0x4c, 0x6f, 0x67, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74,
+	0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74,
+	0x66, 0x6f, 0x72, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05,
+	0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
+	0x49, 0x64, 0x32, 0x88, 0x06, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x4c,
+	0x0a, 0x0f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x53, 0x61, 0x76, 0x65, 0x4d, 0x73,
+	0x67, 0x12, 0x1b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x6d, 0x75, 0x6c, 0x74,
+	0x69, 0x70, 0x6c, 0x65, 0x53, 0x61, 0x76, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1c,
+	0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c,
+	0x65, 0x53, 0x61, 0x76, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x43, 0x0a, 0x10,
+	0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
+	0x12, 0x1c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67,
+	0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x11,
+	0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+	0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67,
+	0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55,
+	0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73,
 	0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52,
-	0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e,
-	0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x11, 0x46,
-	0x69, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
-	0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
-	0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65,
-	0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74,
-	0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, 0x73,
-	0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
-	0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e,
-	0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79,
-	0x70, 0x65, 0x52, 0x65, 0x73, 0x12, 0x4b, 0x0a, 0x0f, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65,
-	0x72, 0x42, 0x75, 0x6f, 0x79, 0x4d, 0x73, 0x67, 0x12, 0x1b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
-	0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x42, 0x75, 0x6f, 0x79, 0x4d,
-	0x73, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
-	0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x42, 0x75, 0x6f, 0x79, 0x4d, 0x73, 0x67, 0x52,
-	0x65, 0x73, 0x12, 0x3f, 0x0a, 0x0e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x55, 0x6e, 0x72, 0x65, 0x61,
-	0x64, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43,
-	0x6c, 0x65, 0x61, 0x72, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71,
-	0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f,
-	0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x4c, 0x69,
-	0x73, 0x74, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55, 0x73, 0x65,
-	0x72, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65,
-	0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73,
-	0x74, 0x52, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x78, 0x54, 0x6d,
-	0x70, 0x6c, 0x4d, 0x73, 0x67, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
-	0x57, 0x78, 0x54, 0x6d, 0x70, 0x6c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
-	0x1a, 0x18, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d,
-	0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x11, 0x55, 0x73,
-	0x65, 0x72, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12,
-	0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x55, 0x6e,
-	0x72, 0x65, 0x61, 0x64, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1d,
-	0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x55, 0x6e, 0x72,
-	0x65, 0x61, 0x64, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x42, 0x0a, 0x5a,
+	0x65, 0x73, 0x12, 0x4a, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
+	0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
+	0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52,
+	0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73,
+	0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3c,
+	0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x2e, 0x6d,
+	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70,
+	0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47,
+	0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x12, 0x4b, 0x0a, 0x0f,
+	0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x42, 0x75, 0x6f, 0x79, 0x4d, 0x73, 0x67, 0x12,
+	0x1b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73,
+	0x65, 0x72, 0x42, 0x75, 0x6f, 0x79, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x6d,
+	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x42,
+	0x75, 0x6f, 0x79, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x0e, 0x43, 0x6c, 0x65,
+	0x61, 0x72, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x2e, 0x6d, 0x65,
+	0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x55, 0x6e, 0x72, 0x65, 0x61,
+	0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
+	0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x55, 0x73,
+	0x65, 0x72, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73,
+	0x61, 0x67, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x52,
+	0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55, 0x73, 0x65,
+	0x72, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x0d, 0x53,
+	0x65, 0x6e, 0x64, 0x57, 0x78, 0x54, 0x6d, 0x70, 0x6c, 0x4d, 0x73, 0x67, 0x12, 0x19, 0x2e, 0x6d,
+	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x57, 0x78, 0x54, 0x6d, 0x70, 0x6c, 0x4d, 0x73, 0x67,
+	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
+	0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+	0x65, 0x12, 0x51, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4d,
+	0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
+	0x2e, 0x55, 0x73, 0x65, 0x72, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x73, 0x67, 0x4c, 0x69,
+	0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
+	0x55, 0x73, 0x65, 0x72, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73,
+	0x74, 0x52, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0a, 0x4d, 0x73, 0x67, 0x4f, 0x70, 0x65, 0x6e, 0x4c,
+	0x6f, 0x67, 0x12, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67,
+	0x4f, 0x70, 0x65, 0x6e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73,
+	0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0a, 0x5a,
 	0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
 	0x33,
 }
@@ -2802,7 +2884,7 @@ func file_message_proto_rawDescGZIP() []byte {
 	return file_message_proto_rawDescData
 }
 
-var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 33)
+var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 34)
 var file_message_proto_goTypes = []interface{}{
 	(*ChangeReadStatusReq)(nil),    // 0: message.ChangeReadStatusReq
 	(*ResCount)(nil),               // 1: message.ResCount
@@ -2836,10 +2918,11 @@ var file_message_proto_goTypes = []interface{}{
 	(*UserUnreadMsgListRes)(nil),   // 29: message.UserUnreadMsgListRes
 	(*WxTmplMsgRequest)(nil),       // 30: message.WxTmplMsgRequest
 	(*SendMsgResponse)(nil),        // 31: message.SendMsgResponse
-	nil,                            // 32: message.Messages.UrlEntry
+	(*MsgOpenLogReq)(nil),          // 32: message.MsgOpenLogReq
+	nil,                            // 33: message.Messages.UrlEntry
 }
 var file_message_proto_depIdxs = []int32{
-	32, // 0: message.Messages.url:type_name -> message.Messages.UrlEntry
+	33, // 0: message.Messages.url:type_name -> message.Messages.UrlEntry
 	4,  // 1: message.FindUserMsgRes.data:type_name -> message.Messages
 	4,  // 2: message.MessageDetailResp.data:type_name -> message.Messages
 	4,  // 3: message.GetLastMessageRes.data:type_name -> message.Messages
@@ -2864,18 +2947,20 @@ var file_message_proto_depIdxs = []int32{
 	23, // 22: message.Message.UserMsgList:input_type -> message.UserMsgListReq
 	30, // 23: message.Message.SendWxTmplMsg:input_type -> message.WxTmplMsgRequest
 	28, // 24: message.Message.UserUnreadMsgList:input_type -> message.UserUnreadMsgListReq
-	18, // 25: message.Message.multipleSaveMsg:output_type -> message.multipleSaveMsgResp
-	2,  // 26: message.Message.ChangeReadStatus:output_type -> message.Response
-	5,  // 27: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
-	8,  // 28: message.Message.FindMessageDetail:output_type -> message.MessageDetailResp
-	15, // 29: message.Message.GetMsgType:output_type -> message.GetMsgTypeRes
-	20, // 30: message.Message.FindUserBuoyMsg:output_type -> message.FindUserBuoyMsgRes
-	2,  // 31: message.Message.ClearUnreadMsg:output_type -> message.Response
-	24, // 32: message.Message.UserMsgList:output_type -> message.UserMsgListRes
-	31, // 33: message.Message.SendWxTmplMsg:output_type -> message.SendMsgResponse
-	29, // 34: message.Message.UserUnreadMsgList:output_type -> message.UserUnreadMsgListRes
-	25, // [25:35] is the sub-list for method output_type
-	15, // [15:25] is the sub-list for method input_type
+	32, // 25: message.Message.MsgOpenLog:input_type -> message.MsgOpenLogReq
+	18, // 26: message.Message.multipleSaveMsg:output_type -> message.multipleSaveMsgResp
+	2,  // 27: message.Message.ChangeReadStatus:output_type -> message.Response
+	5,  // 28: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
+	8,  // 29: message.Message.FindMessageDetail:output_type -> message.MessageDetailResp
+	15, // 30: message.Message.GetMsgType:output_type -> message.GetMsgTypeRes
+	20, // 31: message.Message.FindUserBuoyMsg:output_type -> message.FindUserBuoyMsgRes
+	2,  // 32: message.Message.ClearUnreadMsg:output_type -> message.Response
+	24, // 33: message.Message.UserMsgList:output_type -> message.UserMsgListRes
+	31, // 34: message.Message.SendWxTmplMsg:output_type -> message.SendMsgResponse
+	29, // 35: message.Message.UserUnreadMsgList:output_type -> message.UserUnreadMsgListRes
+	2,  // 36: message.Message.MsgOpenLog:output_type -> message.Response
+	26, // [26:37] is the sub-list for method output_type
+	15, // [15:26] is the sub-list for method input_type
 	15, // [15:15] is the sub-list for extension type_name
 	15, // [15:15] is the sub-list for extension extendee
 	0,  // [0:15] is the sub-list for field type_name
@@ -3271,6 +3356,18 @@ func file_message_proto_init() {
 				return nil
 			}
 		}
+		file_message_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*MsgOpenLogReq); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
 	}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
@@ -3278,7 +3375,7 @@ func file_message_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_message_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   33,
+			NumMessages:   34,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 38 - 0
rpc/type/message/message_grpc.pb.go

@@ -42,6 +42,8 @@ type MessageClient interface {
 	SendWxTmplMsg(ctx context.Context, in *WxTmplMsgRequest, opts ...grpc.CallOption) (*SendMsgResponse, error)
 	//   官网、移动端首页、工作桌面消息滚动
 	UserUnreadMsgList(ctx context.Context, in *UserUnreadMsgListReq, opts ...grpc.CallOption) (*UserUnreadMsgListRes, error)
+	// 点击消息-存查看记录
+	MsgOpenLog(ctx context.Context, in *MsgOpenLogReq, opts ...grpc.CallOption) (*Response, error)
 }
 
 type messageClient struct {
@@ -142,6 +144,15 @@ func (c *messageClient) UserUnreadMsgList(ctx context.Context, in *UserUnreadMsg
 	return out, nil
 }
 
+func (c *messageClient) MsgOpenLog(ctx context.Context, in *MsgOpenLogReq, opts ...grpc.CallOption) (*Response, error) {
+	out := new(Response)
+	err := c.cc.Invoke(ctx, "/message.Message/MsgOpenLog", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // MessageServer is the server API for Message service.
 // All implementations must embed UnimplementedMessageServer
 // for forward compatibility
@@ -166,6 +177,8 @@ type MessageServer interface {
 	SendWxTmplMsg(context.Context, *WxTmplMsgRequest) (*SendMsgResponse, error)
 	//   官网、移动端首页、工作桌面消息滚动
 	UserUnreadMsgList(context.Context, *UserUnreadMsgListReq) (*UserUnreadMsgListRes, error)
+	// 点击消息-存查看记录
+	MsgOpenLog(context.Context, *MsgOpenLogReq) (*Response, error)
 	mustEmbedUnimplementedMessageServer()
 }
 
@@ -203,6 +216,9 @@ func (UnimplementedMessageServer) SendWxTmplMsg(context.Context, *WxTmplMsgReque
 func (UnimplementedMessageServer) UserUnreadMsgList(context.Context, *UserUnreadMsgListReq) (*UserUnreadMsgListRes, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method UserUnreadMsgList not implemented")
 }
+func (UnimplementedMessageServer) MsgOpenLog(context.Context, *MsgOpenLogReq) (*Response, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method MsgOpenLog not implemented")
+}
 func (UnimplementedMessageServer) mustEmbedUnimplementedMessageServer() {}
 
 // UnsafeMessageServer may be embedded to opt out of forward compatibility for this service.
@@ -396,6 +412,24 @@ func _Message_UserUnreadMsgList_Handler(srv interface{}, ctx context.Context, de
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Message_MsgOpenLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(MsgOpenLogReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(MessageServer).MsgOpenLog(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/message.Message/MsgOpenLog",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(MessageServer).MsgOpenLog(ctx, req.(*MsgOpenLogReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Message_ServiceDesc is the grpc.ServiceDesc for Message service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -443,6 +477,10 @@ var Message_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "UserUnreadMsgList",
 			Handler:    _Message_UserUnreadMsgList_Handler,
 		},
+		{
+			MethodName: "MsgOpenLog",
+			Handler:    _Message_MsgOpenLog_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "message.proto",