Files
fc/server/tools/gen_proto/cfg/proto_278.erl
T

57 lines
1.9 KiB
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%----------------------------------------------------
%% 触发礼包
%%
%% @author wujinhan<947537249@qq.com>
%%----------------------------------------------------
-module(proto_278).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"触发礼包"
,["common.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 27800
,log_title = "触发礼包信息"
,req_desc = "触发礼包信息"
,req = []
,reply = [
{array, tuple, list, "道具信息", [
{uint32, id, "商品ID"}
,{uint32, price, "价格"}
,{uint32, charge_id, "充值id"}
,{uint8, limit_type, "限购类型(1:天限购,2:周限购,3:月限购,4:永久限购)"}
,{uint32, buy_num, "已买次数"}
,{uint32, limit_num, "限购次数"}
,{uint32, original_price, "原价"}
,{string, res_name, "资源名"}
,{uint32, rank, "排序"}
,{uint32, icon, "icon"}
,{uint32, end_time, "结束时间"}
,{array, tuple, award_list, "物品信息", [
{uint32, item_id, "物品ID"}
,{uint32, item_num, "物品数量"}
]}
]}
]
}
,#rpc{
code = 27801
,log_title = "0元礼包购买"
,req_desc = ""
,req = [
{uint32, package_id, "充值id"}
]
,reply_desc = "0元礼包购买"
,reply = [
{uint8, code, "状态码,0:失败,1:成功"}
, {string, msg, "附加消息"}
]
}
].