wip
This commit is contained in:
@@ -30,6 +30,7 @@ service MessageService {
|
||||
// User
|
||||
message CreateUserRequest {
|
||||
string email = 1;
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
message CreateUserResponse {
|
||||
@@ -72,6 +73,7 @@ message User {
|
||||
optional string token = 2;
|
||||
string email = 3;
|
||||
optional string description = 4;
|
||||
optional string name = 5;
|
||||
}
|
||||
|
||||
message UserForChatResponse {
|
||||
@@ -86,8 +88,8 @@ message UserForChatResponse {
|
||||
|
||||
// Chat
|
||||
message CreateChatRequest {
|
||||
repeated UserForChat users = 1;
|
||||
// int32 type_id = 2;
|
||||
optional string name = 1;
|
||||
repeated UserForChat users = 2;
|
||||
}
|
||||
|
||||
message UserForChat {
|
||||
@@ -118,8 +120,7 @@ message GetChatResponse {
|
||||
|
||||
message ListChatRequest {
|
||||
int32 page = 1;
|
||||
repeated int32 user_ids = 2;
|
||||
repeated string chat_ids = 3;
|
||||
int32 user_id = 2;
|
||||
}
|
||||
|
||||
message ListChatResponse {
|
||||
@@ -128,8 +129,9 @@ message ListChatResponse {
|
||||
|
||||
message Chat {
|
||||
string id = 1;
|
||||
int32 type_id = 3;
|
||||
repeated UserForChatResponse users = 5;
|
||||
int32 type_id = 2;
|
||||
optional string name = 3;
|
||||
repeated UserForChatResponse users = 4;
|
||||
}
|
||||
// Chat end
|
||||
|
||||
@@ -183,6 +185,8 @@ message Message {
|
||||
optional string image = 4;
|
||||
optional string video = 5;
|
||||
optional string file = 6;
|
||||
string created_at = 7;
|
||||
string updated_at = 8;
|
||||
}
|
||||
|
||||
// Message end
|
||||
|
||||
Reference in New Issue
Block a user