Files

64 lines
1.3 KiB
Erlang
Raw Permalink Normal View History

2026-05-23 22:10:14 +08:00
%%%-------------------------------------------------------------------
%%% @author Administrator
%%% @copyright (C) 2023, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 14. 9月 2023 13:48
%%%-------------------------------------------------------------------
-module(proto_296).
-author("Administrator").
%% API
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"神秘人宝藏"
,[]
}.
-spec cfg() -> [#rpc{}].
cfg() ->[
#rpc{
code = 29600
,log_title = "基本信息"
,req_desc = "基本信息"
,req = [
]
,reply = [
{uint32, period, "周期数"}
,{array, single, reward_list, "已领取奖励id", [
{uint32, id, "坐标"}
]},
{uint32, num, "剩余抽奖次数"}
]
}
,#rpc{
code = 29601
,log_title = "抽奖"
,req_desc = "抽奖"
,req = [
{uint32, action, "0-抽奖, 1-确认抽奖"}
]
,reply_desc = "抽奖"
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint32, reward_id, "奖励id"}
]
}
,#rpc{
code = 29602
,log_title = "推送周期更新"
,req_desc = "推送周期更新"
,req = [
]
,reply_desc = "推送周期更新"
,reply = [
{uint32, period, "新的周期数"}
]
}
].