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

81 lines
2.3 KiB
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%%-------------------------------------------------------------------
%%% @author liwl <assistabc@qq.com>
%%% @copyright (C) 2017, liwl
%%% @doc
%%% 头像
%%% @end
%%% Created : 13 Sep 2017 by liwl <assistabc@qq.com>
%%%-------------------------------------------------------------------
-module(proto_215).
-export([
info/0
,cfg/0
]
).
-include("protocol.hrl").
info() -> {
"头像协议"
,["common.hrl", "avatar.hrl"]
}.
cfg() ->
[
#rpc{
code = 21500
,log_title = "头像框列表"
, req_desc = "头像框列表"
, req = []
, reply_desc = "头像框列表"
, reply =
[{array, avatar_frame, avatar_frame, "头像框列表", ?p_g_set(avatar_frames,
[{uint32, base_id, "头像框基础Id"}
, {uint32, expire_time, "过期时间"}
])
}
]
}
, #rpc{
code = 21501
,log_title = "使用头像框"
, req_desc = "使用头像框"
, req = [{uint32, base_id, "头像框基础Id"}]
, reply_desc = "使用头像框"
, reply =
[{string, msg, "结果信息"}]
}
, #rpc{
code = 21502
,log_title = "更新头像框数据"
, req_desc = "更新头像框数据"
, req = []
, reply_desc = "更新头像框数据"
, reply =
[{array, avatar_frame, avatar_frame, "头像框列表", ?p_g_get(avatar_frames)}]
}
, #rpc{
code = 21503
,log_title = "激活头像框"
, req_desc = "激活头像框"
, req = [{uint32, base_id, "基础Id"}]
, reply_desc = "激活头像框"
, reply =
[{array, avatar_frame, avatar_frame, "头像框列表", ?p_g_get(avatar_frames)}]
}
, #rpc{
code = 21504
,log_title = "获取属性加成信息"
, req_desc = "获取属性加成信息"
, req = []
, reply_desc = "获取属性加成信息"
, reply =
[{array, tuple, attr, "属性列表",
[{uint8, key, "属性"}
, {uint32, val, "属性值"}
]
}
]
}
].