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

45 lines
926 B
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%%-------------------------------------------------------------------
%%% @author Administrator
%%% @copyright (C) 2019, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 29. 八月 2019 20:53
%%%-------------------------------------------------------------------
-module(proto_300).
-author("Administrator").
-include("protocol.hrl").
%% API
-export([cfg/0, info/0]).
info() -> {
"新主线任务"
, ["common.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[#rpc{
code = 30001
, req_desc = "任务信息, 进度更新时返回"
, req = []
, reply = [
{uint32, id, "ID"}
, {uint8, finish, "是否已完成(0:未完成 1:已完成 2:已提交)"}
, {uint32, target_val, "目标值"}
, {uint32, value, "当前值"}
]
}, #rpc{
code = 30002
, req_desc = "提交任务"
, req = [
{uint32, id, "任务ID"}
]
, reply = [
{uint8, code, "结果状态"}
, {string, msg, "结果信息"}
]
}
].