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

143 lines
4.6 KiB
Erlang
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
%%----------------------------------------------------
%% 战令任务
%%
%% @author yzq
%%----------------------------------------------------
-module(proto_287).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"战令"
,["common.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 28700
,log_title = "任务信息"
,req_desc = "任务信息"
,req = []
,reply = [
{uint8, period, "周期数"}
,{uint32, cur_day, "天数"}
,{uint32, end_time, "结束时间"}
,{uint32, lev, "当前等级"}
,{uint32, exp, "当前经验"}
,{uint32, period_lev, "周期开始时的角色等级"}
,{uint32, day_lev, "今天开始时的角色等级"}
,{uint32, week_lev, "本周开始时的角色等级"}
,{uint8, rmb_status, "是否激活特权"}
,{array, tuple, list, "任务列表", [
{uint32, id, "ID"}
,{uint8, type, "任务类型"}
,{uint8, finish, "是否已完成(0:未完成 1:已完成 2:已提交)"}
,{uint32, target_val, "目标值"}
,{uint32, value, "当前值"}
,{uint32, end_time, "结束时间"}
]}
]
}
,#rpc{
code = 28701
,log_title = "任务信息更新"
,req_desc = "任务信息更新"
,req = []
,reply = [
{array, tuple, list, "任务列表", [
{uint32, id, "ID"}
,{uint8, type, "任务类型"}
,{uint8, finish, "是否已完成(0:未完成 1:已完成 2:已提交)"}
,{uint32, target_val, "目标值"}
,{uint32, value, "当前值"}
,{uint32, end_time, "结束时间"}
]}
]
}
,#rpc{
code = 28702
,log_title = "提交任务"
,req_desc = "提交任务"
,req = [
{uint32, id, "任务ID"}
]
,reply = [
{uint8, code, "结果状态"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 28703
,log_title = "等级奖励展示"
,req_desc = "等级奖励展示"
,req = []
,reply = [
{uint32, lev, "当前等级"}
,{array, tuple, reward_list, "等级奖励列表", [
{uint16, id, "序号"}
,{uint8, status, "普通奖励是否已领取"}
,{uint8, rmb_status, "付费奖励是否已领取"}
]}
]
}
,#rpc{
code = 28704
,log_title = "领取等级礼包(成功推送28703"
,req_desc = "领取等级礼包(成功推送28703"
,req = [
{uint16, id, "等级"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 28705
,log_title = "等级变更(只会主动推)"
,req_desc = "等级变更(只会主动推)"
,req = []
,reply = [
{uint32, lev, "当前等级"}
,{uint32, exp, "当前经验"}
]
}
,#rpc{
code = 28706
,log_title = "进阶卡情况"
,req_desc = "进阶卡情况"
,req = [
]
,reply = [
{uint8, rmb_status, "是否激活特权"}
,{array, tuple, list, "进阶卡情况", [
{uint32, id, "礼包ID"}
,{uint8, status, "是否已购买"}
]}
]
}
,#rpc{
code = 28707
,log_title = "是否要弹窗"
,req_desc = "是否要弹窗"
,req = []
,reply = [
{uint8, is_pop, "0:否 1:是"}
,{uint32, cur_day, "天数"}
]
}
,#rpc{
code = 28708
,log_title = "周期重置红点"
,req_desc = "周期重置红点"
,req = [
]
,reply_desc = "周期重置红点"
,reply = [
{uint8, flag, "0:没有红点 1:有红点"}
]
}
].