Files

44 lines
2.0 KiB
Erlang
Raw Permalink Normal View History

2026-05-23 22:10:14 +08:00
%%----------------------------------------------------
%% 定时领奖活动数据配置文件
%% @author wujinhan<947537249@qq.com>
%%----------------------------------------------------
-module(holiday_time_award_data).
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = holiday_time_award_data
,lua_name = holiday_time_award_data
,desc = "定时领奖活动数据配置文件"
,source = "holiday_time_award_data.xml"
,target = "holiday_time_award_data.erl"
,inc = ["common.hrl"]
,callback = [
{get_const, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~s) -> ~s; %% ~ts", [label,val,desc]}}
,{get_award_list, cb_fun, handle, {tuple_type, ["英雄对话"], camp_id, [partner_id, pro]}}
]
,callback_cli = [
{const, cb_fun_lua, handle, {key_val, ["常量配置"], label, [val, desc]}}
,{dialog, cb_fun_lua, handle, {type_get_val, ["英雄对话"], [camp_id, partner_id], all}}
]
,callback_json = [
{const, cb_fun_json, handle, {key_val, ["常量配置"], label, [val, desc]}}
,{dialog, cb_fun_json, handle, {type_get_val, ["英雄对话"], [camp_id, partner_id], all}}
]
,sheet = [
{["常量配置"],[
#f_column{type = term, name = label, 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 = all}
]}
,{["英雄对话"], [
#f_column{type = int, name = camp_id, desc = "活动id", mod = all}
,#f_column{type = int, name = partner_id, desc = "英雄对话id", mod = all}
,#f_column{type = int, name = pro, desc = "概率", mod = all}
,#f_column{type = term, name = dialogue, desc = "对话", mod = client}
]}
]
}.