2024-07-14 12:25:30 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
2024-07-30 10:31:26 +00:00
|
|
|
// protoc-gen-go v1.34.2
|
2024-07-14 12:25:30 +00:00
|
|
|
// protoc v5.27.1
|
|
|
|
// source: auth.proto
|
|
|
|
|
|
|
|
package proto
|
|
|
|
|
|
|
|
import (
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
|
|
|
|
|
|
|
type UserInfo struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Nick string `protobuf:"bytes,3,opt,name=nick,proto3" json:"nick,omitempty"`
|
|
|
|
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
|
Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
|
|
|
Banner string `protobuf:"bytes,6,opt,name=banner,proto3" json:"banner,omitempty"`
|
|
|
|
Description *string `protobuf:"bytes,7,opt,name=description,proto3,oneof" json:"description,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserInfo) Reset() {
|
|
|
|
*x = UserInfo{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UserInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UserInfo) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_auth_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UserInfo) Descriptor() ([]byte, []int) {
|
|
|
|
return file_auth_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserInfo) GetId() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserInfo) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserInfo) GetNick() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Nick
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserInfo) GetEmail() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Email
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserInfo) GetAvatar() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Avatar
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserInfo) GetBanner() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Banner
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserInfo) GetDescription() string {
|
|
|
|
if x != nil && x.Description != nil {
|
|
|
|
return *x.Description
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type AuthInfo struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
|
|
|
|
Permissions []byte `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
|
|
|
TicketId uint64 `protobuf:"varint,3,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`
|
|
|
|
NewAccessToken *string `protobuf:"bytes,4,opt,name=new_access_token,json=newAccessToken,proto3,oneof" json:"new_access_token,omitempty"`
|
|
|
|
NewRefreshToken *string `protobuf:"bytes,5,opt,name=new_refresh_token,json=newRefreshToken,proto3,oneof" json:"new_refresh_token,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthInfo) Reset() {
|
|
|
|
*x = AuthInfo{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*AuthInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *AuthInfo) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_auth_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use AuthInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*AuthInfo) Descriptor() ([]byte, []int) {
|
|
|
|
return file_auth_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthInfo) GetInfo() *UserInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.Info
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthInfo) GetPermissions() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Permissions
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthInfo) GetTicketId() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.TicketId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthInfo) GetNewAccessToken() string {
|
|
|
|
if x != nil && x.NewAccessToken != nil {
|
|
|
|
return *x.NewAccessToken
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthInfo) GetNewRefreshToken() string {
|
|
|
|
if x != nil && x.NewRefreshToken != nil {
|
|
|
|
return *x.NewRefreshToken
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type AuthRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
|
|
RefreshToken *string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3,oneof" json:"refresh_token,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthRequest) Reset() {
|
|
|
|
*x = AuthRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*AuthRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *AuthRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_auth_proto_msgTypes[2]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*AuthRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_auth_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthRequest) GetAccessToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.AccessToken
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthRequest) GetRefreshToken() string {
|
|
|
|
if x != nil && x.RefreshToken != nil {
|
|
|
|
return *x.RefreshToken
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type AuthReply struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
|
|
|
|
Info *AuthInfo `protobuf:"bytes,2,opt,name=info,proto3,oneof" json:"info,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthReply) Reset() {
|
|
|
|
*x = AuthReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*AuthReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *AuthReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_auth_proto_msgTypes[3]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use AuthReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*AuthReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_auth_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthReply) GetIsValid() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.IsValid
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AuthReply) GetInfo() *AuthInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.Info
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type CheckPermRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckPermRequest) Reset() {
|
|
|
|
*x = CheckPermRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[4]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckPermRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*CheckPermRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CheckPermRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_auth_proto_msgTypes[4]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use CheckPermRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CheckPermRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_auth_proto_rawDescGZIP(), []int{4}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckPermRequest) GetToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Token
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckPermRequest) GetKey() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckPermRequest) GetValue() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-07-15 12:04:03 +00:00
|
|
|
type CheckPermResponse struct {
|
2024-07-14 12:25:30 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-07-15 12:04:03 +00:00
|
|
|
func (x *CheckPermResponse) Reset() {
|
|
|
|
*x = CheckPermResponse{}
|
2024-07-14 12:25:30 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[5]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-15 12:04:03 +00:00
|
|
|
func (x *CheckPermResponse) String() string {
|
2024-07-14 12:25:30 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2024-07-15 12:04:03 +00:00
|
|
|
func (*CheckPermResponse) ProtoMessage() {}
|
2024-07-14 12:25:30 +00:00
|
|
|
|
2024-07-15 12:04:03 +00:00
|
|
|
func (x *CheckPermResponse) ProtoReflect() protoreflect.Message {
|
2024-07-14 12:25:30 +00:00
|
|
|
mi := &file_auth_proto_msgTypes[5]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2024-07-15 12:04:03 +00:00
|
|
|
// Deprecated: Use CheckPermResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CheckPermResponse) Descriptor() ([]byte, []int) {
|
2024-07-14 12:25:30 +00:00
|
|
|
return file_auth_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
|
|
|
|
2024-07-15 12:04:03 +00:00
|
|
|
func (x *CheckPermResponse) GetIsValid() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.IsValid
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type CheckUserPermRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
|
|
OtherId uint64 `protobuf:"varint,2,opt,name=other_id,json=otherId,proto3" json:"other_id,omitempty"`
|
|
|
|
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckUserPermRequest) Reset() {
|
|
|
|
*x = CheckUserPermRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[6]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckUserPermRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*CheckUserPermRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CheckUserPermRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_auth_proto_msgTypes[6]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use CheckUserPermRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CheckUserPermRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_auth_proto_rawDescGZIP(), []int{6}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckUserPermRequest) GetUserId() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.UserId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckUserPermRequest) GetOtherId() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.OtherId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckUserPermRequest) GetKey() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckUserPermRequest) GetValue() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type CheckUserPermResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckUserPermResponse) Reset() {
|
|
|
|
*x = CheckUserPermResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[7]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckUserPermResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*CheckUserPermResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CheckUserPermResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_auth_proto_msgTypes[7]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use CheckUserPermResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CheckUserPermResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_auth_proto_rawDescGZIP(), []int{7}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CheckUserPermResponse) GetIsValid() bool {
|
2024-07-14 12:25:30 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.IsValid
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2024-07-30 10:31:26 +00:00
|
|
|
type SimpleUserInfo struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Nick string `protobuf:"bytes,3,opt,name=nick,proto3" json:"nick,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SimpleUserInfo) Reset() {
|
|
|
|
*x = SimpleUserInfo{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[8]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SimpleUserInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*SimpleUserInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SimpleUserInfo) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_auth_proto_msgTypes[8]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use SimpleUserInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SimpleUserInfo) Descriptor() ([]byte, []int) {
|
|
|
|
return file_auth_proto_rawDescGZIP(), []int{8}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SimpleUserInfo) GetId() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SimpleUserInfo) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SimpleUserInfo) GetNick() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Nick
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListUserRelativeRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUserRelativeRequest) Reset() {
|
|
|
|
*x = ListUserRelativeRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[9]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUserRelativeRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListUserRelativeRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListUserRelativeRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_auth_proto_msgTypes[9]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ListUserRelativeRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListUserRelativeRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_auth_proto_rawDescGZIP(), []int{9}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUserRelativeRequest) GetUserId() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.UserId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListUserRelativeResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Data []*SimpleUserInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUserRelativeResponse) Reset() {
|
|
|
|
*x = ListUserRelativeResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_auth_proto_msgTypes[10]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUserRelativeResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListUserRelativeResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListUserRelativeResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_auth_proto_msgTypes[10]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ListUserRelativeResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListUserRelativeResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_auth_proto_rawDescGZIP(), []int{10}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListUserRelativeResponse) GetData() []*SimpleUserInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.Data
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-07-14 12:25:30 +00:00
|
|
|
var File_auth_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_auth_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72,
|
|
|
|
0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
|
|
|
|
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64,
|
|
|
|
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
|
|
|
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x69, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x04, 0x6e, 0x69, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69,
|
|
|
|
0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x16,
|
|
|
|
0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
|
|
|
0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72,
|
|
|
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x12, 0x25,
|
|
|
|
0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
|
|
|
|
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xf9, 0x01, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x49, 0x6e,
|
|
|
|
0x66, 0x6f, 0x12, 0x23, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
|
|
|
0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66,
|
|
|
|
0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69,
|
|
|
|
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x65,
|
|
|
|
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x69, 0x63,
|
|
|
|
0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x74, 0x69,
|
|
|
|
0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x10, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x63,
|
|
|
|
0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x48, 0x00, 0x52, 0x0e, 0x6e, 0x65, 0x77, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b,
|
|
|
|
0x65, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x11, 0x6e, 0x65, 0x77, 0x5f, 0x72, 0x65, 0x66,
|
|
|
|
0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x48, 0x01, 0x52, 0x0f, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f,
|
|
|
|
0x6b, 0x65, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x61,
|
|
|
|
0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x14, 0x0a, 0x12, 0x5f,
|
|
|
|
0x6e, 0x65, 0x77, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
|
|
|
|
0x6e, 0x22, 0x6c, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f,
|
|
|
|
0x6b, 0x65, 0x6e, 0x12, 0x28, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65,
|
|
|
|
0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a,
|
|
|
|
0x0e, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22,
|
|
|
|
0x59, 0x0a, 0x09, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x19, 0x0a, 0x08,
|
|
|
|
0x69, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
|
|
|
|
0x69, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18,
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x75,
|
|
|
|
0x74, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x88, 0x01,
|
|
|
|
0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x50, 0x0a, 0x10, 0x43, 0x68,
|
|
|
|
0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14,
|
|
|
|
0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
2024-07-15 12:04:03 +00:00
|
|
|
0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2e, 0x0a, 0x11,
|
|
|
|
0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x22, 0x72, 0x0a, 0x14,
|
|
|
|
0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x19, 0x0a,
|
|
|
|
0x08, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
|
|
|
|
0x07, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
|
|
|
|
0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
|
|
|
0x22, 0x32, 0x0a, 0x15, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72,
|
|
|
|
0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f,
|
|
|
|
0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x56,
|
2024-07-30 10:31:26 +00:00
|
|
|
0x61, 0x6c, 0x69, 0x64, 0x22, 0x48, 0x0a, 0x0e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x55, 0x73,
|
|
|
|
0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x69,
|
|
|
|
0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x69, 0x63, 0x6b, 0x22, 0x32,
|
|
|
|
0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69,
|
|
|
|
0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65,
|
|
|
|
0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
|
|
|
|
0x49, 0x64, 0x22, 0x45, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
|
|
|
|
0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29,
|
|
|
|
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70,
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
|
|
|
|
0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x8c, 0x03, 0x0a, 0x04, 0x41, 0x75,
|
|
|
|
0x74, 0x68, 0x12, 0x36, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61,
|
|
|
|
0x74, 0x65, 0x12, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41,
|
|
|
|
0x75, 0x74, 0x68, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x11, 0x45, 0x6e,
|
|
|
|
0x73, 0x75, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12,
|
|
|
|
0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72,
|
|
|
|
0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x15, 0x45, 0x6e, 0x73, 0x75, 0x72, 0x65, 0x55, 0x73,
|
|
|
|
0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x1b, 0x2e,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50,
|
|
|
|
0x65, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
|
0x74, 0x6f, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d,
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0f, 0x4c, 0x69,
|
|
|
|
0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x73, 0x12, 0x1e, 0x2e,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
|
|
|
|
0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
|
|
|
|
0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
|
|
|
|
0x12, 0x56, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x6c, 0x6f, 0x63,
|
|
|
|
0x6b, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 0x69,
|
|
|
|
0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 0x69,
|
|
|
|
0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x3b, 0x70, 0x72,
|
|
|
|
0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2024-07-14 12:25:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_auth_proto_rawDescOnce sync.Once
|
|
|
|
file_auth_proto_rawDescData = file_auth_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_auth_proto_rawDescGZIP() []byte {
|
|
|
|
file_auth_proto_rawDescOnce.Do(func() {
|
|
|
|
file_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_auth_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2024-07-30 10:31:26 +00:00
|
|
|
var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
|
|
var file_auth_proto_goTypes = []any{
|
|
|
|
(*UserInfo)(nil), // 0: proto.UserInfo
|
|
|
|
(*AuthInfo)(nil), // 1: proto.AuthInfo
|
|
|
|
(*AuthRequest)(nil), // 2: proto.AuthRequest
|
|
|
|
(*AuthReply)(nil), // 3: proto.AuthReply
|
|
|
|
(*CheckPermRequest)(nil), // 4: proto.CheckPermRequest
|
|
|
|
(*CheckPermResponse)(nil), // 5: proto.CheckPermResponse
|
|
|
|
(*CheckUserPermRequest)(nil), // 6: proto.CheckUserPermRequest
|
|
|
|
(*CheckUserPermResponse)(nil), // 7: proto.CheckUserPermResponse
|
|
|
|
(*SimpleUserInfo)(nil), // 8: proto.SimpleUserInfo
|
|
|
|
(*ListUserRelativeRequest)(nil), // 9: proto.ListUserRelativeRequest
|
|
|
|
(*ListUserRelativeResponse)(nil), // 10: proto.ListUserRelativeResponse
|
2024-07-14 12:25:30 +00:00
|
|
|
}
|
|
|
|
var file_auth_proto_depIdxs = []int32{
|
2024-07-30 10:31:26 +00:00
|
|
|
0, // 0: proto.AuthInfo.info:type_name -> proto.UserInfo
|
|
|
|
1, // 1: proto.AuthReply.info:type_name -> proto.AuthInfo
|
|
|
|
8, // 2: proto.ListUserRelativeResponse.data:type_name -> proto.SimpleUserInfo
|
|
|
|
2, // 3: proto.Auth.Authenticate:input_type -> proto.AuthRequest
|
|
|
|
4, // 4: proto.Auth.EnsurePermGranted:input_type -> proto.CheckPermRequest
|
|
|
|
6, // 5: proto.Auth.EnsureUserPermGranted:input_type -> proto.CheckUserPermRequest
|
|
|
|
9, // 6: proto.Auth.ListUserFriends:input_type -> proto.ListUserRelativeRequest
|
|
|
|
9, // 7: proto.Auth.ListUserBlocklist:input_type -> proto.ListUserRelativeRequest
|
|
|
|
3, // 8: proto.Auth.Authenticate:output_type -> proto.AuthReply
|
|
|
|
5, // 9: proto.Auth.EnsurePermGranted:output_type -> proto.CheckPermResponse
|
|
|
|
7, // 10: proto.Auth.EnsureUserPermGranted:output_type -> proto.CheckUserPermResponse
|
|
|
|
10, // 11: proto.Auth.ListUserFriends:output_type -> proto.ListUserRelativeResponse
|
|
|
|
10, // 12: proto.Auth.ListUserBlocklist:output_type -> proto.ListUserRelativeResponse
|
|
|
|
8, // [8:13] is the sub-list for method output_type
|
|
|
|
3, // [3:8] is the sub-list for method input_type
|
|
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
|
|
0, // [0:3] is the sub-list for field type_name
|
2024-07-14 12:25:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_auth_proto_init() }
|
|
|
|
func file_auth_proto_init() {
|
|
|
|
if File_auth_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
2024-07-30 10:31:26 +00:00
|
|
|
file_auth_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
2024-07-14 12:25:30 +00:00
|
|
|
switch v := v.(*UserInfo); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2024-07-30 10:31:26 +00:00
|
|
|
file_auth_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
2024-07-14 12:25:30 +00:00
|
|
|
switch v := v.(*AuthInfo); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2024-07-30 10:31:26 +00:00
|
|
|
file_auth_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
2024-07-14 12:25:30 +00:00
|
|
|
switch v := v.(*AuthRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2024-07-30 10:31:26 +00:00
|
|
|
file_auth_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
2024-07-14 12:25:30 +00:00
|
|
|
switch v := v.(*AuthReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2024-07-30 10:31:26 +00:00
|
|
|
file_auth_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
2024-07-14 12:25:30 +00:00
|
|
|
switch v := v.(*CheckPermRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2024-07-30 10:31:26 +00:00
|
|
|
file_auth_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
2024-07-15 12:04:03 +00:00
|
|
|
switch v := v.(*CheckPermResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2024-07-30 10:31:26 +00:00
|
|
|
file_auth_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
2024-07-15 12:04:03 +00:00
|
|
|
switch v := v.(*CheckUserPermRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2024-07-30 10:31:26 +00:00
|
|
|
file_auth_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
2024-07-15 12:04:03 +00:00
|
|
|
switch v := v.(*CheckUserPermResponse); i {
|
2024-07-14 12:25:30 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2024-07-30 10:31:26 +00:00
|
|
|
file_auth_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
|
|
|
switch v := v.(*SimpleUserInfo); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_auth_proto_msgTypes[9].Exporter = func(v any, i int) any {
|
|
|
|
switch v := v.(*ListUserRelativeRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_auth_proto_msgTypes[10].Exporter = func(v any, i int) any {
|
|
|
|
switch v := v.(*ListUserRelativeResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2024-07-14 12:25:30 +00:00
|
|
|
}
|
2024-07-30 10:31:26 +00:00
|
|
|
file_auth_proto_msgTypes[0].OneofWrappers = []any{}
|
|
|
|
file_auth_proto_msgTypes[1].OneofWrappers = []any{}
|
|
|
|
file_auth_proto_msgTypes[2].OneofWrappers = []any{}
|
|
|
|
file_auth_proto_msgTypes[3].OneofWrappers = []any{}
|
2024-07-14 12:25:30 +00:00
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_auth_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
2024-07-30 10:31:26 +00:00
|
|
|
NumMessages: 11,
|
2024-07-14 12:25:30 +00:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_auth_proto_goTypes,
|
|
|
|
DependencyIndexes: file_auth_proto_depIdxs,
|
|
|
|
MessageInfos: file_auth_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_auth_proto = out.File
|
|
|
|
file_auth_proto_rawDesc = nil
|
|
|
|
file_auth_proto_goTypes = nil
|
|
|
|
file_auth_proto_depIdxs = nil
|
|
|
|
}
|