backend/pkg/proto/zeus/lark/user.proto

38 lines
661 B
Protocol Buffer

syntax = "proto3";
option go_package = "lark";
package example_service;
service User {
rpc Login (LoginRequest) returns (LoginResponse) {}
rpc Info (InfoRequest) returns (InfoResponse) {}
}
message LoginRequest {
string code = 1;
}
message LoginResponse {
string token = 1;
}
message InfoRequest {
string token = 1;
}
message InfoResponse {
uint64 id = 13;
string access_token = 1;
string name = 2;
string en_name = 3;
string avatar_url = 4;
string avatar_thumb = 5;
string avatar_middle = 6;
string avatar_big = 7;
string open_id = 8;
string union_id = 9;
string email = 10;
string user_id = 11;
string mobile = 12;
}