%%%------------------------------------------------------------------- %%% @author Administrator %%% @copyright (C) 2023, %%% @doc %%% %%% @end %%% Created : 12. 5月 2023 9:18 %%%------------------------------------------------------------------- -module(proto_293). -author("ouyang"). %% API -export([info/0, cfg/0]). -include("protocol.hrl"). info() -> { "亲密度" ,["partner.hrl"] }. -spec cfg() -> [#rpc{}]. cfg() ->[ #rpc{ code = 29300 , log_title = "获取亲密度信息" , req_desc = "获取亲密度信息" , req = [ ] , reply_desc = "获取亲密度信息" , reply = [ {string, msg, "结果信息"} ,{array, tuple, intimacy_list, "亲密度信息", [ {uint32, partner_id, "伙伴唯一id"} , {uint32, intimacy_num, "亲密度数值"} , {uint16, intimacy_lev, "亲密度等级"} ]} , {uint16, is_first, "是否第一次, 0-是第一次, 1-不是第一次"} ] } ,#rpc{ code = 29301 , log_title = "推送亲密度信息" , req_desc = "推送亲密度信息" , req = [ ] , reply_desc = "获取亲密度信息" , reply = [ {array, tuple, intimacy_list, "亲密度信息", [ {uint32, partner_id, "伙伴唯一id"} , {uint32, intimacy_num, "亲密度数值"} , {uint16, intimacy_lev, "亲密度等级"} ]} , {uint16, is_first, "是否第一次"} ] } ,#rpc{ code = 29302 ,log_title = "密谈信息" ,req_desc = "密谈信息" ,req = [ {uint32, partner_id, "英雄id"} ,{string, profile_id, "档案id"} ,{string, talk_id, "会话id"} ] ,reply_desc = "密谈信息" ,reply = [ {uint8, code, "结果(0:失败 1:成功)"} ,{string, msg, "结果信息"} ] } ,#rpc{ code = 29303 ,log_title = "领取个人档案结果奖励" ,req_desc = "领取个人档案结果奖励" ,req = [ {uint32, partner_id, "英雄id"} ,{string, profile_id, "档案id"} ,{string, talk_id, "会话id"} ] ,reply_desc = "领取个人档案结果奖励" ,reply = [ {uint8, code, "结果(0:失败 1:成功)"} ,{string, msg, "结果信息"} ] } ,#rpc{ code = 29304 ,log_title = "使用道具" ,req_desc = "使用道具" ,req = [ {uint32, partner_id, "英雄id"} ,{uint32, item_id, "道具id"} ,{uint32, num, "数量"} ] ,reply_desc = "使用道具" ,reply = [ {uint8, code, "结果(0:失败 1:成功)"} ,{string, msg, "结果信息"} ] } ,#rpc{ code = 29305 ,log_title = "档案信息" ,req_desc = "档案信息" ,req = [ {uint32, partner_id, "英雄id"} ,{string, profile_id, "档案id"} ] ,reply_desc = "档案信息" ,reply = [ {string, msg, "结果信息"} , {array, single, historical_dialogue, "历史对话id", [ {string, talk_id, "对话id"} ] } , {array, tuple, personal_profile_result, "已解锁的档案结果", [ {string, talk_id, "结束对话id"} ,{uint32, is_get_reward, "个人档案结果奖励是否领取, 0-未领取, 1-已领取"}] } ] } ,#rpc{ code = 29306 ,log_title = "获取密谈信息" ,req_desc = "获取密谈信息" ,req = [ {uint32, partner_id, "英雄id"} ,{string, profile_id, "档案id"} ] ,reply_desc = "获取密谈信息" ,reply = [ {string, msg, "结果信息"} ,{uint32, step, "当前密谈步骤 初始为1, 有密谈分支完成时为:-1"} ] } ,#rpc{ code = 29307 , log_title = "亲密度plus信息" , req_desc = "亲密度plus信息" , req = [ ] , reply_desc = "亲密度plus信息" , reply = [ {array, tuple, mood_list, "亲密度plus信息", [ {uint32, partner_id, "伙伴唯一id"} , {uint32, favor_num, "亲密度数值"} , {uint16, mood, "心情值"} , {uint16, vip_mood, "vip心情值"} ]} ] } ,#rpc{ code = 29308 ,log_title = "亲密度plus动作" ,req_desc = "亲密度plus动作" ,req = [ {uint32, partner_id, "英雄id"} ,{string, action_id, "动作id"} ] ,reply_desc = "亲密度plus动作" ,reply = [ {uint8, code, "结果(0:失败 1:成功)"} ,{string, msg, "结果信息"} , {uint32, addr_num, "增加的亲密度数值"} ] } ,#rpc{ code = 29309 , log_title = "推送亲密度plus信息" , req_desc = "推送亲密度plus信息" , req = [ ] , reply_desc = "推送亲密度plus信息" , reply = [ {uint32, partner_id, "伙伴唯一id"} , {uint32, favor_num, "亲密度数值"} , {uint16, mood, "心情值"} , {uint16, vip_mood, "vip心情值"} ] } ].