%%---------------------------------------------------- %% 新春限购重置数据配置文件 %% @author wujinhan<947537249@qq.com> %%---------------------------------------------------- -module(holiday_charge_reset_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_charge_reset_data ,lua_name = holiday_charge_reset_data ,desc = "新春限购重置活动配置数据" ,source = "holiday_charge_reset_data.xml" ,target = "holiday_charge_reset_data.erl" ,inc = ["common.hrl"] ,callback = [ {get_const, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~s) -> ~s; %% ~ts", [label,val,desc]}} ,{period_list, cb_fun, handle, {tuple_list, ["周期配置"], [period, start_time, end_time, open_cond]}} ] ,callback_cli = [ ] ,sheet = [ {["常量配置"],[ #f_column{type = term, name = label, 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 = all} ]} ,{["周期配置"], [ #f_column{type = int, name = period, desc = "周期", mod = all} ,#f_column{type = term, name = start_time, desc = "开启时间", add_list_sign = false, mod = all} ,#f_column{type = term, name = end_time, desc = "结束时间", add_list_sign = false, mod = all} ,#f_column{type = term, name = open_cond, desc = "开启条件", mod = all} ]} ] }.