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

82 lines
2.5 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 : 9 Aug 2017 by liwl <assistabc@qq.com>
%%%-------------------------------------------------------------------
-module(proto_211).
-export([
info/0
,cfg/0
]
).
-include("protocol.hrl").
info() -> {
"七日登录协议"
,[]
}.
cfg() ->
[
#rpc{
code = 21100
,log_title = "请求信息"
, req_desc = "请求信息"
, req = []
, reply_desc = "返回信息数据"
, reply = [
{array, tuple, status_list, "状态列表",
[{uint8, day, "天数"}
, {uint8, status, "状态,1:不可领取,2:可领取,3:已领取"}
]
}
, {uint8, type, "开启类型(0:旧版本,1:新版本)"}
]
}
, #rpc{
code = 21101
,log_title = {"领取七日登录奖励[day:~w]", [day]}
, req_desc = {"领取七日登录奖励[day:~w]", [day]}
, req = [{uint8, day, "天数"}]
, reply_desc = {"领取七日登录奖励[day:~w][code:~w][msg:~ts]", [day, code, msg]}
, reply = [{uint8, code, "状态码,0:失败,1:成功"}
, {string, msg, "附加消息"}
, {uint8, day, "天数"}
]
}
, #rpc{
code = 21110
,log_title = "请求信息"
, req_desc = "请求信息"
, req = []
, reply_desc = "返回信息数据"
, reply = [
{array, tuple, status_list, "状态列表",
[{uint8, day, "天数"}
, {uint8, status1, "状态,1:不可领取,2:可领取,3:已领取"}
, {uint8, status2, "状态,1:不可领取,2:可领取,3:已领取"}
]
}
, {uint8, is_charge, "是否充值"}
]
}
, #rpc{
code = 21111
,log_title = "领取百抽奖励"
, req_desc = "领取百抽奖励"
, req = [
{uint8, day, "天数"},
{uint8, type, "类型, 0-免费,1-付费"}
]
, reply_desc = "领取百抽奖励"
, reply = [{uint8, code, "状态码,0:失败,1:成功"}
, {string, msg, "附加消息"}
, {uint8, day, "天数"}
]
}
].