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

154 lines
5.0 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_253).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"战令"
,["common.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 25300
,log_title = "任务信息"
,req_desc = "任务信息"
,req = []
,reply = [
{uint8, period, "周期数"}
,{uint32, cur_day, "天数"}
,{uint32, end_time, "结束时间"}
,{uint32, lev, "当前等级"}
,{uint32, exp, "当前经验"}
,{uint8, rmb_status, "是否激活特权"}
,{uint8, exp_status, "是否领取额外礼包"}
,{array, tuple, list, "任务列表", [
{uint32, id, "ID"}
,{uint8, type, "任务类型"}
,{uint8, finish, "是否已完成(0:未完成 1:已完成 2:已提交)"}
,{uint32, target_val, "目标值"}
,{uint32, value, "当前值"}
,{uint32, end_time, "结束时间"}
]}
]
}
,#rpc{
code = 25301
,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 = 25302
,log_title = "提交任务"
,req_desc = "提交任务"
,req = [
{uint32, id, "任务ID"}
]
,reply = [
{uint8, code, "结果状态"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25303
,log_title = "等级奖励展示"
,req_desc = "等级奖励展示"
,req = []
,reply = [
{uint32, lev, "当前等级"}
,{array, tuple, reward_list, "等级奖励列表", [
{uint16, id, "序号"}
,{uint8, status, "普通奖励是否已领取"}
,{uint8, rmb_status, "付费奖励是否已领取"}
]}
]
}
,#rpc{
code = 25304
,log_title = "领取等级礼包(成功推送25303"
,req_desc = "领取等级礼包(成功推送25303"
,req = [
{uint16, id, "等级"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25305
,log_title = "等级变更(只会主动推)"
,req_desc = "等级变更(只会主动推)"
,req = []
,reply = [
{uint32, lev, "当前等级"}
,{uint32, exp, "当前经验"}
]
}
,#rpc{
code = 25306
,log_title = "进阶卡情况"
,req_desc = "进阶卡情况"
,req = [
]
,reply = [
{uint8, rmb_status, "是否激活特权"}
,{uint8, exp_status, "是否领取额外礼包"}
,{array, tuple, list, "进阶卡情况", [
{uint32, id, "礼包ID"}
,{uint8, status, "是否已购买"}
]}
]
}
,#rpc{
code = 25307
,log_title = "购买等级(成功推送25305"
,req_desc = "购买等级(成功推送25305"
,req = [
{uint16, id, "等级"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25308
,log_title = "领取额外奖励(成功推25306"
,req_desc = "领取额外奖励(成功推25306"
,req = [
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25309
,log_title = "是否要弹窗"
,req_desc = "是否要弹窗"
,req = []
,reply = [
{uint8, is_pop, "0:否 1:是"}
,{uint32, cur_day, "天数"}
]
}
].