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

55 lines
2.2 KiB
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%%-------------------------------------------------------------------
%%% @author Administrator
%%% @copyright (C) 2023, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 14. 12月 2023 10:34
%%%-------------------------------------------------------------------
-module(partner_try_data).
-author("Administrator").
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = partner_try_data
,lua_name = partner_try_data
,desc = ""
,source = "partner_try_data.xml"
,target = "partner_try_data.erl"
,inc = ["common.hrl"]
,callback = [
{{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], key, val}}
,{get_info, cb_fun, handle, {get_tuple, ["伙伴试用"], partner_id, activity_name}}
]
,callback_cli = [
{const, cb_fun_lua, handle, {key_val, ["常量"], key, [val, desc]}}
,{info, cb_fun_lua, handle, {key_val, ["伙伴试用前端"], [partner_id], all}}
]
,callback_json = [
{const, cb_fun_json, handle, {key_val, ["常量"], key, [val, desc]}}
,{info, cb_fun_json, handle, {key_val, ["伙伴试用前端"], [partner_id], all}}
]
,sheet = [
{["常量"],[
#f_column{type = term, name = key, desc = "标签", add_list_sign = false,mod = all}
,#f_column{type = term, name = val, desc = "", add_list_sign = false,mod= all}
,#f_column{type = bstr, name = desc, desc = "名字", mod = client}
]}
,{["伙伴试用"], [
#f_column{type = int, name = partner_id, desc = "伙伴id", mod = all}
,#f_column{type = bstr, name = activity_name, desc = "活动名称", mod = all}
]}
,{["伙伴试用前端"], [
#f_column{type = int, name = partner_id, desc = "伙伴id", mod = all}
,#f_column{type = bstr, name = pv_res, desc = "pv资源id", mod = client}
,#f_column{type = bstr, name = spine_id, desc = "spine资源id", mod = client}
,#f_column{type = bstr, name = action1, desc = "动作1", mod = client}
,#f_column{type = bstr, name = action2, desc = "动作2", mod = client}
,#f_column{type = bstr, name = action3, desc = "动作3", mod = client}
,#f_column{type = term, name = desc, desc = "效果描述", mod = client}
]}
]
}.