40 lines
866 B
Protocol Buffer
40 lines
866 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package project.v1;
|
|
|
|
message GetProjectRequest {
|
|
int32 id = 1;
|
|
}
|
|
|
|
message GetProjectResponse {
|
|
int64 id = 1;
|
|
string name = 2;
|
|
string description = 3;
|
|
optional bool is_materialized = 5;
|
|
optional bool is_personalized = 6;
|
|
optional bool is_confirmed = 7;
|
|
optional bool is_paid = 8;
|
|
optional bool is_done = 9;
|
|
}
|
|
|
|
message ListProjectsRequest {
|
|
int32 page = 1;
|
|
int32 per_page = 2;
|
|
string orber_by = 3;
|
|
bool asc = 4;
|
|
}
|
|
|
|
message Metadata {
|
|
int32 totalCount = 1;
|
|
}
|
|
|
|
message ListProjectsResponse {
|
|
repeated GetProjectResponse data = 1;
|
|
Metadata meta = 2;
|
|
}
|
|
|
|
service ProjectService {
|
|
rpc GetProject(GetProjectRequest) returns (GetProjectResponse);
|
|
rpc ListProjects(ListProjectsRequest) returns (ListProjectsResponse);
|
|
}
|