56 lines
1.9 KiB
Erlang
56 lines
1.9 KiB
Erlang
%%%-------------------------------------------------------------------
|
|
%%% @author Administrator
|
|
%%% @copyright (C) 2023, <COMPANY>
|
|
%%% @doc
|
|
%%%
|
|
%%% @end
|
|
%%% Created : 25. 9月 2023 19:46
|
|
%%%-------------------------------------------------------------------
|
|
-module(double_red_packet_data).
|
|
-author("Administrator").
|
|
|
|
%% API
|
|
-export([]).
|
|
|
|
-export([cfg/0]).
|
|
-include("data_config.hrl").
|
|
-include("common.hrl").
|
|
cfg() ->
|
|
#data_cfg{
|
|
name = double_red_packet_data
|
|
,lua_name = double_red_packet_data
|
|
,desc = "副本配置数据"
|
|
,source = "double_red_packet_data.xml"
|
|
,target = "double_red_packet_data.erl"
|
|
,inc = ["common.hrl"]
|
|
,callback = [
|
|
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
|
|
,{list_ext_reward, cb_fun, handle, {tuple_list, ["翻倍红包"], [num, rate]}}
|
|
]
|
|
,callback_json = [
|
|
{drama_const, cb_fun_json, handle, {key_val, ["常量配置"], [key], all}}
|
|
,{drama_reward, cb_fun_json, handle, {key_val, ["翻倍红包"], [id], all}}
|
|
,{desc, cb_fun_json, handle, {key_val, ["规则说明"], id, all}}
|
|
]
|
|
,sheet = [
|
|
|
|
{["常量配置"],[
|
|
#f_column{type = atom, name = key, desc = "常量标识",mod = all}
|
|
,#f_column{type = term, name = val, desc = "常量值", add_list_sign = false,mod= all}
|
|
,#f_column{type = bstr, name = desc, desc = "描述", mod = client}
|
|
]}
|
|
|
|
,{["翻倍红包"],[
|
|
#f_column{type = int, name = id, desc = "id",mod = all}
|
|
,#f_column{type = int, name = num, desc = "人数",mod = all}
|
|
,#f_column{type = int, name = rate, desc = "倍数", mod = all}
|
|
]}
|
|
, {["规则说明"],
|
|
[#f_column{type = int, name = id, desc = "标签", mod = all}
|
|
,#f_column{type = bstr, name = name, desc = "标签名", mod = all}
|
|
,#f_column{type = bstr, name = desc, desc = "内容", mod = all}
|
|
]}
|
|
|
|
]
|
|
}.
|