%%---------------------------------------------------- %% 数据配置文件 %% @author linguohui %%---------------------------------------------------- -module(red_point_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = red_point_data ,lua_name = red_point_data ,js_name = red_point_data ,desc = "配置数据" ,source = "red_point_data.xml" ,target = "red_point_data.erl" ,splitv = 1 ,head_rows = 1 ,inc = ["common.hrl"] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{get_all_red_point, cb_fun, handle, {tuple_list, ["红点控制"], id}} ] ,callback_cli = [ ] ,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 = id, desc = "id", primary = true, mod = all} ,#f_column{type = str, name = name, desc = "信息", mod = all} ]} ] }.