78 lines
4.8 KiB
Erlang
78 lines
4.8 KiB
Erlang
|
|
|
||
|
|
%%----------------------------------------------------
|
||
|
|
%% 月基金配置文件
|
||
|
|
%% @author yzq
|
||
|
|
%%----------------------------------------------------
|
||
|
|
-module(month_fund_data).
|
||
|
|
-export([cfg/0]).
|
||
|
|
-include("data_config.hrl").
|
||
|
|
-include("common.hrl").
|
||
|
|
cfg() ->
|
||
|
|
#data_cfg{
|
||
|
|
name = month_fund_data
|
||
|
|
,lua_name = month_fund_data
|
||
|
|
,desc = "月基金"
|
||
|
|
,source = "month_fund_data.xml"
|
||
|
|
,target = "month_fund_data.erl"
|
||
|
|
,inc = ["common.hrl"]
|
||
|
|
,callback = [
|
||
|
|
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
|
||
|
|
,{{fund_info, undefined}, cb_fun, handle, {get_tuple, ["基金信息"], charge_id, id}}
|
||
|
|
,{fund_list, cb_fun, handle, {list, ["基金信息"]}}
|
||
|
|
,{{fund_open_time, undefined}, cb_fun, handle, {tuple_type, ["基金开启时间"], id, [start_time, end_time]}}
|
||
|
|
,{fund_group, cb_fun, handle, {get_fun, ["基金奖励库"], "fund_group({~ts, Lev, OpenTimestamp, BuyTime}) when Lev >= ~ts andalso Lev =< ~ts andalso OpenTimestamp >= ~ts andalso OpenTimestamp =< ~ts andalso BuyTime >= ~ts andalso BuyTime =< ~ts -> ~ts;", [id, min, max, open_min, open_max, buy_min, buy_max, group_id]}}
|
||
|
|
,{fund_reward, cb_fun, handle, {get_tuple, ["基金奖励"], [group_id, day], reward}}
|
||
|
|
,{fund_name, cb_fun, handle, {get_tuple, ["基金信息"], id, name}}
|
||
|
|
,{fund_val, cb_fun, handle, {get_tuple, ["基金信息"], id, val}}
|
||
|
|
]
|
||
|
|
,callback_cli = [
|
||
|
|
{const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}}
|
||
|
|
,{fund_data, cb_fun_lua, handle, {key_val, ["基金信息"], id, all}}
|
||
|
|
,{fund_group, cb_fun_lua, handle, {key_val, ["基金奖励库"], group_id, [reward, effect_val]}}
|
||
|
|
,{fund_award, cb_fun_lua, handle, {type_get_val, ["基金奖励"], [group_id, day], reward}}
|
||
|
|
]
|
||
|
|
,callback_json = [
|
||
|
|
{const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}}
|
||
|
|
,{fund_data, cb_fun_json, handle, {key_val, ["基金信息"], id, all}}
|
||
|
|
,{fund_group, cb_fun_json, handle, {key_val, ["基金奖励库"], group_id, [reward, effect_val]}}
|
||
|
|
,{fund_award, cb_fun_json, handle, {type_get_val, ["基金奖励"], [group_id, day], reward}}
|
||
|
|
]
|
||
|
|
,sheet = [
|
||
|
|
{["常量配置"],[
|
||
|
|
#f_column{type = term, name = key, desc = "常量标识", add_list_sign = false,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 = bstr, name = name, desc = "名称", mod = all}
|
||
|
|
,#f_column{type = int, name = val, desc = "档次", mod = all}
|
||
|
|
,#f_column{type = int, name = charge_id, desc = "充值ID", mod = all}
|
||
|
|
,#f_column{type = bstr, name = desc, desc = "描述", mod = client}
|
||
|
|
,#f_column{type = int, name = icon_id, desc = "图标id", mod = client}
|
||
|
|
]}
|
||
|
|
,{["基金开启时间"], [
|
||
|
|
#f_column{type = int, name = id, desc = "ID", mod = all}
|
||
|
|
,#f_column{type = term, name = start_time, desc = "开始时间", mod = all, add_list_sign = false}
|
||
|
|
,#f_column{type = term, name = end_time, desc = "结束时间", mod = all, add_list_sign = false}
|
||
|
|
]}
|
||
|
|
,{["基金奖励库"], [
|
||
|
|
#f_column{type = int, name = id, desc = "ID", mod = all}
|
||
|
|
,#f_column{type = int, name = min, desc = "等级下限", mod = all}
|
||
|
|
,#f_column{type = int, name = max, desc = "等级上限", mod = all}
|
||
|
|
,#f_column{type = int, name = open_min, desc = "开服时间戳下限", mod = all}
|
||
|
|
,#f_column{type = int, name = open_max, desc = "开服时间戳上限", mod = all}
|
||
|
|
,#f_column{type = int, name = buy_min, desc = "付款时间戳下限", mod = all}
|
||
|
|
,#f_column{type = int, name = buy_max, desc = "付款时间戳上限", mod = all}
|
||
|
|
,#f_column{type = int, name = group_id, desc = "奖励库ID", mod = all}
|
||
|
|
,#f_column{type = term, name = reward, desc = "部分天数奖励", mod = client}
|
||
|
|
,#f_column{type = term, name = effect_val, desc = "特殊奖励特效", mod = client}
|
||
|
|
]}
|
||
|
|
,{["基金奖励"], [
|
||
|
|
#f_column{type = int, name = group_id, desc = "库ID", mod = all}
|
||
|
|
,#f_column{type = int, name = day, desc = "天数", mod = all}
|
||
|
|
,#f_column{type = term, name = reward, desc = "奖励", mod = all}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}.
|