wip
This commit is contained in:
@@ -153,6 +153,7 @@ message Chat {
|
||||
int32 type_id = 2;
|
||||
optional string name = 3;
|
||||
repeated UserForChatResponse users = 4;
|
||||
Message message = 5;
|
||||
}
|
||||
// Chat end
|
||||
|
||||
@@ -162,7 +163,7 @@ message CreateMessageRequest {
|
||||
uuid: true,
|
||||
}];
|
||||
int32 user_id = 3 [(validate.rules).int32.gt = 0];
|
||||
optional string text = 4 [(validate.rules).string = {
|
||||
optional string message = 4 [(validate.rules).string = {
|
||||
ignore_empty: true,
|
||||
max_len: 200
|
||||
}];
|
||||
@@ -189,7 +190,7 @@ message UpdateMessageRequest {
|
||||
string chat_id = 2 [(validate.rules).string = {
|
||||
uuid: true,
|
||||
}];
|
||||
optional string text = 3 [(validate.rules).string = {
|
||||
optional string message = 3 [(validate.rules).string = {
|
||||
ignore_empty: true,
|
||||
max_len: 200
|
||||
}];
|
||||
@@ -233,7 +234,7 @@ message ListMessageResponse {
|
||||
message Message {
|
||||
int32 id = 1;
|
||||
int32 user_id = 2;
|
||||
optional string text = 3;
|
||||
optional string message = 3;
|
||||
optional string image = 4;
|
||||
optional string video = 5;
|
||||
optional string file = 6;
|
||||
|
||||
Reference in New Issue
Block a user