19 lines
332 B
Protocol Buffer
19 lines
332 B
Protocol Buffer
// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto
|
|
syntax = "proto3";
|
|
|
|
package dtalk.auth;
|
|
option go_package = "gitlab.33.cn/chat/dtalk/service/auth";
|
|
|
|
message AuthRequest{
|
|
string appid = 1;
|
|
string token = 2;
|
|
}
|
|
|
|
message AuthReply {
|
|
string uid = 1;
|
|
}
|
|
|
|
service Auth {
|
|
rpc DoAuth(AuthRequest) returns (AuthReply);
|
|
}
|