-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwish_category.proto
More file actions
51 lines (44 loc) · 1.61 KB
/
wish_category.proto
File metadata and controls
51 lines (44 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
syntax = "proto3";
package proto_wishcategory;
import "wish_card.proto";
import "google/protobuf/empty.proto";
option go_package = ".;pb";
service WishCategoryService {
// やりたいことカテゴリーの新規作成
rpc CreateWishCategory(CreateWishCategoryRequest)
returns (google.protobuf.Empty) {};
// やりたいことカテゴリータイトル更新
rpc UpdateWishCategoryTitle(UpdateWishCategoryTitleRequest)
returns (google.protobuf.Empty) {};
// やりたいことカテゴリーの削除
rpc DeleteWishCategory(DeleteWishCategoryRequest)
returns (google.protobuf.Empty) {};
}
// やりたいことカテゴリー新規作成リクエスト
message CreateWishCategoryRequest {
// やりたいことリストID
int64 wish_list_id = 1;
// やりたいことカテゴリー名
string title = 2;
}
// やりたいことカテゴリータイトル更新リクエスト
message UpdateWishCategoryTitleRequest {
// やりたいことカテゴリーID
int64 wish_category_id = 1;
// 新規やりたいことカテゴリータイトル
string title = 2;
}
// やりたいことカテゴリー削除用リクエスト
message DeleteWishCategoryRequest {
// 削除したいやりたいことカテゴリーのID
int64 wish_category_id = 1;
}
// やりたいことカテゴリー情報
message WishCategory {
// やりたいことカテゴリーを特定するためのID
int64 wish_category_id = 1;
// やりたいことカテゴリー名
string title = 2;
// カテゴリー内のやりたいことカード一覧(配列)
repeated proto_wishcard.WishCard wish_cards = 3;
}