%%%------------------------------------------------------------------- %%% @author Administrator %%% @copyright (C) 2024, %%% @doc %%% %%% @end %%% Created : 19. 2月 2024 15:58 %%%------------------------------------------------------------------- -module(news_draws_data). -author("Administrator"). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = news_draws_data ,lua_name = news_draws_data ,desc = "" ,source = "news_draws_data.xml" ,target = "news_draws_data.erl" ,inc = [] ,callback = [ {{news_draws, undefined}, cb_fun, handle, {get_tuple, ["奖励配置"], id, all}}, {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ] ,callback_cli = [ ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}}, {news_draws_data, 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 = "天数", primary = true, mod = all} ,#f_column{type = bstr, name = name, desc = "名称", mod = all} ,#f_column{type = term, name = reward, desc = "普通奖励", mod = all} ,#f_column{type = term, name = unlock_reward, desc = "进阶解锁奖励", mod = all} ]} ] }.