You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
729 B
37 lines
729 B
1 year ago
|
syntax = "proto3";
|
||
|
import "Open_IM/pkg/proto/sdk_ws/ws.proto";
|
||
|
package pbAuth;
|
||
|
option go_package = "./auth;pbAuth";
|
||
|
|
||
|
message CommonResp{
|
||
|
int32 errCode = 1;
|
||
|
string errMsg = 2;
|
||
|
}
|
||
|
|
||
|
message UserRegisterReq {
|
||
|
server_api_params.UserInfo UserInfo = 1;
|
||
|
string OperationID = 2;
|
||
|
}
|
||
|
message UserRegisterResp {
|
||
|
CommonResp CommonResp = 1;
|
||
|
}
|
||
|
|
||
|
|
||
|
message UserTokenReq {
|
||
|
int32 Platform = 1;
|
||
|
string FromUserID = 2;
|
||
|
string OpUserID = 3;
|
||
|
string OperationID = 4;
|
||
|
}
|
||
|
message UserTokenResp {
|
||
|
CommonResp CommonResp = 1;
|
||
|
string Token = 2;
|
||
|
int64 ExpiredTime = 3;
|
||
|
}
|
||
|
|
||
|
|
||
|
service Auth {
|
||
|
rpc UserRegister(UserRegisterReq) returns(UserRegisterResp);
|
||
|
rpc UserToken(UserTokenReq) returns(UserTokenResp);
|
||
|
}
|