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.
Open-IM-Server/pkg/proto/auth/auth.proto

54 lines
1.0 KiB

4 years ago
syntax = "proto3";
2 years ago
import "Open-IM-Server/pkg/proto/sdk_ws/ws.proto";
4 years ago
package pbAuth;
2 years ago
option go_package = "Open_IM/pkg/proto/auth;pbAuth";
4 years ago
3 years ago
message CommonResp{
int32 errCode = 1;
string errMsg = 2;
4 years ago
}
3 years ago
message UserRegisterReq {
3 years ago
server_api_params.UserInfo UserInfo = 1;
3 years ago
string OperationID = 2;
}
4 years ago
message UserRegisterResp {
3 years ago
CommonResp CommonResp = 1;
4 years ago
}
3 years ago
4 years ago
message UserTokenReq {
int32 Platform = 1;
3 years ago
string FromUserID = 2;
string OpUserID = 3;
string OperationID = 4;
string LoginIp = 5;
4 years ago
}
message UserTokenResp {
3 years ago
CommonResp CommonResp = 1;
string Token = 2;
int64 ExpiredTime = 3;
4 years ago
}
3 years ago
2 years ago
message ForceLogoutReq {
int32 Platform = 1;
string FromUserID = 2;
string OpUserID = 3;
string OperationID = 4;
}
message ForceLogoutResp {
CommonResp CommonResp = 1;
}
4 years ago
service Auth {
rpc UserRegister(UserRegisterReq) returns(UserRegisterResp);
rpc UserToken(UserTokenReq) returns(UserTokenResp);
2 years ago
rpc ForceLogout(ForceLogoutReq) returns(ForceLogoutResp);
4 years ago
}