%%---------------------------------------------------- %% 数据配置文件 %% @author whjing2011@gmail.com %%---------------------------------------------------- -module(charge_mall_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = charge_mall_data ,lua_name = charge_mall_data ,desc = "充值商城配置数据" ,source = "charge_mall_data.xml" ,target = "charge_mall_data.erl" ,inc = [] ,callback = [ {{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量配置"], key, val}} ,{{get_item, "undefined"}, cb_fun, handle, {get_tuple, ["皮肤直购商店"], charge_id, [award, skin_id]}} ,{get_mall_list, cb_fun, handle, {tuple_list, ["充值商城类型"], [id, limit]}} ,{{get_son_mall, "[]"}, cb_fun, handle, {get_tuple, ["充值商城类型"], id, subtype}} ,{get_mall_cond2, cb_fun, handle, {get_tuple, ["充值商城类型"], id, limit_2}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, [ "常量配置"], [key], all}} ,{charge_shop, cb_fun_lua, handle, {key_val, [ "充值商城类型"], [id], all}} ,{skin_mall, cb_fun_lua, handle, {key_val, [ "皮肤直购商店"], [id], all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, [ "常量配置"], [key], all}} ,{charge_shop, cb_fun_json, handle, {key_val, [ "充值商城类型"], [id], all}} ,{skin_mall, cb_fun_json, handle, {key_val, [ "皮肤直购商店"], [id], all}} ] ,sheet = [ {["常量配置"],[ #f_column{type = term, name = key, 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 = client} ]} ,{["充值商城类型"], [ #f_column{type = int, name = id, desc = "商城ID", mod = all} ,#f_column{type = bstr, name = name, desc = "商城名字", mod = all} ,#f_column{type = term, name = subtype, desc = "子商城", mod = all} ,#f_column{type = term, name = limit, desc = "开启条件", val = "[]", mod = all} ,#f_column{type = int, name = sort, desc = "排序", mod = client} ,#f_column{type = bstr, name = res_id, desc = "资源id", mod = client} ,#f_column{type = int, name = first_tab, desc = "是否为一级标签页", mod = client} ,#f_column{type = bstr, name = bg_id, desc = "背景资源id", mod = client} ,#f_column{type = term, name = limit_2, desc = "开启条件2", val = "[]", mod = all} ]} ,{["皮肤直购商店"], [ #f_column{type = int, name = id, desc = "ID", mod = all} ,#f_column{type = int, name = skin_id, desc = "皮肤id", mod = all} ,#f_column{type = int, name = price, desc = "价格", mod = all} ,#f_column{type = int, name = charge_id, desc = "充值id", mod = all} ,#f_column{type = int, name = sort, desc = "排序", mod = client} ,#f_column{type = term, name = award, desc = "物品列表", mod = all} ,#f_column{type = int, name = skin_bid, desc = "皮肤物品id", mod = client} ]} ] }.