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

38 lines
1.4 KiB
Erlang

%%----------------------------------------------------
%% 数据配置文件
%% @author linguohui
%%----------------------------------------------------
-module(red_point_data).
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = red_point_data
,lua_name = red_point_data
,js_name = red_point_data
,desc = "配置数据"
,source = "red_point_data.xml"
,target = "red_point_data.erl"
,splitv = 1
,head_rows = 1
,inc = ["common.hrl"]
,callback = [
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
,{get_all_red_point, cb_fun, handle, {tuple_list, ["红点控制"], id}}
]
,callback_cli = [
]
,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 = "id", primary = true, mod = all}
,#f_column{type = str, name = name, desc = "信息", mod = all}
]}
]
}.