64 lines
2.3 KiB
Erlang
64 lines
2.3 KiB
Erlang
%%%-------------------------------------------------------------------
|
|
%%% @author Administrator
|
|
%%% @copyright (C) 2024, <COMPANY>
|
|
%%% @doc
|
|
%%%
|
|
%%% @end
|
|
%%% Created : 29. 3月 2024 13:10
|
|
%%%-------------------------------------------------------------------
|
|
-module(fight_tar_data).
|
|
-author("Administrator").
|
|
|
|
%% API
|
|
-export([cfg/0]).
|
|
-include("data_config.hrl").
|
|
-include("common.hrl").
|
|
cfg() ->
|
|
#data_cfg{
|
|
name = fight_tar_data
|
|
,lua_name = fight_tar_data
|
|
,desc = ""
|
|
,source = "fight_tar_data.xml"
|
|
,target = "fight_tar_data.erl"
|
|
,inc = []
|
|
,callback = [
|
|
{power_list, cb_fun, handle, {tuple_list, ["战力达成目标"], [id, val]}}
|
|
, {get, cb_fun, handle, {get_record, ["战力达成目标"], id, new_map, all}}
|
|
, {const, cb_fun, handle, {get_fun, ["常量配置"], "const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
|
|
]
|
|
,callback_cli = [
|
|
]
|
|
,callback_json = [
|
|
{const, cb_fun_json, handle, {key_val, [ "常量配置"], [key], all}},
|
|
{get_info, cb_fun_json, handle, {key_val, ["战力达成目标"], [id], all}}
|
|
,{explain, cb_fun_json, handle, {key_val, ["活动说明"], [id], all}}
|
|
,{source, cb_fun_json, handle, {key_val, ["跳转"], [id], all}}
|
|
]
|
|
,sheet = [
|
|
|
|
{["常量配置"], [
|
|
#f_column{type = atom, name = key, desc = "键", primary = true, mod = all}
|
|
,#f_column{type = term, name = val, desc = "值", mod = all, add_list_sign = false}
|
|
,#f_column{type = str, name = desc, desc = "描述", mod = all}
|
|
]}
|
|
, {["战力达成目标"],
|
|
[#f_column{desc = "奖励id", type = int, name = id, mod = all}
|
|
, #f_column{desc = "战力值", type = int, name = val, mod = all}
|
|
, #f_column{desc = "奖励", type = term, name = rewards, mod = all}
|
|
|
|
]
|
|
}
|
|
,{["活动说明"], [
|
|
#f_column{type = int, name = id, desc = "标签", primary = true, mod = client}
|
|
,#f_column{type = str, name = title, desc = "标签名", mod = client}
|
|
,#f_column{type = str, name = desc, desc = "内容", mod = client}
|
|
]}
|
|
,{["跳转"], [
|
|
#f_column{type = int, name = id, desc = "序号", primary = true, mod = client}
|
|
,#f_column{type = int, name = source_id, desc = "跳转编号", mod = client}
|
|
,#f_column{type = str, name = desc, desc = "描述", mod = client}
|
|
]}
|
|
]
|
|
}.
|
|
|