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

52 lines
2.0 KiB
Erlang

%%%-------------------------------------------------------------------
%%% @author caocg
%%% @copyright (C) 2021, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 25. 10月 2021 14:24
%%%-------------------------------------------------------------------
-module(holiday_upstars_data).
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = holiday_upstars_data
,lua_name = holiday_upstars_data
,js_name = holiday_upstars_data
,desc = "配置數據"
,source = "holiday_upstars_data.xml"
,target = "holiday_upstars_data.erl"
,inc = []
,callback = [
{get_const, cb_fun, handle, {get_fun, ["常量"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}},
{{get,undefined}, cb_fun, handle, {get_record, ["升星獎勵"], stars, new_map, all}},
{list_stars, cb_fun, handle, {list, ["升星獎勵"]}}
]
,callback_cli = [
{const, cb_fun_lua, handle, {key_val, ["常量"], [key], all}},
{get, cb_fun_lua, handle, {key_val, ["升星獎勵"], stars, all}}
]
,callback_json = [
{const, cb_fun_json, handle, {key_val, ["常量"], [key], all}},
{get, cb_fun_json, handle, {key_val, ["升星獎勵"], stars, 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 = stars, desc = "星級", mod = all}
,#f_column{type = term, name = free_award, desc = "免費領取", mod = all}
,#f_column{type = term, name = own_award, desc = "専屬禮包", mod = all}
,#f_column{type = int, name = charge_id, desc = "充值ID", mod = all}
,#f_column{type = int, name = limit_buy, desc = "限購次數", mod = all}
]}
]
}.