Files
fc/server/tools/gen_proto/cfg/proto_203.erl
T
2026-05-23 22:10:14 +08:00

49 lines
1.4 KiB
Erlang

%%%-------------------------------------------------------------------
%%% @author liwl <assistabc@qq.com>
%%% @copyright (C) 2017, liwl
%%% @doc
%%% 活跃度协议配置文件
%%% @end
%%% Created : 11 May 2017 by liwl <assistabc@qq.com>
%%%-------------------------------------------------------------------
-module(proto_203).
-export([
info/0
,cfg/0
]
).
-include("protocol.hrl").
info() -> {
"活跃度协议"
,[]
}.
cfg() ->
[
#rpc{
code = 20300
,log_title = "活跃宝箱信息"
, req_desc = "活跃宝箱信息"
, req = []
, reply_desc = "活跃宝箱信息"
, reply = [
{array, single, activity_box, "已领取的活跃宝箱"
, [{uint16, activity, "活跃度"}]
}
]
}
, #rpc{
code = 20301
,log_title = {"领取活跃[~w]宝箱", [activity]}
, req_desc = {"领取活跃[~w]宝箱", [activity]}
, req = [{uint16, activity, "活跃度"}]
, reply_desc = {"领取活跃[~w]宝箱[code:~w][msg:~ts]", [activity, code, msg]}
, reply = [
{uint8, code, "状态码,0:失败,1:成功"}
, {string, msg, "附加消息"}
, {uint8, activity, "活跃度"}
]
}
].