%%---------------------------------------------------- %% 数据配置文件 %% @author wujinhan<947537249@qq.com> %%---------------------------------------------------- -module(holiday_fire_gift_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_fire_gift_data ,lua_name = holiday_fire_gift_data ,desc = "触发礼包配置数据" ,source = "holiday_fire_gift_data.xml" ,target = "holiday_fire_gift_data.erl" ,inc = [] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} , {gift_list, cb_fun, handle, {tuple_list, ["data"], [id, mapping_cond]}} , {get_gift_info, cb_fun, handle, {get_tuple, ["data"], id, [charge_id, period_time, limit_count, loop, limit_type]}} , {get_gift_info1, cb_fun, handle, {get_tuple, ["data"], id, [price, original_price, res_name, rank, icon, award]}} , {get_award, cb_fun, handle, {get_tuple, ["data"], charge_id, award}} , {get_price, cb_fun, handle, {get_tuple, ["data"], charge_id, price}} ] ,callback_cli = [ ] ,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} ]} ,{["data"], [ #f_column{type = int, name = id, desc = "商品id", mod = all} ,#f_column{type = int, name = charge_id, desc = "充值id", mod = all} ,#f_column{type = term, name = award, desc = "商品", mod = all} ,#f_column{type = int, name = price, desc = "价格", mod = all} ,#f_column{type = int, name = period_time, val = "0", desc = "周期时间(秒)", mod = all} ,#f_column{type = int, name = limit_count, val = "0", desc = "限购次数", mod = all} ,#f_column{type = int, name = loop, val = "0", desc = "是否循环", mod = all} ,#f_column{type = int, name = limit_type, val = "0", desc = "限购类型", comment = "1:日限购,2:周限购,3:月限购,4:永久限购",mod = all} ,#f_column{type = term, name = mapping_cond, desc = "匹配条件", mod = all} ,#f_column{type = int, name = original_price, val = "0", desc = "原价", mod = all} ,#f_column{type = bstr, name = res_name, val = "0", desc = "礼包名称", mod = all} ,#f_column{type = int, name = rank, val = "0", desc = "排序", mod = all} ,#f_column{type = int, name = icon, val = "0", desc = "icon", mod = all} ]} ] }.