micro-document/api/reports/reports.proto

181 lines
4.9 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 DisplayAnnualReport(DisplayAnnualReportReq) returns (DisplayAnnualReportResp);
//==================================季度报告======================================
rpc GetQuarterlyReportList(GetQuarterlyReportListReq) returns (GetQuarterlyReportListResp);
rpc AddQuarterlyReport(AddQuarterlyReportReq) returns (AddQuarterlyReportResp);
rpc EditQuarterlyReport(EditQuarterlyReportReq) returns (EditQuarterlyReportResp);
rpc DeleteQuarterlyReport(DeleteQuarterlyReportReq) returns (DeleteQuarterlyReportResp);
rpc DisplayQuarterlyReport(DisplayQuarterlyReportReq) returns (DisplayQuarterlyReportResp);
}
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; //文件名称
int64 date = 3; //日期
string fileUrl = 4; //访问地址
int32 status = 5; //状态1上架2下架
int32 sort = 6; //排序
string updatedAt = 7; //最近更新时间
string operator = 8; //操作人
int32 operatorId = 9; //操作人Id
}
message AddAnnualReportReq{
string fileName = 1; //文件名称
int64 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; //文件名称
int64 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 DisplayAnnualReportReq{
}
message DisplayAnnualReportResp{
repeated DisplayAnnualReportItem Item = 1;
}
message DisplayAnnualReportItem{
string fileName = 1;
int64 date = 2;
string fileUrl = 3;
}
//==================================季度报告======================================
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; //文件介绍
string attachment = 4; //附件
string attachmentName = 5; //附件名称
int32 sort = 6; //排序
int32 status = 7; //状态1上架2下架
string updatedAt = 8; //最近更新时间
string operator = 9; //操作人
int32 operatorId = 10; //操作人Id
}
message AddQuarterlyReportReq{
string fileName = 1; //文件名称
string fileIntroduce = 2; //文件介绍
string attachment = 3; //附件
string attachmentName = 4; //附件名称
string operator = 5; //操作人
int32 operatorId = 6; //操作人Id
}
message AddQuarterlyReportResp{
string msg = 1;
}
message EditQuarterlyReportReq{
int32 id = 1; //id
string fileName = 2; //文件名称
string fileIntroduce = 3; //文件介绍
string attachment = 4; //附件
string attachmentName = 5; //附件名称
int32 sort = 6; //排序
int32 status = 7; //状态1上架2下架
string operator = 8; //操作人
int32 operatorId = 9; //操作人Id
}
message EditQuarterlyReportResp{
string msg = 1;
}
message DeleteQuarterlyReportReq{
int32 id = 1;
}
message DeleteQuarterlyReportResp{
string msg = 1;
}
message DisplayQuarterlyReportReq{
}
message DisplayQuarterlyReportResp{
repeated DisplayQuarterlyReportItem Item = 1;
}
message DisplayQuarterlyReportItem {
string fileName =1;
string fileIntroduce = 2;
string attachment = 3;
string attachmentName = 4;
}