proto: added image proto
This commit is contained in:
parent
3e95251181
commit
385d498ab3
37
schemas/proto/images/v1/images.proto
Normal file
37
schemas/proto/images/v1/images.proto
Normal file
|
@ -0,0 +1,37 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package images.v1;
|
||||
|
||||
option go_package = "github.com/tigorlazuardi/bluemage/go/gen/proto/images/v1";
|
||||
|
||||
service ImageService {
|
||||
rpc RecentlyAddedImages(RecentlyAddedImagesRequest) returns (RecentlyAddedImagesResponse) {}
|
||||
}
|
||||
|
||||
message RecentlyAddedImagesRequest {
|
||||
int32 limit = 1;
|
||||
}
|
||||
|
||||
message RecentlyAddedImagesResponse {
|
||||
repeated GetImageResponse images = 1;
|
||||
}
|
||||
|
||||
message GetImageRequest {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message GetImageResponse {
|
||||
int32 id = 1;
|
||||
string subreddit = 2;
|
||||
string device = 3;
|
||||
string post_title = 4;
|
||||
string post_url = 5;
|
||||
int64 post_created = 6;
|
||||
string post_author = 7;
|
||||
string post_author_url = 8;
|
||||
string image_relative_path = 9;
|
||||
string image_original_url = 10;
|
||||
uint32 image_height = 11;
|
||||
uint32 image_width = 12;
|
||||
int64 image_size = 13;
|
||||
}
|
Loading…
Reference in a new issue