%%---------------------------------------------------- %% 数据配置文件 %% @author whjing2011@gmail.com %%---------------------------------------------------- -module(ad_show). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = ad_show ,lua_name = ad_show ,desc = "广告展示" ,source = "ad_show.xml" ,target = "ad_show.erl" ,inc = [] ,callback = [ {show_func, cb_fun, handle, {tuple_list, ["聚合页"], [name, img, link, is_new, total_id, camp_id]}} ] ,callback_cli = [ ] ,callback_json = [ {adshow_cost, cb_fun_json, handle, {key_val, [ "常量"], [key], all}} ,{adshow_roll, cb_fun_json, handle, {key_val, [ "滚动窗口"], [id], all}} ,{adshow_func, cb_fun_json, handle, {key_val, [ "聚合页"], [id], 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 = id, desc = "序列", primary = true, mod = all} ,#f_column{type = str, name = img, desc = "图片资源", mod = all} ,#f_column{type = str, name = link, desc = "跳转链接", mod = all} ]} ,{["聚合页"], [ #f_column{type = int, name = id, desc = "序列", primary = true, mod = all} ,#f_column{type = bstr, name = name, desc = "活动名称", mod = all} ,#f_column{type = bstr, name = img, desc = "图片资源", mod = all} ,#f_column{type = bstr, name = link, desc = "跳转链接", mod = all} ,#f_column{type = int, name = is_new, desc = "是否新活动", mod = all} ,#f_column{type = int, name = total_id, desc = "主题id", mod = all} ,#f_column{type = int, name = camp_id, desc = "活动id", mod = all} ,#f_column{type = bstr, name = cli_icon, desc = "角标", mod = all} ]} ] }.