%%%------------------------------------------------------------------- %%% @author liwl %%% @copyright (C) 2017, liwl %%% @doc %%% 活跃度协议配置文件 %%% @end %%% Created : 11 May 2017 by liwl %%%------------------------------------------------------------------- -module(proto_203). -export([ info/0 ,cfg/0 ] ). -include("protocol.hrl"). info() -> { "活跃度协议" ,[] }. cfg() -> [ #rpc{ code = 20300 ,log_title = "活跃宝箱信息" , req_desc = "活跃宝箱信息" , req = [] , reply_desc = "活跃宝箱信息" , reply = [ {array, single, activity_box, "已领取的活跃宝箱" , [{uint16, activity, "活跃度"}] } ] } , #rpc{ code = 20301 ,log_title = {"领取活跃[~w]宝箱", [activity]} , req_desc = {"领取活跃[~w]宝箱", [activity]} , req = [{uint16, activity, "活跃度"}] , reply_desc = {"领取活跃[~w]宝箱[code:~w][msg:~ts]", [activity, code, msg]} , reply = [ {uint8, code, "状态码,0:失败,1:成功"} , {string, msg, "附加消息"} , {uint8, activity, "活跃度"} ] } ].