xy 5 gün önce
ebeveyn
işleme
f8edbd851e

+ 1 - 0
bin/client_msg/common.proto

@@ -264,6 +264,7 @@ message HistoryRecord{
   int32 id = 1;
   int32 room_id = 2;
   string user_id = 3;
+  string time = 4;
 }
 
 message ReqLudoHistory{

+ 1 - 0
src/server/hall/history/history.go

@@ -82,6 +82,7 @@ func GetHistoryByUserID(userID string) ([]*msg.HistoryRecord, error) {
 			Id:     int32(record.ID),
 			RoomId: int32(record.RoomID),
 			UserId: record.UserID,
+			Time:   record.CreateTime.GoString(),
 		})
 	}
 

+ 11 - 2
src/server/msg/common.pb.go

@@ -2337,6 +2337,7 @@ type HistoryRecord struct {
 	Id            int32                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 	RoomId        int32                  `protobuf:"varint,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
 	UserId        string                 `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+	Time          string                 `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
 	unknownFields protoimpl.UnknownFields
 	sizeCache     protoimpl.SizeCache
 }
@@ -2392,6 +2393,13 @@ func (x *HistoryRecord) GetUserId() string {
 	return ""
 }
 
+func (x *HistoryRecord) GetTime() string {
+	if x != nil {
+		return x.Time
+	}
+	return ""
+}
+
 type ReqLudoHistory struct {
 	state         protoimpl.MessageState `protogen:"open.v1"`
 	UserId        string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
@@ -2794,11 +2802,12 @@ const file_common_proto_rawDesc = "" +
 	"\aResShop\x12\x18\n" +
 	"\asuccess\x18\x01 \x01(\bR\asuccess\x12\"\n" +
 	"\aerr_msg\x18\x02 \x01(\v2\t.MsgErrorR\x06errMsg\x12\x1d\n" +
-	"\x04list\x18\x03 \x03(\v2\t.ShopItemR\x04list\"Q\n" +
+	"\x04list\x18\x03 \x03(\v2\t.ShopItemR\x04list\"e\n" +
 	"\rHistoryRecord\x12\x0e\n" +
 	"\x02id\x18\x01 \x01(\x05R\x02id\x12\x17\n" +
 	"\aroom_id\x18\x02 \x01(\x05R\x06roomId\x12\x17\n" +
-	"\auser_id\x18\x03 \x01(\tR\x06userId\")\n" +
+	"\auser_id\x18\x03 \x01(\tR\x06userId\x12\x12\n" +
+	"\x04time\x18\x04 \x01(\tR\x04time\")\n" +
 	"\x0eReqLudoHistory\x12\x17\n" +
 	"\auser_id\x18\x01 \x01(\tR\x06userId\"r\n" +
 	"\x0eResLudoHistory\x12\x18\n" +

+ 9 - 1
src/server/webserver/main.go

@@ -71,8 +71,16 @@ func main() {
 	r.POST("/ReqRegister", ParseProtoBuf(&msg.ReqRegister{}), ReqRegister)
 	r.POST("/ReqShop", ParseProtoBuf(&msg.ReqShop{}), ReqShop)
 
-	r.POST("/GetHistorList", ParseProtoBuf(&msg.ReqLudoHistory{}), GetHistorList)
+	//战绩
+	r.POST("/GetHistoryList", ParseProtoBuf(&msg.ReqLudoHistory{}), GetHistorList)
 	r.POST("/GetLudoRoomInfo", ParseProtoBuf(&msg.ReqLudoRoomInfo{}), GetLudoRoomInfo)
 
+	//邮件
+
+	//好友
+
+	//活动
+
+	//背包
 	r.Run(":8080") // 默认监听 :8080
 }