Created
March 20, 2018 10:37
-
-
Save zhuharev/23b8f45f2f238718b0a439961445f392 to your computer and use it in GitHub Desktop.
miss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
import "google/api/annotations.proto"; | |
import "google/protobuf/timestamp.proto"; | |
package love; | |
message User { | |
int64 id = 1; | |
string first_name = 2; | |
string last_name = 3; | |
enum Sex { | |
Woman = 0; | |
Man = 1; | |
} | |
Sex sex = 4 | |
int64 group_id = 5; | |
repeated Image images = 6; | |
} | |
message Image { | |
string url = 1; | |
string color = 2; | |
string hash = 3; | |
int64 hash_version = 4; | |
} | |
message Dialog { | |
string id = 1; | |
} | |
message Message { | |
string dialog_id = 1; | |
string text = 2; | |
int64 sender_id = 3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment