%%---------------------------------------------------- %% 个推仓检礼包 %% @author wujinhan<947537249@qq.com> %%---------------------------------------------------- -module(proto_289). -export([info/0, cfg/0]). -include("protocol.hrl"). info() -> { "个推仓检礼包" ,["common.hrl"] }. -spec cfg() -> [#rpc{}]. cfg() -> [ #rpc{ code = 28900 ,log_title = "礼包基本信息" ,req_desc = "礼包基本信息" ,req = [] ,reply = [ {array, single, new_gift_id_list, "新礼包列表", [ {uint32, new_gift_id, "新礼包ID"} ]}, {array, tuple, gift_list, "礼包列表", [ {uint32, gift_id, "礼包ID"} ,{uint32, charge_id, "充值id"} ,{uint8, limit_count, "限购次数"} ,{uint32, costly_num, "超值数值"} ,{array, tuple, award, "奖励列表", [ {uint32, id, "物品ID"} ,{uint32, num, "数量"} ]} ,{uint32, over_time, "过期时间戳"} ,{uint8, buy_count, "已购买次数"} ,{string, desc, "对话框文字"} ]} ] } %% ,#rpc{ %% code = 28901 %% ,log_title = "是否匹配到个推仓检礼包" %% ,req_desc = "是否匹配到个推仓检礼包" %% ,req = [ %% ] %% ,reply_desc = "是否匹配到个推仓检礼包" %% ,reply = [ %% {uint8, flag, "是否有礼包(0:否,1:是)"} %% ] %% } ].