Files
fc/server/tools/gen_data/cfg/video_data.erl
T

44 lines
1.8 KiB
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%----------------------------------------------------
%% 数据配置文件
%% @author
%%----------------------------------------------------
-module(video_data).
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = video_data
,lua_name = video_data
,desc = "录像馆配置数据"
,source = "video_data.xml"
,target = "video_data.erl"
,inc = []
,callback = [
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
]
,callback_cli = [
{const,cb_fun_lua, handle, {key_val, ["常量配置"], [key], all}}
,{vedio, cb_fun_lua, handle, {key_val, ["录像"], [id], all}}
]
,callback_json = [
{const, cb_fun_json, handle, {key_val, ["常量配置"], [key], all}}
,{vedio, 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 = "", add_list_sign=false, mod = all}
,#f_column{type = str, name = desc, desc = "描述", mod = all}
]}
,{["录像"], [
#f_column{type = int, name = id, desc = "类型", primary = true, mod = client}
,#f_column{type = bstr, name = name, desc = "名称", mod = client}
,#f_column{type = term, name = evt, desc = "条件", mod = client}
,#f_column{type = int, name = sort_id, desc = "排序", mod = client}
,#f_column{type = int, name = is_show, desc = "是否显示", mod = client}
]}
]
}.