2024-08-09 15:22:54 +07:00
|
|
|
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;
|
2024-08-15 21:37:02 +07:00
|
|
|
// number of images that were about to be deleted.
|
2024-08-09 15:22:54 +07:00
|
|
|
//
|
|
|
|
// always 0 if delete_images is false.
|
2024-08-15 21:37:02 +07:00
|
|
|
int64 images_to_delete = 2;
|
2024-08-09 15:22:54 +07:00
|
|
|
}
|