26 lines
631 B
Protocol Buffer
26 lines
631 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package subreddits.v1;
|
|
|
|
import "buf/validate/validate.proto";
|
|
|
|
option go_package = "github.com/tigorlazuardi/bluemage/go/gen/proto/subreddits/v1";
|
|
|
|
message DeleteSubredditRequest {
|
|
// name of the subreddit to delete
|
|
string name = 1 [(buf.validate.field).string.min_len = 1];
|
|
|
|
// if true, delete all images associated with the subreddit
|
|
// from disk as well.
|
|
bool delete_images = 2;
|
|
}
|
|
|
|
message DeleteSubredditResponse {
|
|
// name of the subreddit that was deleted.
|
|
string name = 1;
|
|
// number of images that were deleted.
|
|
//
|
|
// always 0 if delete_images is false.
|
|
uint32 deleted_images = 2;
|
|
}
|