Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (48 sloc) 1.23 KB
syntax = "proto3";
import "google/protobuf/timestamp.proto";
option java_multiple_files = true;
option java_package = "io.appwish.grpc";
option java_outer_classname = "WishGRPC";
service WishService {
rpc GetAllWish (AllWishQueryProto) returns (AllWishReplyProto) {}
rpc GetWish (WishQueryProto) returns (WishReplyProto) {}
rpc CreateWish (WishInputProto) returns (WishReplyProto) {}
rpc UpdateWish (UpdateWishInputProto) returns (WishReplyProto) {}
rpc DeleteWish (WishQueryProto) returns (WishDeleteReplyProto) {}
}
message AllWishQueryProto {
}
message WishQueryProto {
int64 id = 1;
}
message AllWishReplyProto {
repeated WishProto wishes = 1;
}
message WishReplyProto {
WishProto wish = 1;
}
message WishDeleteReplyProto {
bool deleted = 1;
}
message WishProto {
int64 id = 1;
int64 author_id = 2;
string title = 3;
string markdown = 4;
string html = 5;
string slug = 6;
string cover_image_url = 7;
google.protobuf.Timestamp created_at = 8;
google.protobuf.Timestamp updated_at = 9;
}
message WishInputProto {
string title = 1;
string markdown = 2;
string cover_image_url = 3;
}
message UpdateWishInputProto {
int64 id = 4;
string title = 1;
string markdown = 2;
string cover_image_url = 3;
}
You can’t perform that action at this time.