%%---------------------------------------------------- %% 数据配置文件 %% @author %%---------------------------------------------------- -module(holiday_snatch_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_snatch_data ,lua_name = holiday_snatch_data ,desc = "配置数据" ,source = "holiday_snatch_data.xml" ,target = "holiday_snatch_data.erl" ,inc = [] ,callback = [ {{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], code, val}} ,{all_pos, cb_fun, handle, {list, ["位置"]}} ,{get_pos_f_id, cb_fun, handle, {get_tuple, ["位置"], pos, f_id}} ,{get_rand_list, cb_fun, handle, {tuple_type, ["DATA"], f_id, [id, pro]}} ,{get_limit_num, cb_fun, handle, {get_tuple, ["DATA"], id, limit_max}} ,{get_limit_min, cb_fun, handle, {get_tuple, ["DATA"], id, limit_min}} ,{get_expend, cb_fun, handle, {get_tuple, ["DATA"], id, expend}} ,{get_role_limit, cb_fun, handle, {get_tuple, ["DATA"], id, limit_role_max}} ,{get_award, cb_fun, handle, {get_tuple, ["DATA"], id, award}} ,{get_award_name, cb_fun, handle, {get_tuple, ["DATA"], id, name}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量"], code, all}} ,{join_goods_list, cb_fun_lua, handle, {key_val, ["DATA"], id, all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量"], code, all}} ,{join_goods_list, cb_fun_json, handle, {key_val, ["DATA"], id, all}} ] ,sheet = [ {["DATA"], [ #f_column{type = int, name = f_id, desc = "大奖池id", mod = all} ,#f_column{type = int, name = id, desc = "奖池id", mod = all} ,#f_column{type = bstr, name = name, desc = "商品名称", mod = all} ,#f_column{type = term, name = award, desc = "奖励",mod = all} ,#f_column{type = int, name = price, desc = "价值/钻",mod = client} ,#f_column{type = term, name = expend, desc = "消耗",mod = all} ,#f_column{type = int, name = limit_min, desc = "人次下限", mod = all} ,#f_column{type = int, name = limit_max, desc = "人次上限", mod = all} ,#f_column{type = int, name = pro, desc = "权重", mod = all} ,#f_column{type = int, name = limit_role_max, desc = "个人购买上限", mod = all} ,#f_column{type = int, name = is_hot, desc = "是否热卖", comment = "1:热卖 0:非热卖", mod = all} ]} ,{["位置"], [ #f_column{type = int, name = pos, desc = "位置", mod = all} ,#f_column{type = int, name = f_id, desc = "大奖池id", mod = all} ]} ,{["常量"], [ #f_column{type = atom, name = code, desc = "标签", mod = all} ,#f_column{type = term, name = val, desc = "值", mod = all, val_cli="{}", add_list_sign = false} ,#f_column{type = bstr, name = desc, desc = "名字", mod = client} ]} ] }.