%%---------------------------------------------------- %% 数据配置文件 %% @author %%---------------------------------------------------- -module(holiday_accumulate_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_accumulate_data ,lua_name = holiday_accumulate_data ,desc = "配置数据" ,source = "holiday_accumulate_data.xml" ,target = "holiday_accumulate_data.erl" ,inc = [] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{{get, "[]"}, cb_fun, handle, {get_tuple, ["奖励配置"], period, award}} ] ,callback_cli = [ ] ,callback_json = [ {get_const, cb_fun_json, handle, {key_val, ["常量配置"], [key], all}} ] ,sheet = [ {["常量配置"], [ #f_column{type = atom, name = key, desc = "键", primary = true, mod = all} ,#f_column{type = term, name = val, desc = "值", add_list_sign=false, mod = all} ,#f_column{type = str, name = desc, desc = "描述", mod = all} ]} ,{["奖励配置"], [ #f_column{type = int, name = period, desc = "周期", mod = all} ,#f_column{type = term, name = award, desc = "奖励", mod = all} ]} ] }.