-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwish_card.proto
More file actions
118 lines (106 loc) · 3.55 KB
/
wish_card.proto
File metadata and controls
118 lines (106 loc) · 3.55 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
syntax = "proto3";
package proto_wishcard;
import "tag.proto";
import "google/protobuf/empty.proto";
option go_package = ".;pb";
service WishCardService {
// やりたいことカードの新規作成
rpc CreateWishCard(CreateWishCardRequest) returns (google.protobuf.Empty) {};
// やりたいことカード(アクティビティ)の更新
rpc UpdateWishCardActivity(UpdateWishCardActivityRequest)
returns (google.protobuf.Empty) {};
// やりたいことカード(ディスクリプション)の更新
rpc UpdateWishCardDescription(UpdateWishCardDescriptionRequest)
returns (google.protobuf.Empty) {};
// やりたいことカード(日付)の更新
rpc UpdateWishCardDate(UpdateWishCardDateRequest)
returns (google.protobuf.Empty) {};
// やりたいことカード(場所)の更新
rpc UpdateWishCardPlace(UpdateWishCardPlaceRequest)
returns (google.protobuf.Empty) {};
// やりたいことカードのタグを新規追加
rpc AddWishCardTags(AddWishCardTagsRequest) returns (google.protobuf.Empty) {
};
// やりたいことカードのタグを削除
rpc DeleteWishCardTags(DeleteWishCardTagsRequest)
returns (google.protobuf.Empty) {};
// やりたいことカードの削除
rpc DeleteWishCard(DeleteWishCardRequest) returns (google.protobuf.Empty) {};
}
// やりたいことカード新規作成リクエスト
message CreateWishCardRequest {
// やりたいことカテゴリーID
int64 wish_category_id = 1;
// 何をしたいのか
string activity = 2;
// やりたいことの説明
string description = 3;
// いつやりたいか(UNIX)
int64 date = 4;
// どこでそれをしたいのか
string place = 5;
}
// やりたいことカードのアクティビティ更新リクエスト
message UpdateWishCardActivityRequest {
// カードのID
int64 wish_card_id = 1;
// アクティビティ名
string activity = 2;
}
// やりたいことカードの説明更新リクエスト
message UpdateWishCardDescriptionRequest {
// カードのID
int64 wish_card_id = 1;
// 説明
string description = 2;
}
// やりたいことカードの日付変更リクエスト
message UpdateWishCardDateRequest {
// カードのID
int64 wish_card_id = 1;
// 日付
int64 date = 2;
}
// やりたいことカードの場所変更リクエスト
message UpdateWishCardPlaceRequest {
// カードのID
int64 wish_card_id = 1;
// 場所
string place = 2;
}
// やりたいことカードに新規タグの追加リクエスト
message AddWishCardTagsRequest {
// タグを追加するやりたいことカードのID
int64 wish_card_id = 1;
// 追加したいタグの名前一覧(配列)
repeated string tag_names = 2;
}
// やりたいことカードからタグを削除
message DeleteWishCardTagsRequest {
// タグを削除するやりたいことカードのID
int64 wish_card_id = 1;
// 削除したいタグのID一覧(配列)
repeated int64 tag_ids = 2;
}
// やりたいことカード削除用リクエスト
message DeleteWishCardRequest {
// 削除したいやりたいことカードのID
int64 wish_card_id = 1;
}
// やりたいことカード情報
message WishCard {
// wish_cardを特定するためのID
int64 wish_card_id = 1;
// 何をしたいのか
string activity = 2;
// やりたいことの説明
string description = 3;
// いつやりたいか(UNIX)
int64 date = 4;
// 完了日時
int64 done_at = 5;
// どこでそれをしたいのか
string place = 6;
// タグ一覧(配列)
repeated proto_tag.Tag tags = 7;
}