107 lines
2.5 KiB
Erlang
107 lines
2.5 KiB
Erlang
|
|
%%%-------------------------------------------------------------------
|
||
|
|
%%% @author Administrator
|
||
|
|
%%% @copyright (C) 2023, <COMPANY>
|
||
|
|
%%% @doc
|
||
|
|
%%%
|
||
|
|
%%% @end
|
||
|
|
%%% Created : 15. 9月 2023 11:11
|
||
|
|
%%%-------------------------------------------------------------------
|
||
|
|
-module(proto_297).
|
||
|
|
-author("Administrator").
|
||
|
|
|
||
|
|
%% API
|
||
|
|
-export([info/0, cfg/0]).
|
||
|
|
-include("protocol.hrl").
|
||
|
|
|
||
|
|
|
||
|
|
info() -> {
|
||
|
|
"残骸收集"
|
||
|
|
,["quest_exchange.hrl", "quest.hrl"]
|
||
|
|
}.
|
||
|
|
|
||
|
|
-spec cfg() -> [#rpc{}].
|
||
|
|
cfg() ->[
|
||
|
|
#rpc{
|
||
|
|
code = 29700
|
||
|
|
,log_title = "基本信息"
|
||
|
|
,req_desc = "基本信息"
|
||
|
|
,req = [
|
||
|
|
]
|
||
|
|
,reply = [
|
||
|
|
{uint32, end_time, "结束时间"}
|
||
|
|
,{uint32, num, "当前点数"}
|
||
|
|
,{array, tuple, list, "任务列表", [
|
||
|
|
{uint32, id, "ID"}
|
||
|
|
,{uint8, finish, "是否已完成(0:未完成 1:已完成 2:已提交)"}
|
||
|
|
,{uint32, target_val, "目标值"}
|
||
|
|
,{uint32, value, "当前值"}
|
||
|
|
]}
|
||
|
|
,{array, tuple, reward_list, "奖励列表", [
|
||
|
|
{uint32, id, "ID"}
|
||
|
|
,{uint32, buy_num, "购买次数"}
|
||
|
|
,{uint32, max_num, "最大购买次数"}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 29701
|
||
|
|
,log_title = "推送任务"
|
||
|
|
,req_desc = "推送任务"
|
||
|
|
,req = [
|
||
|
|
]
|
||
|
|
,reply_desc = "推送任务"
|
||
|
|
,reply = [
|
||
|
|
{uint32, num, "当前点数"}
|
||
|
|
,{array, tuple, list, "任务列表", [
|
||
|
|
{uint32, id, "ID"}
|
||
|
|
,{uint8, finish, "是否已完成(0:未完成 1:已完成 2:已提交)"}
|
||
|
|
,{uint32, target_val, "目标值"}
|
||
|
|
,{uint32, value, "当前值"}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 29702
|
||
|
|
,log_title = "推送商品"
|
||
|
|
,req_desc = "推送商品"
|
||
|
|
,req = [
|
||
|
|
]
|
||
|
|
,reply_desc = "推送商品"
|
||
|
|
,reply = [
|
||
|
|
{uint32, num, "当前点数"}
|
||
|
|
,{array, tuple, reward_list, "奖励列表", [
|
||
|
|
{uint32, id, "ID"}
|
||
|
|
,{uint32, buy_num, "购买次数"}
|
||
|
|
,{uint32, max_num, "最大购买次数"}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 29703
|
||
|
|
,log_title = "提交任务"
|
||
|
|
,req_desc = "提交任务"
|
||
|
|
,req = [
|
||
|
|
{uint32, id, "ID"}
|
||
|
|
]
|
||
|
|
,reply_desc = "提交任务"
|
||
|
|
,reply = [
|
||
|
|
{uint8, code, "结果状态"}
|
||
|
|
,{string, msg, "结果信息"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 29704
|
||
|
|
,log_title = "兑换商品"
|
||
|
|
,req_desc = "兑换商品"
|
||
|
|
,req = [
|
||
|
|
{uint32, id, "ID"}
|
||
|
|
]
|
||
|
|
,reply_desc = "兑换商品"
|
||
|
|
,reply = [
|
||
|
|
{uint8, code, "结果状态"}
|
||
|
|
,{string, msg, "结果信息"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
].
|
||
|
|
|