ecs/proto/idl/mod_counter.proto
2025-06-05 17:48:23 +08:00

27 lines
663 B
Protocol Buffer

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