%%----------------------------------------- %% %% %%----------------------------------------- -module(proto_108). -export([ info/0 ,cfg/0 ] ). -include("protocol.hrl"). info() -> { "" ,["mail.hrl", "item.hrl"] }. cfg() -> [ #rpc{ code = 10800 ,log_title = "读取邮件列表" ,req_desc = "读取邮件列表" ,req = [] ,reply_desc = "读取邮件列表返回结果" ,reply = [ ?p_g_set(mail, {array, tuple, mail, "邮件列表", [ {rec, mail, mail, [ {tuple, sess, [ {uint32, id, "邮件id"}, {string, srv_id, "服务器ID"} ]}, {uint8, type, "类型(0:私人 1:系统 2:公告)"}, {string,from_name, "发件人用户名"}, {string, subject, "标题"}, {uint32, send_time, "发送时间"}, {uint32, read_time, "阅读时间"}, {uint32, time_out, "邮件超时时间戳"}, {uint8, status, "状态(0:未读 1:已读 2:已领)"} ]} ,{uint8, has_items, "是否带有附件(0:无 1:有)"} ]}) ] }, #rpc{ code = 10801 ,log_title = "提取单个邮件的附件" ,req_desc = "提取单个邮件的附件" ,req = [ {uint32, id, "邮件id"} ,{string, srv_id, "服务器ID"} ] ,reply_desc = "提取单个邮件的附件返回结果" ,reply = [ {uint32, id, "邮件id"}, {string, srv_id, "服务器ID"}, {uint8, code, "1-成功,0-失败"}, {string, msg, "提示信息"} ] }, #rpc{ code = 10802 ,log_title = "一键提取附件" ,req_desc = "一键提取附件" ,req = [] ,reply_desc = "一键提取附件返回结果" ,reply = [ {array, tuple, ids, "邮件id列表", [ {uint32, id, "邮件id"} ,{string, srv_id, "服务器ID"} ,{uint32, read_time, "阅读时间"} ] }, {string, msg, "提示信息"} ] }, #rpc{ code = 10803 ,log_title = "新邮件推送" ,req_desc = "新邮件推送" ,reply_desc = "新邮件推送返回结果" ,reply = [ ?p_g_get(mail) ] }, #rpc{ code = 10804 ,log_title = "删除没有附件的邮件" ,req_desc = "删除没有附件的邮件" ,req = [ {array, tuple, ids, "邮件id列表", [ {uint32, id, "邮件id"} ,{string, srv_id, "服务器ID"} ] } ] ,reply_desc = "删除没有附件的邮件返回结果" ,reply = [ {array, tuple, ids, "邮件id列表", [ {uint32, id, "邮件id"} ,{string, srv_id, "服务器ID"} ] }, {string, msg, "提示信息"} ] }, #rpc{ code = 10805 ,log_title = "读取邮件" ,req_desc = "读取邮件" ,req = [ {uint32, id, "邮件id"}, {string, srv_id, "服务器ID"} ] ,reply_desc = "读取邮件返回结果" ,reply = [ {uint32, id, "邮件id"}, {string, srv_id, "服务器ID"}, {uint8, code, "1-成功,0-失败"}, {string, msg, "提示信息"}, {uint32, read_time, "阅读时间"}, {uint8, is_delete, "1-删除,0-不删除"} ] }, #rpc{ code = 10806 ,log_title = "获取指定邮件详细内容" ,req_desc = "获取指定邮件详细内容" ,req = [ {uint32, id, "邮件id"}, {string, srv_id, "服务器ID"} ] ,reply = [ {rec, mail, mail, [ {tuple, sess, [ {uint32, id, "邮件id"}, {string, srv_id, "服务器ID"} ]}, {uint8, type, "类型(0:私人 1:系统 2:公告)"}, {string,from_name, "发件人用户名"}, {string, subject, "标题"}, {string, content, "内容"}, {array, tuple, assets, "资产", [ {uint8, label, "资产类型"}, {uint32, val, "值"} ] }, {array, item, items, "物品", [ {uint32, base_id, "物品Bid"}, {uint32, quantity, "数量"} ] }, {uint32, send_time, "发送时间"}, {uint32, read_time, "阅读时间"}, {uint32, time_out, "邮件超时时间戳"}, {uint8, status, "状态(0:未读 1:已读 2:已领)"} ] } ] }, #rpc{ code = 10810 ,log_title = "客服反馈" ,req_desc = "客服反馈" ,req = [ {uint8, issue_type, "问题类型(1:提问 2:游戏建议 3:bug反馈 4:追问)"}, {string, title, "标题"}, {string, content, "描述内容"}, {string, phone, "电话号码"}, {string, email, "邮箱地址"}, {string, phone_info, "设备信息"}, {uint32, id, "反馈id(不是追问默认传0)"} ] ,reply_desc = "客服反馈返回结果" ,reply = [ {uint8, code, "成功或失败 1:成功 ,0:失败"}, {string, msg, "附加信息"}, {uint32, id, "反馈id(追问时返回追问的id)"} ] }, #rpc{ code = 10811 ,log_title = "评价客服反馈" ,req_desc = "评价客服反馈" ,req = [ {uint32, id, "反馈id"} ,{uint8, score, "评价星级(0:点击已解决)"} ] ,reply_desc = "客服反馈返回结果" ,reply = [ {uint8, code, "成功或失败 1:成功 ,0:失败"}, {string, msg, "附加信息"} ] }, %% #rpc{ %% code = 10812 %% ,log_title = "客服反馈状态" %% ,req_desc = "客服反馈状态" %% ,req = [ %% {uint32, id, "邮件id"} %% ,{string, srv_id, "服务器ID"} %% ] %% ,reply_desc = "客服反馈状态返回结果" %% ,reply = [ %% {uint32, id, "邮件id"}, %% {string, srv_id, "服务器ID"}, %% {uint8, status, "0:未评价,1:已评价,2:放弃评价,3:不可评价"}, %% {uint8, score, "附加信息"} %% ] %% }, #rpc{ code = 10813 ,log_title = "反馈记录" ,req_desc = "反馈记录" ,req = [] ,reply_desc = "反馈记录" ,reply = [ {array, role_feedback_info, feedback_logs, "反馈记录", [ {uint32, id, "反馈id"} ,{string, title, "标题"} ,{string, content, "描述内容"} ,{uint8, state, "反馈状态(1:已提交 2:已回复 3:已完成待评价 4:已评价 5:超时)"} ,{uint8, status2, "最新回复查看状态(用于处理红点,0:未读 1:已读)"} ,{uint32, end_msg_time, "最新交互时间"} ,{uint32, start_time, "提交时间"} ,{uint32, finish_time, "完成时间"} ,{uint32, score_time, "评分时间"} ]} ] } ,#rpc{ code = 10814 ,log_title = "后端推送反馈变更" ,req_desc = "后端推送反馈变更" ,req = [ {uint32, id, "反馈id"} ] ,reply_desc = "后端推送反馈变更" ,reply = [ {rec, role_feedback_info, role_feedback_info, [ {uint32, id, "反馈id"} ,{string, title, "标题"} ,{string, content, "描述内容"} ,{uint8, state, "反馈状态(1:已提交 2:已回复 3:已完成待评价 4:已评价 5:超时)"} ,{uint8, status2, "最新回复查看状态(用于处理红点,0:未读 1:已读)"} ,{uint32, end_msg_time, "最新交互时间"} ,{uint32, start_time, "提交时间"} ,{uint32, finish_time, "完成时间"} ,{uint32, score_time, "评分时间"} ,{array, tuple, questions_lists, "反馈详情", [ {uint32, questions_timer, "追问时间戳"} ,{string, questions_content, "追问内容"} ]} ,{array, tuple, answer_lists, "回复详情", [ {uint32, answer_timer, "回复时间戳"} ,{string, answer_content, "回复内容"} ]} ]} ] } ].