/** 日志记录服务 */ syntax = "proto3"; package com.ywt.gapi.base.log; option java_multiple_files = true; option java_outer_classname = "LogProto"; option java_package = "com.ywt.gapi.base.log"; //记录日志请求 message SaveCommentLogRequest{ string typeCode = 1; // 日志分类编码,自定义 string typeDesc = 2; // 日志分类描述,自定义 string content = 3; // 日志的内容,自定义 string remark = 4; // 日志备注,自定义 string ip = 5; // ip地址 int32 userId = 6; } //记录日志响应 message SaveCommentLogResponse{ int32 code = 1; string info = 2; } //记录日志请求 message SaveOpenHisPushApiLogRequest{ string path = 1; // 请求路径 string req = 2; // 请求json string res = 3; // 响应json int32 difftime = 4; // 响应时间 int32 httpStatus = 6; // 响应状态 } //记录日志响应 message SaveOpenHisPushApiLogResponse{ int32 code = 1; string info = 2; } //医务通日志服务 // 对应 base-service 项目的 log.js 文件 service YWTLogService { // 记录日志 rpc saveCommentLog(SaveCommentLogRequest) returns (SaveCommentLogResponse); // 保存his外转处方日志 rpc saveOpenHisPushApiLog(SaveOpenHisPushApiLogRequest) returns (SaveOpenHisPushApiLogResponse); }