%%---------------------------------------------------- %% 多轮自选不放回抽奖活动数据配置文件 %% @author wujinhan<947537249@qq.com> %%---------------------------------------------------- -module(holiday_optional_lottery_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_optional_lottery_data ,lua_name = holiday_optional_lottery_data ,desc = "多轮自选不放回抽奖活动配置数据" ,source = "holiday_optional_lottery_data.xml" ,target = "holiday_optional_lottery_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, round], [id, type_id, rewards, must_not, must, pro]}} ,{get_optional_list, cb_fun, handle, {tuple_type, ["自选奖励"], camp_id, [type_id, count, rewards, must_not, must, pro, round]}} ,{get_optional_info, cb_fun, handle, {get_tuple, ["自选奖励"], [camp_id, type_id], [count, rewards, must_not, must, pro, round]}} ] ,callback_cli = [ {constant, cb_fun_lua, handle, {key_val, ["常量配置"], label, all}} ,{normal_award, cb_fun_lua, handle, {type_get_val, [ "普通奖励"], [camp_id, round,id], [id, type_id, rewards]}} ,{optional_award, cb_fun_lua, handle, {type_get_val, ["自选奖励"], [camp_id, type_id], [type_id, rewards]}} ] ,callback_json = [ {constant, cb_fun_json, handle, {key_val, ["常量配置"], label, all}} ,{normal_award, cb_fun_json, handle, {type_get_val, [ "普通奖励"], [camp_id, round,id], [id, type_id, rewards]}} ,{optional_award, cb_fun_json, handle, {type_get_val, ["自选奖励"], [camp_id, type_id], [type_id, rewards]}} ] ,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 = round, desc = "轮次", mod = all} ,#f_column{type = int, name = id, desc = "奖励id", mod = all} ,#f_column{type = int, name = type_id, desc = "奖励类型id", mod = all} ,#f_column{type = term, name = rewards, desc = "奖励", mod = all} ,#f_column{type = int, name = must_not, val = "0", desc = "前N次必不出", mod = all} ,#f_column{type = int, name = must, val = "0", desc = "N次必出", mod = all} ,#f_column{type = int, name = pro, desc = "概率", mod = all} ]} ,{["自选奖励"], [ #f_column{type = int, name = camp_id, desc = "活动id", mod = all} ,#f_column{type = int, name = type_id, desc = "奖励类型id", mod = all} ,#f_column{type = int, name = count, desc = "可选次数", mod = all} ,#f_column{type = term, name = rewards, desc = "奖励", mod = all} ,#f_column{type = int, name = must_not, val = "0", desc = "前N次必不出", mod = all} ,#f_column{type = int, name = must, val = "0", desc = "N次必出", mod = all} ,#f_column{type = int, name = pro, desc = "概率", mod = all} ,#f_column{type = int, name = round, desc = "轮次限制", mod = all} ]} ] }.