Files
2026-05-23 22:10:14 +08:00

42 lines
1.7 KiB
Erlang

%%----------------------------------------------------
%% 数据配置文件
%% @author
%%----------------------------------------------------
-module(cross_show_data).
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = cross_show_data
,lua_name = cross_show_data
,desc = "配置数据"
,source = "cross_show_data.xml"
,target = "cross_show_data.erl"
,inc = []
,callback = [
]
,callback_cli = [
{const, cb_fun_lua, handle, {key_val, ["常量"], [code], all}}
,{base, cb_fun_lua, handle, {key_val, ["跨服时空"], [id], all}}
]
,callback_json = [
{const, cb_fun_json, handle, {key_val, ["常量"], [code], all}}
,{base, cb_fun_json, handle, {key_val, ["跨服时空"], [id], all}}
]
,sheet = [
{["常量"], [
#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}
]}
,{["跨服时空"], [
#f_column{type = int, name = id, desc = "活动id", mod = client}
,#f_column{type = bstr, name = name, desc = "活动名称", mod = client}
,#f_column{type = term, name = open_limit, desc = "开启限制", mod = client}
,#f_column{type = bstr, name = icon, desc = "资源id", mod = client}
,#f_column{type = int, name = source_id, desc = "任务跳转id", mod = client}
]}
]
}.