Skip to content

Instantly share code, notes, and snippets.

@zhuharev
Created March 20, 2018 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuharev/23b8f45f2f238718b0a439961445f392 to your computer and use it in GitHub Desktop.
Save zhuharev/23b8f45f2f238718b0a439961445f392 to your computer and use it in GitHub Desktop.
miss
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