38 lines
1.3 KiB
Erlang
38 lines
1.3 KiB
Erlang
|
|
|
||
|
|
%%----------------------------------------------------
|
||
|
|
%% 数据配置文件
|
||
|
|
%% @author
|
||
|
|
%%----------------------------------------------------
|
||
|
|
-module(special_spine_data).
|
||
|
|
-export([cfg/0]).
|
||
|
|
-include("data_config.hrl").
|
||
|
|
-include("common.hrl").
|
||
|
|
cfg() ->
|
||
|
|
#data_cfg{
|
||
|
|
name = special_spine_data
|
||
|
|
,lua_name = special_spine_data
|
||
|
|
,desc = "配置数据"
|
||
|
|
,source = "special_spine_data.xml"
|
||
|
|
,target = "special_spine_data.erl"
|
||
|
|
,inc = []
|
||
|
|
,callback = [
|
||
|
|
]
|
||
|
|
,callback_cli = [
|
||
|
|
{effect, cb_fun_lua, handle, {key_val, ["DATA"], id, type}}
|
||
|
|
,{download, cb_fun_lua, handle, {list_val, ["优先下载"], id}}
|
||
|
|
]
|
||
|
|
,callback_json = [
|
||
|
|
{effect, cb_fun_json, handle, {key_val, ["DATA"], id, type}}
|
||
|
|
,{download, cb_fun_json, handle, {list_val, ["优先下载"], id}}
|
||
|
|
]
|
||
|
|
,sheet = [
|
||
|
|
{["DATA"], [
|
||
|
|
#f_column{type = bstr, name = id, desc = "名称", primary = true, mod = client}
|
||
|
|
,#f_column{type = kv, name = type, desc = "使用类型", def_cli_val = 1, kv_type = [{"使用8888", 1}, {"使用4444", 2}], mod = client}
|
||
|
|
]}
|
||
|
|
,{["优先下载"], [
|
||
|
|
#f_column{type = bstr, name = id, desc = "名称", primary = true, mod = client}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}.
|