%%---------------------------------------------------- %% 联盟远航 %% %% @author liwenlong@xxx.com %%---------------------------------------------------- -module(proto_238). -export([info/0, cfg/0]). -include("protocol.hrl"). info() -> { "联盟远航" ,["common.hrl", "shipping.hrl"] }. -spec cfg() -> [#rpc{}]. cfg() -> [ #rpc{ code = 23800 ,log_title = "联盟远航信息" , req_desc = "联盟远航信息" , req = [] , reply_desc = "联盟远航信息" , reply = [ {array, shipping_order, order_list, "订单列表", ?p_g_set(shipping_order, [ {uint32, order_id, "订单唯一ID"} ,{uint32, order_bid, "订单基础ID"} ,{uint8, status, "订单状态"} ,{uint32, end_time, "结束时间"} ,{array, single, assign_ids, "派遣英雄ID列表", [{uint32, partner_id, "英雄ID"}] } ]) } ,{uint8, free_times, "今日免费刷新次数"} ,{uint32, coin_times, "今日钻石刷新次数"} ] } ,#rpc{ code = 23801 ,log_title = "推送刷新订单数据" , req_desc = "推送刷新订单数据" , req = [ ] , reply_desc = "推送刷新订单数据" , reply = [{rec, shipping_order, shipping_order, ?p_g_get(shipping_order)}] } ,#rpc{ code = 23802 ,log_title = "接取订单" , req_desc = "接取订单" , req = [ {uint32, order_id, "订单唯一ID"} ,{array, single, assign_ids, "派遣英雄ID列表", [{uint32, partner_id, "英雄ID"}] } ] , reply_desc = "接取订单" , reply = [ {uint8, flag, "是否成功"} ,{string, msg, "提示语"} ] } ,#rpc{ code = 23803 ,log_title = "完成订单" , req_desc = "完成订单" , req = [ {uint32, order_id, "订单唯一ID"} ,{uint8, type, "0:正常完成 1:快速完成"} ] , reply_desc = "完成订单" , reply = [ {uint8, flag, "是否成功"} ,{string, msg, "提示语"} ,{uint32, order_id, "订单唯一ID"} ] } ,#rpc{ code = 23804 ,log_title = "刷新" , req_desc = "刷新" , req = [ ] , reply_desc = "刷新" , reply = [ {uint8, flag, "是否成功"} ,{string, msg, "提示语"} ] } ,#rpc{ code = 23805 ,log_title = "是否活动期间" , req_desc = "是否活动期间" , req = [ ] , reply_desc = "是否活动期间" , reply = [ {uint8, flag, "是否活动期间"} ] } ,#rpc{ code = 23806 ,log_title = "一键领取" , req_desc = "一键领取" , req = [ ] , reply_desc = "一键领取" , reply = [ {uint8, flag, "是否成功"} ,{string, msg, "提示语"} ,{array, single, order_list, "订单唯一ID列表", [ {uint32, order_id, "订单唯一ID"} ]} ] } ].