%%---------------------------------------------------- %% 月基金 %% %% @author yzq %%---------------------------------------------------- -module(proto_247). -export([info/0, cfg/0]). -include("protocol.hrl"). info() -> { "月基金" ,["common.hrl"] }. -spec cfg() -> [#rpc{}]. cfg() -> [ #rpc{ code = 24700 ,log_title = "当前开启的基金" ,req_desc = "当前开启的基金" ,req = [] ,reply_desc = "基础信息" ,reply = [ {array, tuple, ids, "基金ID", [ {uint32, id, "基金ID"} ,{uint8, status, "当前状态: 0可充值 1可领取 2已领取 3不可充值"} ,{uint8, show, "显示位置:0在福利,1在图标"} ]} ] } ,#rpc{ code = 24701 ,log_title = "推送基础信息" ,req_desc = "推送基础信息" ,req = [ {uint32, id, "基金ID"} ] ,reply_desc = "基础信息" ,reply = [ {uint32, id, "基金ID"} ,{uint16, current_day, "当前天数"} ,{uint16, group_id, "当前奖励组"} ,{uint32, endtime, "结束时间"} ,{uint8, status, "当前状态: 0可充值 1可领取 2已领取 3不可充值"} ] } ,#rpc{ code = 24702 ,log_title = "领取基金" ,req_desc = "领取基金" ,req = [ {uint32, id, "基金ID"} ] ,reply_desc = "状态" ,reply = [ {uint8, code, "结果状态(0:失败 1:成功)"} ,{string, msg, "结果信息"} ] } ,#rpc{ code = 24703 ,log_title = "基金红点状态" ,req_desc = "基金红点状态" ,req = [ {uint16, id, "基金ID"} ] ,reply_desc = "状态" ,reply = [ {array, tuple, ids, "基金ID", [ {uint32, id, "基金ID"} ,{uint8, status, "红点状态"} ]} ] } ].