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

38 lines
661 B
Protocol Buffer
Raw Permalink Normal View History

2022-01-11 00:48:03 +08:00
syntax = "proto3";
option go_package = "lark";
package example_service;
service User {
rpc Login (LoginRequest) returns (LoginResponse) {}
2022-01-12 00:40:37 +08:00
rpc Info (InfoRequest) returns (InfoResponse) {}
2022-01-11 00:48:03 +08:00
}
message LoginRequest {
string code = 1;
}
message LoginResponse {
2022-01-12 00:40:37 +08:00
string token = 1;
}
message InfoRequest {
string token = 1;
}
message InfoResponse {
2022-01-11 00:48:03 +08:00
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;
}