Files
fc/server/tools/gen_proto/cfg/proto_279.erl
T

299 lines
11 KiB
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%----------------------------------------------------
%% 新版回归活动
%% @author wujinhan<947537249@qq.com>
%%----------------------------------------------------
-module(proto_279).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"回归活动"
,["common.hrl", "quest.hrl", "holiday_petard.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 27900
,log_title = "回归礼包信息"
,req_desc = "回归礼包信息"
,req = [
]
,reply_desc = "回归礼包信息"
,reply = [
{uint8, flag, "是否已领取(0:否,1:是)"}
,{uint32, endtime, "结束时间"}
]
}
,#rpc{
code = 27901
,log_title = "领取回归礼包"
,req_desc = "领取回归礼包"
,req = [
]
,reply_desc = "领取回归礼包"
,reply = [
{uint8, code, "结果,1:成功,0:失败"}
,{string, msg, "附加信息"}
]
}
,#rpc{
code = 27902
,log_title = "回归基础信息"
,req_desc = "回归基础信息"
,req = [
]
,reply_desc = "回归基础信息"
,reply = [
{uint16, period, "当前活动周期"}
,{uint16, open_day, "当前活动天数"}
,{uint8, is_open, "是否开启"}
]
}
,#rpc{
code = 27903
,log_title = "回归抽奖信息"
,req_desc = "回归抽奖信息"
,req = [
]
,reply_desc = "回归抽奖信息"
,reply = [
{uint32, endtime, "结束时间"}
,{uint32, starttime, "开始时间"}
,{uint32, draw_time, "已抽取次数"}
,{uint32, limit_draw_time, "总抽取次数"}
,{uint8, free_time, "是否有免费次数(0:否,1:是)"}
,{array, tuple, award_list, "奖励列表",[
{uint32, type_id, "type_id"}
,{uint32, get_count, "已抽取次数"}
,{uint32, limit_count, "总次数"}
,{uint8, is_show, "是否显示(0:否,1:是)"}
]}
]
}
,#rpc{
code = 27904
,log_title = "抽奖"
,req_desc = "抽奖"
,req = [
{uint8, type, "抽奖类型:(1:免费单抽,2:单抽,3:十连抽)"}
]
,reply_desc = "抽奖"
,reply = [
{uint8, code, "结果,1:成功,0:失败"}
,{string, msg, "附加信息"}
]
}
,#rpc{
code = 27905
,log_title = "回归任务信息"
,req_desc = "回归任务信息"
,req = [
]
,reply_desc = "回归任务信息"
,reply = [
{array, tuple, quest_list, "任务列表",[
{uint32, id, "成就ID"}
,{uint8, finish, "是否已完成(0:未完成 1:已完成 2:已奖励, 3:已过期)"}
,{uint32, target_val, "目标值"}
,{uint32, value, "当前值"}
,{uint32, ref_time, "剩余时间"}
]}
,{uint32, endtime, "结束时间"}
,{uint32, period, "当前活动周期"}
]
}
,#rpc{
code = 27906
,log_title = "推送任务变化"
,req_desc = "推送任务变化"
,req = [
]
,reply_desc = "推送任务变化"
,reply = [
{uint32, id, "成就ID"}
,{uint8, finish, "是否已完成(0:未完成 1:已完成 2:已奖励, 3:已过期)"}
,{uint32, target_val, "目标值"}
,{uint32, value, "当前值"}
,{uint32, ref_time, "剩余时间"}
]
}
,#rpc{
code = 27907
,log_title = "任务奖励领取"
,req_desc = "任务奖励领取"
,req = [
{uint32, id, "ID"}
]
,reply_desc = "任务领取"
,reply = [
{uint8, code, "结果,1:成功,0:失败"}
,{string, msg, "附加信息"}
,{uint32, id, "ID"}
]
}
,#rpc{
code = 27908
,log_title = "回归签到信息"
, req_desc = "回归签到信息"
, req = []
, reply_desc = "回归签到信息数据"
, reply = [
{uint32, endtime, "结束时间"}
,{array, tuple, status_list, "状态列表", [
{uint16, day, "天数"}
,{uint8, status, "状态,1:可领取,2:已领取"}
]}
]
}
,#rpc{
code = 27909
,log_title = "领取回归签到奖励"
,req_desc = "领取回归签到奖励"
,req = [
{uint16, day, "天数"}
]
,reply_desc = "领取回归签到奖励"
,reply = [
{uint8, code, "结果,1:成功,0:失败"}
,{string, msg, "附加信息"}
,{uint16, day, "天数"}
]
}
,#rpc{
code = 27910
,log_title = "(刷新)红包界面信息"
,req_desc = "(刷新)红包界面信息"
,req = []
,reply_desc = "(刷新)红包界面信息"
,reply = [
{array, tuple, red_packet_list, "红包信息列表", [
{uint32, red_packet_id, "红包id"}
,{uint16, msg_id, "祝福语id"}
,{string, name, "发送红包角色名"}
,{uint8, status, "领取状态(0:不可领取 1:可领取 2:已领取)"}
]}
,{uint16, get_num, "今日已领个数"}
,{uint16, max_num, "最大可领个数"}
]
}
,#rpc{
code = 27911
,log_title = "领取/查看红包"
,req_desc = "领取/查看红包"
,req = [
{uint32, red_packet_id, "红包id"}
]
,reply_desc = "领取/查看红包"
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{array, get_red_packet_info, get_red_packet_list, "领取情况", [
{tuple, r_id, [
{uint32, r_rid, "ID"}
,{string, r_srvid, "服务器ID"}
]}
,{uint32, red_id, "红包id"}
,{string, name, "角色名"}
,{uint32, lev, "角色等级"}
,{uint32, face_id, "头像id"}
,{uint32, avatar_bid, "头像框id"}
,{uint32, time, "时间"}
,{array, tuple, item, "领取物品", [
{uint16, item_id, "已激活的奖励id"}
,{uint32, num, "数量"}
]}
]}
,{uint32, red_packet_id, "红包id"}
,{uint16, get_num, "已领人数"}
,{uint16, max_num, "最大可领人数"}
,{uint32, end_time, "过期时间"}
,{string, send_name, "发送者姓名"}
,{uint32, send_face_id, "发送者头像id"}
,{uint32, send_avatar_bid, "发送者头像框id"}
]
}
,#rpc{
code = 27912
,log_title = "是否有红包可领"
,req_desc = "是否有红包可领"
,req = [
]
,reply_desc = "是否有红包可领"
,reply = [
{uint8, code, "状态(0:不出现 1:半身 2:抖动)"}
,{string, msg, "结果信息"}
,{uint16, get_num, "今日已领个数"}
,{uint16, max_num, "最大可领个数"}
]
}
,#rpc{
code = 27913
,log_title = "红包传闻信息"
,req_desc = "红包传闻信息"
,req = []
,reply_desc = "红包传闻信息"
,reply = [
{array, get_red_packet_info, get_red_packet_list, "领取情况", [
{tuple, r_id, [
{uint32, r_rid, "ID"}
,{string, r_srvid, "服务器ID"}
]}
,{uint32, red_id, "红包id"}
,{string, name, "角色名"}
,{uint32, lev, "角色等级"}
,{uint32, face_id, "头像id"}
,{uint32, avatar_bid, "头像框id"}
,{uint32, time, "时间"}
,{array, tuple, item, "领取物品", [
{uint16, item_id, "已激活的奖励id"}
,{uint32, num, "数量"}
]}
]}
]
}
,#rpc{
code = 27914
,log_title = "回归商店信息"
, req_desc = "回归商店信息"
, req = [
]
, reply = [
{uint32, endtime, "结束时间"}
,{uint32, get_count, "今日已获得数量"}
,{uint32, limit_count, "每日上限数量"}
,{array, tuple, buy_info, "杂货铺购买情况", [
{uint32, id, "商品id"}
,{uint32, day_num, "个人天购买次数(没有限购时为0)"}
,{uint32, all_num, "个人总购买次数(没有限购时为0)"}
]}
]
}
,#rpc{
code = 27915
,log_title = "回归商店购买(购买成功推送27914)"
, req_desc = "回归商店购买(购买成功推送27914)"
, req = [
{uint32, id, "商品id"}
]
, reply = [
{uint8, code, "是否成功"}
,{string, msg, "返回消息"}
,{uint32, id, "商品id"}
]
}
,#rpc{
code = 27916
,log_title = "使用红包道具飘字"
,req_desc = "使用红包道具飘字"
,req = [
]
,reply_desc = "使用红包道具飘字"
,reply = [
{uint8, flag, "结果状态(0:否 1:是)"}
,{string, msg, "结果信息"}
]
}
].