Files

57 lines
1.6 KiB
Erlang
Raw Permalink Normal View History

2026-05-23 22:10:14 +08:00
%%----------------------------------------------------
%% 不放回皮肤抽奖
%%
%% @author xxxx@xxx.xxx
%%----------------------------------------------------
-module(proto_266).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"不放回皮肤抽奖"
,[]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 26600
,log_title = "不放回抽奖"
,req_desc = "不放回抽奖"
,req = []
,reply = [
{uint8, flag, "成功1失败0"}
,{string, msg, "返回信息"}
,{uint32, time, "当前次数"}
,{uint32, sort, "奖品顺序号"}
]
}
,#rpc{
code = 26601
,log_title = "获得当前次数"
,req_desc = "获得当前次数"
,req = []
,reply = [
{uint32, time, "当前次数"}
,{uint32, last_time, "活动剩余时间"}
,{uint32, lottery_id, "池库id"}
,{array, single, sort_list, "还未获得的奖品序号", [
{uint32, sort, "顺序号"}
]}
]
}
,#rpc{
code = 26602
,log_title = "不放回抽奖奖品播报"
,req_desc = "不放回抽奖奖品播报"
,req = []
,reply = [
{array, tuple, reward_list, "奖品列表", [
{uint32, bid, "物品id"}
,{uint32, num, "数量"}
]}
]
}
].