ecs/proto/idl/mod_counter.proto

27 lines
663 B
Protocol Buffer
Raw Normal View History

2025-06-04 18:17:39 +08:00
syntax = "proto3";
package Pb;
option go_package = "pb/";
// ModId.ModuleCounter: 7000
// 登录模块消息定义
// 如果定义的消息内没有字段或者消息被注释掉了,说明该请求不需要参数,发送消息时仅发送包头即可,包体可为空, 返回的消息亦是如此。
message Counter {
2025-06-05 17:48:23 +08:00
uint32 Type = 1;
uint64 Key = 2;
int64 Time = 3;
uint32 Daily = 4;
uint32 Total = 5;
2025-06-04 18:17:39 +08:00
}
// MsgId.ModCounterList: 7001
// 计数器列表返回
message CounterListAck {
2025-06-05 17:48:23 +08:00
repeated Counter CounterList = 1;
2025-06-04 18:17:39 +08:00
}
// MsgId.ModCounterChange: 7002
// 计数器变更返回
message CounterChangeAck {
2025-06-05 17:48:23 +08:00
Counter Counter = 1;
2025-06-04 18:17:39 +08:00
}