%%---------------------------------------------------- %% 数据配置文件 %% @author %%---------------------------------------------------- -module(holiday_client_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_client_data ,lua_name = holiday_client_data ,desc = "配置数据" ,source = "holiday_client_data.xml" ,target = "holiday_client_data.erl" ,inc = [] ,callback = [ ] ,callback_cli = [ {info, cb_fun_lua, handle, {key_val, ["DATA"], bid, all}} ,{constant, cb_fun_lua, handle, {key_val, ["常量"], sign, all}} ] ,callback_json = [ {info, cb_fun_json, handle, {key_val, ["DATA"], bid, all}} ,{constant, cb_fun_json, handle, {key_val, ["常量"], sign, all}} ] ,sheet = [ {["DATA"], [ #f_column{type = int, name = bid, desc = "基础ID", mod = all} ,#f_column{type = int, name = sort_val, desc = "排序", mod = all} ,#f_column{type = bstr, name = title, desc = "左侧标题", mod = all} ,#f_column{type = bstr, name = ico, desc = "左侧图标", mod = all} ,#f_column{type = int, name = type_ico, desc = "类型图标", mod = all} ,#f_column{type = int, name = panel_type, desc = "客户端面板类型", mod = all} ,#f_column{type = kv, name = type, desc = "所属面板", kv_type = [{"精彩活动", 1}, {"福利", 2}], mod = all} ,#f_column{type = kv, name = is_verifyios, desc = "审核服是否显示", kv_type = [{"是", 1}, {"否", 0}], val_cli = 1, mod = client} ,#f_column{type = term, name = open_lev, desc = "开放等级", mod = all} ,#f_column{type = term, name = items, desc = "展示奖励", mod = all} ]} ,{["常量"], [ #f_column{type = bstr, name = sign, desc = "标志", mod = all} ,#f_column{type = term, name = items, desc = "值", mod = all} ,#f_column{type = bstr, name = desc, desc = "描述", mod = all} ]} ] }.