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

71 lines
1.9 KiB
Erlang
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
%%----------------------------------------------------
%% 奇遇冒险协议
%%
%% @author linguohui
%%----------------------------------------------------
-module(proto_271).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"奇遇冒险协议"
,[]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 27100
,req_desc = "奇遇冒险情况"
,req = []
,reply_desc = "奇遇冒险情况"
,reply = [
{uint32, id, "奇遇唯一Id,没有则为0"}
,{uint32, page, "页码没有则为0"}
]
}
,#rpc{
code = 27101
,req_desc = "领取奖励"
,req = []
,reply_desc = "返回信息"
,reply = [
{uint8, flag, "是否成功 是:1 否:0"}
,{string, msg, "返回信息"}
]
}
,#rpc{
code = 27102
,req_desc = "请求拥有的全部图鉴"
,req = []
,reply_desc = "请求拥有的全部图鉴"
,reply = [
{array, single, id_list, "奇遇冒险id列表", [
{uint32, id, "奇遇冒险id"}
]}
]
}
,#rpc{
code = 27103
,req_desc = "奇遇翻页"
,req = [
{uint32, id, "奇遇唯一id"}
, {uint32, page, "页码"}
]
,reply = []
}
,#rpc{
code = 27104
,req_desc = "答题选项"
,req = [
{uint8, choice, "选项"}
]
,reply_desc = "返回信息"
,reply = [
{uint8, flag, "是否成功 是:1 否:0"}
,{string, msg, "返回信息"}
]
}
].