148 lines
4.1 KiB
Protocol Buffer
148 lines
4.1 KiB
Protocol Buffer
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);
|
||
rpc AddQuarterlyReport(AddQuarterlyReportReq) returns (AddQuarterlyReportResp);
|
||
rpc EditQuarterlyReport(EditQuarterlyReportReq) returns (EditQuarterlyReportResp);
|
||
rpc DeleteQuarterlyReport(DeleteQuarterlyReportReq) returns (DeleteQuarterlyReportResp);
|
||
}
|
||
|
||
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 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 updatedAt = 6; //最近更新时间
|
||
string operator = 7; //操作人
|
||
int32 operatorId = 8; //操作人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;
|
||
} |