%%---------------------------------------------------- %% 数据配置文件 %% @author %%---------------------------------------------------- -module(dailyplay_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = dailyplay_data ,lua_name = dailyplay_data ,desc = "活动配置" ,source = "dailyplay_data.xml" ,target = "dailyplay_data.erl" ,inc = [] ,callback = [ % {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} {get_cond, cb_fun, handle, {get_tuple, ["试炼之门"], id, activate}} ] ,callback_cli = [ {limitactivity, cb_fun_lua, handle, {key_val, ["限时活动"], [id], all}} ,{exerciseactivity, cb_fun_lua, handle, {key_val, ["试炼之门"], [id], all}} ] ,callback_json = [ {limitactivity, cb_fun_json, handle, {key_val, ["限时活动"], [id], all}} ,{exerciseactivity, cb_fun_json, handle, {key_val, ["试炼之门"], [id], all}} ] ,sheet = [ {["限时活动"], [ #f_column{type = int, name = id, desc = "活动id", mod = all} ,#f_column{type = str, name = name, desc = "活动名字", mod = all} ,#f_column{type = term, name = activate, desc = "开启限制", mod = client} ,#f_column{type = term, name = val, desc = "参与奖励", val = "[]", mod = all} ,#f_column{type = kv, name = is_open, desc = "是否开启", kv_type = [{"是", 1}, {"否", 0}], mod = client} ,#f_column{type = str, name = desc, desc = "描述", mod = all} ,#f_column{type = str, name = lock_desc, desc = "未激活描述", mod = all} ]} ,{["试炼之门"], [ #f_column{type = int, name = id, desc = "活动id", mod = all} ,#f_column{type = str, name = name, desc = "活动名字", mod = all} ,#f_column{type = term, name = activate, desc = "开启限制", mod = client} ,#f_column{type = term, name = val, desc = "参与奖励", val = "[]", mod = all} ,#f_column{type = kv, name = is_open, desc = "是否开启", kv_type = [{"是", 1}, {"否", 0}], mod = client} ,#f_column{type = str, name = desc, desc = "描述", mod = all} ,#f_column{type = str, name = lock_desc, desc = "未激活描述", mod = all} ,#f_column{type = str, name = pic_name, desc = "图片名字", mod = client} ,#f_column{type = int, name = goto_id, desc = "跳转界面ID", mod = client} ,#f_column{type = str, name = dungeon_name, desc = "副本名称", mod = client} ]} ] }.