mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-08 11:05:59 +08:00
parameter range error (#606)
* message for your changes Signed-off-by: ‘hanzhixiao’ <‘709674996@qq.com’> * debug Signed-off-by: ‘hanzhixiao’ <‘709674996@qq.com’> * Delete start.bat * Delete build.cmd * fix: parameter check Signed-off-by: hanzhixiao <709674996@qq.com> * fix: parameter check Signed-off-by: hanzhixiao <709674996@qq.com> --------- Signed-off-by: ‘hanzhixiao’ <‘709674996@qq.com’> Signed-off-by: hanzhixiao <709674996@qq.com> Co-authored-by: ‘hanzhixiao’ <‘709674996@qq.com’>
This commit is contained in:
@@ -22,14 +22,13 @@ package auth
|
||||
|
||||
import (
|
||||
context "context"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -44,9 +43,9 @@ type UserTokenReq struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret"`
|
||||
Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret"`
|
||||
PlatformID int32 `protobuf:"varint,2,opt,name=platformID,proto3" json:"platformID"`
|
||||
UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID"`
|
||||
UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID"`
|
||||
}
|
||||
|
||||
func (x *UserTokenReq) Reset() {
|
||||
@@ -107,7 +106,7 @@ type UserTokenResp struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token"`
|
||||
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token"`
|
||||
ExpireTimeSeconds int64 `protobuf:"varint,3,opt,name=expireTimeSeconds,proto3" json:"expireTimeSeconds"`
|
||||
}
|
||||
|
||||
@@ -163,7 +162,7 @@ type ForceLogoutReq struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
PlatformID int32 `protobuf:"varint,1,opt,name=platformID,proto3" json:"platformID"`
|
||||
UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID"`
|
||||
UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID"`
|
||||
}
|
||||
|
||||
func (x *ForceLogoutReq) Reset() {
|
||||
@@ -302,8 +301,8 @@ type ParseTokenResp struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"`
|
||||
Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"`
|
||||
UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"`
|
||||
Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"`
|
||||
ExpireTimeSeconds int64 `protobuf:"varint,4,opt,name=expireTimeSeconds,proto3" json:"expireTimeSeconds"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user