Files
2026-05-23 22:10:14 +08:00

50 lines
1.4 KiB
Erlang

%%----------------------------------------------------
%% 合服目标
%%
%% @author linguohui
%%----------------------------------------------------
-module(proto_273).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"合服目标"
,[]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 27300
,log_title = "合服目标信息"
,req_desc = "合服目标信息"
,req = []
,reply_desc = "合服目标信息"
,reply = [
{uint32, end_time, "剩余时间"}
,{uint32, lev, "当前奖励等级"}
,{uint32, score, "当前等级全服积分"}
,{uint32, max_score, "当前等级全服最大积分"}
,{array, single, reward, "已领取过的奖励id", [
{uint32, id, "奖励id"}
]}
]
}
,#rpc{
code = 27301
,log_title = "领取奖励"
,req_desc = "领取奖励"
,req = [
{array, single, reward_list, "奖励序号列表", [
{uint32, id, "奖励序号"}
]}
]
,reply_desc = "领取奖励"
,reply = [
{uint8, flag, "是否成功 是:1 否:0"}
,{string, msg, "信息"}
]
}
].