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

81 lines
2.2 KiB
Erlang

%%----------------------------------------------------
%% 帮会活跃任务
%%
%% @author whjing2011@gmail.com
%%----------------------------------------------------
-module(proto_169).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"帮会活跃任务"
,[]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 16900
,req_desc = "基本信息"
,log_title = "基本信息"
,req = []
,reply = [
{uint8, lev, "等级"}
,{uint32, exp, "经验活跃值"}
,{uint32, day_exp, "天经验活跃值"}
,{uint32, week_exp, "周经验活跃值"}
]
}
,#rpc{
code = 16901
,req_desc = "任务信息"
,log_title = "任务信息"
,req = []
,reply = [
{array, tuple, list, "任务列表", [
{uint32, id, "ID"}
,{uint8, finish, "是否已完成(0:未完成 1:已完成 2:已提交)"}
,{uint32, target_val, "目标值"}
,{uint32, value, "当前值"}
]}
]
}
,#rpc{
code = 16902
,log_title = "更新(新增)任务信息"
,req_desc = "更新(新增)任务信息"
,reply = [
{array, tuple, list, "任务列表", [
{uint32, id, "ID"}
,{uint8, finish, "是否已完成(0:未完成 1:已完成 2:已提交)"}
,{uint32, target_val, "目标值"}
,{uint32, value, "当前值"}
]}
]
}
,#rpc{
code = 16903
,req_desc = "提交任务"
,log_title = "提交任务"
,req = [
{uint32, id, "任务ID"}
]
,reply = [
{uint8, code, "结果状态"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 16904
,log_title = "升级处理"
,req_desc = "升级处理"
,req = [
]
,reply = [
{uint8, code, "结果状态"}
,{string, msg, "结果信息"}
]
}
].