Files
fc/server/tools/gen_data/cfg/qrcode_data.erl
T
2026-05-23 22:10:14 +08:00

35 lines
1.1 KiB
Erlang

%%----------------------------------------------------
%% 数据配置文件
%% @author xxxx@xxx.xxx
%%----------------------------------------------------
-module(qrcode_data).
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = qrcode_data
,lua_name = qrcode_data
,js_name = qrcode_data
,desc = "二维码配置数据"
,source = "qrcode_data.xml"
,target = "qrcode_data.erl"
,splitv = 1
,head_rows = 2
,inc = []
,callback = [
{{acc, 0}, cb_fun, handle, {get_fun, ["白名单账号"], "acc(~ts) -> 1;", [acc]}}
]
,callback_cli = [
{acc, cb_fun_lua, handle, {format, ["白名单账号"], "\t['~s']=1", [acc]}}
]
,callback_json = [
{acc, cb_fun_json, handle, {format, ["白名单账号"], "\t\"~s\":1", [acc]}}
]
,sheet = [
{["白名单账号"], [
#f_column{type = bstr, name = acc, desc = "账号", mod = all}
]}
]
}.