%%%------------------------------------------------------------------- %%% @author Administrator %%% @copyright (C) 2024, %%% @doc %%% %%% @end %%% Created : 22. 4月 2024 15:02 %%%------------------------------------------------------------------- -module(holiday_checkin_data). -author("Administrator"). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_checkin_data ,lua_name = holiday_checkin_data ,desc = "阶段伙伴招募数据" ,source = "holiday_checkin_data.xml" ,target = "holiday_checkin_data.erl" ,inc = [] ,callback = [ {sign_in, cb_fun, handle, {get_record, ["签到配置"], [camp_id, day], new_map, all}}, {sign_in_list, cb_fun, handle, {tuple_type, ["签到配置"], camp_id, day}} ] ,callback_cli = [ ] ,callback_json = [ {sign_in, cb_fun_json, handle, {type_get_val, ["签到配置"], [camp_id, day], all}} ,{desc, cb_fun_json, handle, {key_val, ["规则说明"], id, all}} ,{client_info, cb_fun_json, handle, {key_val, ["前端显示"], camp_id, all}} ] ,sheet = [ {["签到配置"], [#f_column{desc = "活动ID", type = int, name = camp_id, mod = all} ,#f_column{desc = "天数", type = int, name = day, mod = all} , #f_column{desc = "奖励", type = term, name = reward, mod = all} ]}, {["前端显示"], [#f_column{desc = "活动ID", type = int, name = camp_id, mod = all} ,#f_column{desc = "模型", type = bstr, name = res, mod = client} , #f_column{desc = "动作名", type = bstr, name = action, mod = client} , #f_column{desc = "文本", type = bstr, name = desc, mod = client} , #f_column{desc = "道具1", type = int, name = item1, mod = client} , #f_column{desc = "道具1", type = int, name = item2, mod = client} ]}, {["规则说明"], [#f_column{type = int, name = id, desc = "标签", mod = all} ,#f_column{type = bstr, name = desc, desc = "内容", mod = all} ]} ] }.