syntax = "proto3"; package reports; //import "descriptor.proto"; //import "validator.proto"; option go_package = "./;reports"; service Reports{ //==================================年度报告====================================== rpc GetAnnualReportList(GetAnnualReportListReq) returns (GetAnnualReportListResp); rpc AddAnnualReport(AddAnnualReportReq) returns (AddAnnualReportResp); rpc EditAnnualReport(EditAnnualReportReq) returns (EditAnnualReportResp); rpc DeleteAnnualReport(DeleteAnnualReportReq) returns (DeleteAnnualReportResp); //==================================季度报告====================================== rpc GetQuarterlyReportList(GetQuarterlyReportListReq) returns (GetQuarterlyReportListResp); } message Filtrate{ string fileName = 3;//文件名称 int32 status = 4;//状态(1:上架,2:下架) } //==================================年度报告====================================== message GetAnnualReportListReq{ int32 page = 1; int32 pageSize = 2; Filtrate filtrate = 3; } message GetAnnualReportListResp{ string msg = 1; int32 page=2; int32 pageSize =3; int32 total = 4; repeated AnnualReport data = 5; } message AnnualReport{ int32 id = 1; //id string fileName = 2; //文件名称 string date = 3; //日期 string fileUrl = 4; //访问地址 int32 status = 5; //状态(1:上架,2:下架) int32 sort = 6; //排序 string updateTime = 7; //最近更新时间 string operator = 8; //操作人 int32 operatorId = 9; //操作人Id } message AddAnnualReportReq{ string fileName = 1; //文件名称 string date = 2; //日期 string fileUrl = 3; //访问地址 string operator = 4; //操作人 int32 operatorId = 5; //操作人Id } message AddAnnualReportResp{ string msg = 1; } message EditAnnualReportReq{ int32 id = 1; //id string fileName = 2; //文件名称 string date = 3; //日期 string fileUrl = 4; //访问地址 int32 sort = 5; //排序 int32 status = 6; //状态(1:上架,2:下架) string operator = 7; //操作人 int32 operatorId = 8; //操作人Id } message EditAnnualReportResp{ string msg = 1; } message DeleteAnnualReportReq{ int32 id = 1; } message DeleteAnnualReportResp{ string msg = 1; } //==================================季度报告====================================== message GetQuarterlyReportListReq{ int32 page = 1; int32 pageSize = 2; Filtrate filtrate = 3; } message GetQuarterlyReportListResp{ string msg = 1; int32 page=2; int32 pageSize =3; int32 total = 4; repeated QuarterlyReport data = 5; } message QuarterlyReport{ int32 id = 1; //id string fileName = 2; //文件名称 string fileIntroduce = 3; //文件介绍 int32 sort = 4; //排序 int32 status = 5; //状态(1:上架,2:下架) string updateTime = 6; //最近更新时间 string operator = 7; //操作人 int32 operatorId = 8; //操作人Id }