2446 lines
76 KiB
Go
2446 lines
76 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v4.25.9
|
||
// source: admin/admin-account.proto
|
||
|
||
package pb
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
unsafe "unsafe"
|
||
)
|
||
|
||
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 CreateUserRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||
Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateUserRequest) Reset() {
|
||
*x = CreateUserRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateUserRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateUserRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[0]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *CreateUserRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateUserRequest) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateUserRequest) GetRoles() []string {
|
||
if x != nil {
|
||
return x.Roles
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type CreateUserResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateUserResponse) Reset() {
|
||
*x = CreateUserResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateUserResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateUserResponse) ProtoMessage() {}
|
||
|
||
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[1]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*CreateUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *CreateUserResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *CreateUserResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type DeleteUserRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteUserRequest) Reset() {
|
||
*x = DeleteUserRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteUserRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteUserRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[2]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *DeleteUserRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type DeleteUserResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteUserResponse) Reset() {
|
||
*x = DeleteUserResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteUserResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteUserResponse) ProtoMessage() {}
|
||
|
||
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[3]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*DeleteUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *DeleteUserResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *DeleteUserResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type BlockUserRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Кого блокируем
|
||
AdminId string `protobuf:"bytes,2,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"` // Кто блокирует
|
||
Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *BlockUserRequest) Reset() {
|
||
*x = BlockUserRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *BlockUserRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*BlockUserRequest) ProtoMessage() {}
|
||
|
||
func (x *BlockUserRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[4]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use BlockUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*BlockUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *BlockUserRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *BlockUserRequest) GetAdminId() string {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *BlockUserRequest) GetReason() string {
|
||
if x != nil && x.Reason != nil {
|
||
return *x.Reason
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type BlockUserResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *BlockUserResponse) Reset() {
|
||
*x = BlockUserResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *BlockUserResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*BlockUserResponse) ProtoMessage() {}
|
||
|
||
func (x *BlockUserResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[5]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use BlockUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*BlockUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *BlockUserResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *BlockUserResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type UnblockUserRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
AdminId string `protobuf:"bytes,2,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UnblockUserRequest) Reset() {
|
||
*x = UnblockUserRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UnblockUserRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UnblockUserRequest) ProtoMessage() {}
|
||
|
||
func (x *UnblockUserRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[6]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UnblockUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*UnblockUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *UnblockUserRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UnblockUserRequest) GetAdminId() string {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type UnblockUserResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UnblockUserResponse) Reset() {
|
||
*x = UnblockUserResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UnblockUserResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UnblockUserResponse) ProtoMessage() {}
|
||
|
||
func (x *UnblockUserResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[7]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UnblockUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*UnblockUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *UnblockUserResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *UnblockUserResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type ChangeDataRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
||
Email *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"`
|
||
Phone *string `protobuf:"bytes,4,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
|
||
FullName *string `protobuf:"bytes,5,opt,name=full_name,json=fullName,proto3,oneof" json:"full_name,omitempty"`
|
||
AvatarUrl *string `protobuf:"bytes,6,opt,name=avatar_url,json=avatarUrl,proto3,oneof" json:"avatar_url,omitempty"`
|
||
CustomStatusText *string `protobuf:"bytes,7,opt,name=custom_status_text,json=customStatusText,proto3,oneof" json:"custom_status_text,omitempty"`
|
||
CustomStatusEmoji *string `protobuf:"bytes,8,opt,name=custom_status_emoji,json=customStatusEmoji,proto3,oneof" json:"custom_status_emoji,omitempty"`
|
||
Timezone *string `protobuf:"bytes,9,opt,name=timezone,proto3,oneof" json:"timezone,omitempty"`
|
||
Language *string `protobuf:"bytes,10,opt,name=language,proto3,oneof" json:"language,omitempty"`
|
||
IsPublic *bool `protobuf:"varint,11,opt,name=is_public,json=isPublic,proto3,oneof" json:"is_public,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ChangeDataRequest) Reset() {
|
||
*x = ChangeDataRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ChangeDataRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ChangeDataRequest) ProtoMessage() {}
|
||
|
||
func (x *ChangeDataRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[8]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ChangeDataRequest.ProtoReflect.Descriptor instead.
|
||
func (*ChangeDataRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetSessionId() string {
|
||
if x != nil {
|
||
return x.SessionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetEmail() string {
|
||
if x != nil && x.Email != nil {
|
||
return *x.Email
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetPhone() string {
|
||
if x != nil && x.Phone != nil {
|
||
return *x.Phone
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetFullName() string {
|
||
if x != nil && x.FullName != nil {
|
||
return *x.FullName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetAvatarUrl() string {
|
||
if x != nil && x.AvatarUrl != nil {
|
||
return *x.AvatarUrl
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetCustomStatusText() string {
|
||
if x != nil && x.CustomStatusText != nil {
|
||
return *x.CustomStatusText
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetCustomStatusEmoji() string {
|
||
if x != nil && x.CustomStatusEmoji != nil {
|
||
return *x.CustomStatusEmoji
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetTimezone() string {
|
||
if x != nil && x.Timezone != nil {
|
||
return *x.Timezone
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetLanguage() string {
|
||
if x != nil && x.Language != nil {
|
||
return *x.Language
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDataRequest) GetIsPublic() bool {
|
||
if x != nil && x.IsPublic != nil {
|
||
return *x.IsPublic
|
||
}
|
||
return false
|
||
}
|
||
|
||
type ChangeDataResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ChangeDataResponse) Reset() {
|
||
*x = ChangeDataResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ChangeDataResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ChangeDataResponse) ProtoMessage() {}
|
||
|
||
func (x *ChangeDataResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[9]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ChangeDataResponse.ProtoReflect.Descriptor instead.
|
||
func (*ChangeDataResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *ChangeDataResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *ChangeDataResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type AdminResetPasswordRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AdminResetPasswordRequest) Reset() {
|
||
*x = AdminResetPasswordRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AdminResetPasswordRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AdminResetPasswordRequest) ProtoMessage() {}
|
||
|
||
func (x *AdminResetPasswordRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[10]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use AdminResetPasswordRequest.ProtoReflect.Descriptor instead.
|
||
func (*AdminResetPasswordRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *AdminResetPasswordRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AdminResetPasswordRequest) GetNewPassword() string {
|
||
if x != nil {
|
||
return x.NewPassword
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type AdminResetPasswordResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AdminResetPasswordResponse) Reset() {
|
||
*x = AdminResetPasswordResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AdminResetPasswordResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AdminResetPasswordResponse) ProtoMessage() {}
|
||
|
||
func (x *AdminResetPasswordResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[11]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use AdminResetPasswordResponse.ProtoReflect.Descriptor instead.
|
||
func (*AdminResetPasswordResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
func (x *AdminResetPasswordResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *AdminResetPasswordResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type AssignRoleRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // Передаем как string, внутри парсим в Int
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AssignRoleRequest) Reset() {
|
||
*x = AssignRoleRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[12]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AssignRoleRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AssignRoleRequest) ProtoMessage() {}
|
||
|
||
func (x *AssignRoleRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[12]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use AssignRoleRequest.ProtoReflect.Descriptor instead.
|
||
func (*AssignRoleRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
func (x *AssignRoleRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AssignRoleRequest) GetRoleId() string {
|
||
if x != nil {
|
||
return x.RoleId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type AssignRoleResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AssignRoleResponse) Reset() {
|
||
*x = AssignRoleResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[13]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AssignRoleResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AssignRoleResponse) ProtoMessage() {}
|
||
|
||
func (x *AssignRoleResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[13]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use AssignRoleResponse.ProtoReflect.Descriptor instead.
|
||
func (*AssignRoleResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
func (x *AssignRoleResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *AssignRoleResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type RevokeRoleRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RevokeRoleRequest) Reset() {
|
||
*x = RevokeRoleRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[14]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RevokeRoleRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RevokeRoleRequest) ProtoMessage() {}
|
||
|
||
func (x *RevokeRoleRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[14]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use RevokeRoleRequest.ProtoReflect.Descriptor instead.
|
||
func (*RevokeRoleRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
func (x *RevokeRoleRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RevokeRoleRequest) GetRoleId() string {
|
||
if x != nil {
|
||
return x.RoleId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type RevokeRoleResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RevokeRoleResponse) Reset() {
|
||
*x = RevokeRoleResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[15]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RevokeRoleResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RevokeRoleResponse) ProtoMessage() {}
|
||
|
||
func (x *RevokeRoleResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[15]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use RevokeRoleResponse.ProtoReflect.Descriptor instead.
|
||
func (*RevokeRoleResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
func (x *RevokeRoleResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *RevokeRoleResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type BlockIpRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
|
||
AdminId string `protobuf:"bytes,2,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
|
||
Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *BlockIpRequest) Reset() {
|
||
*x = BlockIpRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[16]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *BlockIpRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*BlockIpRequest) ProtoMessage() {}
|
||
|
||
func (x *BlockIpRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[16]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use BlockIpRequest.ProtoReflect.Descriptor instead.
|
||
func (*BlockIpRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{16}
|
||
}
|
||
|
||
func (x *BlockIpRequest) GetIpAddress() string {
|
||
if x != nil {
|
||
return x.IpAddress
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *BlockIpRequest) GetAdminId() string {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *BlockIpRequest) GetReason() string {
|
||
if x != nil && x.Reason != nil {
|
||
return *x.Reason
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type BlockIpResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *BlockIpResponse) Reset() {
|
||
*x = BlockIpResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[17]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *BlockIpResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*BlockIpResponse) ProtoMessage() {}
|
||
|
||
func (x *BlockIpResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[17]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use BlockIpResponse.ProtoReflect.Descriptor instead.
|
||
func (*BlockIpResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{17}
|
||
}
|
||
|
||
func (x *BlockIpResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *BlockIpResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type UnblockIpRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
|
||
AdminId string `protobuf:"bytes,2,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UnblockIpRequest) Reset() {
|
||
*x = UnblockIpRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[18]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UnblockIpRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UnblockIpRequest) ProtoMessage() {}
|
||
|
||
func (x *UnblockIpRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[18]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UnblockIpRequest.ProtoReflect.Descriptor instead.
|
||
func (*UnblockIpRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{18}
|
||
}
|
||
|
||
func (x *UnblockIpRequest) GetIpAddress() string {
|
||
if x != nil {
|
||
return x.IpAddress
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UnblockIpRequest) GetAdminId() string {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type UnblockIpResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UnblockIpResponse) Reset() {
|
||
*x = UnblockIpResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[19]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UnblockIpResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UnblockIpResponse) ProtoMessage() {}
|
||
|
||
func (x *UnblockIpResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[19]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UnblockIpResponse.ProtoReflect.Descriptor instead.
|
||
func (*UnblockIpResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{19}
|
||
}
|
||
|
||
func (x *UnblockIpResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *UnblockIpResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type SyncUsersToSearchRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SyncUsersToSearchRequest) Reset() {
|
||
*x = SyncUsersToSearchRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[20]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SyncUsersToSearchRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SyncUsersToSearchRequest) ProtoMessage() {}
|
||
|
||
func (x *SyncUsersToSearchRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[20]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SyncUsersToSearchRequest.ProtoReflect.Descriptor instead.
|
||
func (*SyncUsersToSearchRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{20}
|
||
}
|
||
|
||
type SyncUsersToSearchResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SyncUsersToSearchResponse) Reset() {
|
||
*x = SyncUsersToSearchResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[21]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SyncUsersToSearchResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SyncUsersToSearchResponse) ProtoMessage() {}
|
||
|
||
func (x *SyncUsersToSearchResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[21]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SyncUsersToSearchResponse.ProtoReflect.Descriptor instead.
|
||
func (*SyncUsersToSearchResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{21}
|
||
}
|
||
|
||
func (x *SyncUsersToSearchResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *SyncUsersToSearchResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type GetAllPermissionsAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetAllPermissionsAdminRequest) Reset() {
|
||
*x = GetAllPermissionsAdminRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[22]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetAllPermissionsAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetAllPermissionsAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *GetAllPermissionsAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[22]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetAllPermissionsAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetAllPermissionsAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{22}
|
||
}
|
||
|
||
func (x *GetAllPermissionsAdminRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetAllPermissionsAdminRequest) GetSessionId() string {
|
||
if x != nil {
|
||
return x.SessionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type PermissionAdmin struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
|
||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||
Module string `protobuf:"bytes,4,opt,name=module,proto3" json:"module,omitempty"`
|
||
Roles []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *PermissionAdmin) Reset() {
|
||
*x = PermissionAdmin{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[23]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *PermissionAdmin) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*PermissionAdmin) ProtoMessage() {}
|
||
|
||
func (x *PermissionAdmin) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[23]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use PermissionAdmin.ProtoReflect.Descriptor instead.
|
||
func (*PermissionAdmin) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{23}
|
||
}
|
||
|
||
func (x *PermissionAdmin) GetId() string {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *PermissionAdmin) GetCode() string {
|
||
if x != nil {
|
||
return x.Code
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *PermissionAdmin) GetDescription() string {
|
||
if x != nil {
|
||
return x.Description
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *PermissionAdmin) GetModule() string {
|
||
if x != nil {
|
||
return x.Module
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *PermissionAdmin) GetRoles() []string {
|
||
if x != nil {
|
||
return x.Roles
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type GetAllPermissionsAdminResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Permissions []*PermissionAdmin `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetAllPermissionsAdminResponse) Reset() {
|
||
*x = GetAllPermissionsAdminResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[24]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetAllPermissionsAdminResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetAllPermissionsAdminResponse) ProtoMessage() {}
|
||
|
||
func (x *GetAllPermissionsAdminResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[24]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetAllPermissionsAdminResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetAllPermissionsAdminResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{24}
|
||
}
|
||
|
||
func (x *GetAllPermissionsAdminResponse) GetPermissions() []*PermissionAdmin {
|
||
if x != nil {
|
||
return x.Permissions
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type GetAllRolesAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetAllRolesAdminRequest) Reset() {
|
||
*x = GetAllRolesAdminRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[25]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetAllRolesAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetAllRolesAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *GetAllRolesAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[25]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetAllRolesAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetAllRolesAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{25}
|
||
}
|
||
|
||
func (x *GetAllRolesAdminRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetAllRolesAdminRequest) GetSessionId() string {
|
||
if x != nil {
|
||
return x.SessionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type RolesAdmin struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||
Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
|
||
Permissions []string `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"`
|
||
LdapMapping []string `protobuf:"bytes,5,rep,name=ldap_mapping,json=ldapMapping,proto3" json:"ldap_mapping,omitempty"`
|
||
Accounts []string `protobuf:"bytes,6,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RolesAdmin) Reset() {
|
||
*x = RolesAdmin{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[26]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RolesAdmin) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RolesAdmin) ProtoMessage() {}
|
||
|
||
func (x *RolesAdmin) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[26]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use RolesAdmin.ProtoReflect.Descriptor instead.
|
||
func (*RolesAdmin) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{26}
|
||
}
|
||
|
||
func (x *RolesAdmin) GetId() string {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RolesAdmin) GetName() string {
|
||
if x != nil {
|
||
return x.Name
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RolesAdmin) GetLevel() int32 {
|
||
if x != nil {
|
||
return x.Level
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RolesAdmin) GetPermissions() []string {
|
||
if x != nil {
|
||
return x.Permissions
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RolesAdmin) GetLdapMapping() []string {
|
||
if x != nil {
|
||
return x.LdapMapping
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RolesAdmin) GetAccounts() []string {
|
||
if x != nil {
|
||
return x.Accounts
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type GetAllRolesAdminResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Roles []*RolesAdmin `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetAllRolesAdminResponse) Reset() {
|
||
*x = GetAllRolesAdminResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[27]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetAllRolesAdminResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetAllRolesAdminResponse) ProtoMessage() {}
|
||
|
||
func (x *GetAllRolesAdminResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[27]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetAllRolesAdminResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetAllRolesAdminResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{27}
|
||
}
|
||
|
||
func (x *GetAllRolesAdminResponse) GetRoles() []*RolesAdmin {
|
||
if x != nil {
|
||
return x.Roles
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type CreateRoleAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||
Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
|
||
PermissionCodes []string `protobuf:"bytes,3,rep,name=permission_codes,json=permissionCodes,proto3" json:"permission_codes,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateRoleAdminRequest) Reset() {
|
||
*x = CreateRoleAdminRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[28]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateRoleAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateRoleAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateRoleAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[28]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CreateRoleAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateRoleAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{28}
|
||
}
|
||
|
||
func (x *CreateRoleAdminRequest) GetName() string {
|
||
if x != nil {
|
||
return x.Name
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateRoleAdminRequest) GetLevel() int32 {
|
||
if x != nil {
|
||
return x.Level
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CreateRoleAdminRequest) GetPermissionCodes() []string {
|
||
if x != nil {
|
||
return x.PermissionCodes
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type UpdateRoleAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
|
||
Level *int32 `protobuf:"varint,3,opt,name=level,proto3,oneof" json:"level,omitempty"`
|
||
PermissionCodes []string `protobuf:"bytes,4,rep,name=permission_codes,json=permissionCodes,proto3" json:"permission_codes,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateRoleAdminRequest) Reset() {
|
||
*x = UpdateRoleAdminRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[29]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateRoleAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateRoleAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateRoleAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[29]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UpdateRoleAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateRoleAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{29}
|
||
}
|
||
|
||
func (x *UpdateRoleAdminRequest) GetId() string {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateRoleAdminRequest) GetName() string {
|
||
if x != nil && x.Name != nil {
|
||
return *x.Name
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateRoleAdminRequest) GetLevel() int32 {
|
||
if x != nil && x.Level != nil {
|
||
return *x.Level
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateRoleAdminRequest) GetPermissionCodes() []string {
|
||
if x != nil {
|
||
return x.PermissionCodes
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type ModifyRoleAdminResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ModifyRoleAdminResponse) Reset() {
|
||
*x = ModifyRoleAdminResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[30]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ModifyRoleAdminResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ModifyRoleAdminResponse) ProtoMessage() {}
|
||
|
||
func (x *ModifyRoleAdminResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[30]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ModifyRoleAdminResponse.ProtoReflect.Descriptor instead.
|
||
func (*ModifyRoleAdminResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{30}
|
||
}
|
||
|
||
func (x *ModifyRoleAdminResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *ModifyRoleAdminResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type DeleteRoleAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteRoleAdminRequest) Reset() {
|
||
*x = DeleteRoleAdminRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[31]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteRoleAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteRoleAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteRoleAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[31]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DeleteRoleAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteRoleAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{31}
|
||
}
|
||
|
||
func (x *DeleteRoleAdminRequest) GetId() string {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type DeleteRoleAdminResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
FallbackRoleName *string `protobuf:"bytes,3,opt,name=fallback_role_name,json=fallbackRoleName,proto3,oneof" json:"fallback_role_name,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteRoleAdminResponse) Reset() {
|
||
*x = DeleteRoleAdminResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[32]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteRoleAdminResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteRoleAdminResponse) ProtoMessage() {}
|
||
|
||
func (x *DeleteRoleAdminResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[32]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DeleteRoleAdminResponse.ProtoReflect.Descriptor instead.
|
||
func (*DeleteRoleAdminResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{32}
|
||
}
|
||
|
||
func (x *DeleteRoleAdminResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *DeleteRoleAdminResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *DeleteRoleAdminResponse) GetFallbackRoleName() string {
|
||
if x != nil && x.FallbackRoleName != nil {
|
||
return *x.FallbackRoleName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type CreatePermissionAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||
Module string `protobuf:"bytes,3,opt,name=module,proto3" json:"module,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreatePermissionAdminRequest) Reset() {
|
||
*x = CreatePermissionAdminRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[33]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreatePermissionAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreatePermissionAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *CreatePermissionAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[33]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CreatePermissionAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreatePermissionAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{33}
|
||
}
|
||
|
||
func (x *CreatePermissionAdminRequest) GetCode() string {
|
||
if x != nil {
|
||
return x.Code
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreatePermissionAdminRequest) GetDescription() string {
|
||
if x != nil {
|
||
return x.Description
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreatePermissionAdminRequest) GetModule() string {
|
||
if x != nil {
|
||
return x.Module
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type UpdatePermissionAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
RoleIds []string `protobuf:"bytes,2,rep,name=role_ids,json=roleIds,proto3" json:"role_ids,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdatePermissionAdminRequest) Reset() {
|
||
*x = UpdatePermissionAdminRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[34]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdatePermissionAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdatePermissionAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdatePermissionAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[34]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UpdatePermissionAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdatePermissionAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{34}
|
||
}
|
||
|
||
func (x *UpdatePermissionAdminRequest) GetId() string {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdatePermissionAdminRequest) GetRoleIds() []string {
|
||
if x != nil {
|
||
return x.RoleIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type ModifyPermissionAdminResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ModifyPermissionAdminResponse) Reset() {
|
||
*x = ModifyPermissionAdminResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[35]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ModifyPermissionAdminResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ModifyPermissionAdminResponse) ProtoMessage() {}
|
||
|
||
func (x *ModifyPermissionAdminResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[35]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ModifyPermissionAdminResponse.ProtoReflect.Descriptor instead.
|
||
func (*ModifyPermissionAdminResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{35}
|
||
}
|
||
|
||
func (x *ModifyPermissionAdminResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *ModifyPermissionAdminResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type GrafanaAlertRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Payload string `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GrafanaAlertRequest) Reset() {
|
||
*x = GrafanaAlertRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[36]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GrafanaAlertRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GrafanaAlertRequest) ProtoMessage() {}
|
||
|
||
func (x *GrafanaAlertRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[36]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GrafanaAlertRequest.ProtoReflect.Descriptor instead.
|
||
func (*GrafanaAlertRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{36}
|
||
}
|
||
|
||
func (x *GrafanaAlertRequest) GetPayload() string {
|
||
if x != nil {
|
||
return x.Payload
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// Успешно ли обработан алерт
|
||
type GrafanaAlertResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GrafanaAlertResponse) Reset() {
|
||
*x = GrafanaAlertResponse{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[37]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GrafanaAlertResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GrafanaAlertResponse) ProtoMessage() {}
|
||
|
||
func (x *GrafanaAlertResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_admin_admin_account_proto_msgTypes[37]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GrafanaAlertResponse.ProtoReflect.Descriptor instead.
|
||
func (*GrafanaAlertResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{37}
|
||
}
|
||
|
||
func (x *GrafanaAlertResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
var File_admin_admin_account_proto protoreflect.FileDescriptor
|
||
|
||
const file_admin_admin_account_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x19admin/admin-account.proto\x12\badmin.v1\"a\n" +
|
||
"\x11CreateUserRequest\x12\x1a\n" +
|
||
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
||
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x14\n" +
|
||
"\x05roles\x18\x03 \x03(\tR\x05roles\"H\n" +
|
||
"\x12CreateUserResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\",\n" +
|
||
"\x11DeleteUserRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\"H\n" +
|
||
"\x12DeleteUserResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"n\n" +
|
||
"\x10BlockUserRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x19\n" +
|
||
"\badmin_id\x18\x02 \x01(\tR\aadminId\x12\x1b\n" +
|
||
"\x06reason\x18\x03 \x01(\tH\x00R\x06reason\x88\x01\x01B\t\n" +
|
||
"\a_reason\"G\n" +
|
||
"\x11BlockUserResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"H\n" +
|
||
"\x12UnblockUserRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x19\n" +
|
||
"\badmin_id\x18\x02 \x01(\tR\aadminId\"I\n" +
|
||
"\x13UnblockUserResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"\x9b\x04\n" +
|
||
"\x11ChangeDataRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
||
"\n" +
|
||
"session_id\x18\x02 \x01(\tR\tsessionId\x12\x19\n" +
|
||
"\x05email\x18\x03 \x01(\tH\x00R\x05email\x88\x01\x01\x12\x19\n" +
|
||
"\x05phone\x18\x04 \x01(\tH\x01R\x05phone\x88\x01\x01\x12 \n" +
|
||
"\tfull_name\x18\x05 \x01(\tH\x02R\bfullName\x88\x01\x01\x12\"\n" +
|
||
"\n" +
|
||
"avatar_url\x18\x06 \x01(\tH\x03R\tavatarUrl\x88\x01\x01\x121\n" +
|
||
"\x12custom_status_text\x18\a \x01(\tH\x04R\x10customStatusText\x88\x01\x01\x123\n" +
|
||
"\x13custom_status_emoji\x18\b \x01(\tH\x05R\x11customStatusEmoji\x88\x01\x01\x12\x1f\n" +
|
||
"\btimezone\x18\t \x01(\tH\x06R\btimezone\x88\x01\x01\x12\x1f\n" +
|
||
"\blanguage\x18\n" +
|
||
" \x01(\tH\aR\blanguage\x88\x01\x01\x12 \n" +
|
||
"\tis_public\x18\v \x01(\bH\bR\bisPublic\x88\x01\x01B\b\n" +
|
||
"\x06_emailB\b\n" +
|
||
"\x06_phoneB\f\n" +
|
||
"\n" +
|
||
"_full_nameB\r\n" +
|
||
"\v_avatar_urlB\x15\n" +
|
||
"\x13_custom_status_textB\x16\n" +
|
||
"\x14_custom_status_emojiB\v\n" +
|
||
"\t_timezoneB\v\n" +
|
||
"\t_languageB\f\n" +
|
||
"\n" +
|
||
"_is_public\"H\n" +
|
||
"\x12ChangeDataResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"W\n" +
|
||
"\x19AdminResetPasswordRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12!\n" +
|
||
"\fnew_password\x18\x02 \x01(\tR\vnewPassword\"P\n" +
|
||
"\x1aAdminResetPasswordResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"E\n" +
|
||
"\x11AssignRoleRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x17\n" +
|
||
"\arole_id\x18\x02 \x01(\tR\x06roleId\"H\n" +
|
||
"\x12AssignRoleResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"E\n" +
|
||
"\x11RevokeRoleRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x17\n" +
|
||
"\arole_id\x18\x02 \x01(\tR\x06roleId\"H\n" +
|
||
"\x12RevokeRoleResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"r\n" +
|
||
"\x0eBlockIpRequest\x12\x1d\n" +
|
||
"\n" +
|
||
"ip_address\x18\x01 \x01(\tR\tipAddress\x12\x19\n" +
|
||
"\badmin_id\x18\x02 \x01(\tR\aadminId\x12\x1b\n" +
|
||
"\x06reason\x18\x03 \x01(\tH\x00R\x06reason\x88\x01\x01B\t\n" +
|
||
"\a_reason\"E\n" +
|
||
"\x0fBlockIpResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"L\n" +
|
||
"\x10UnblockIpRequest\x12\x1d\n" +
|
||
"\n" +
|
||
"ip_address\x18\x01 \x01(\tR\tipAddress\x12\x19\n" +
|
||
"\badmin_id\x18\x02 \x01(\tR\aadminId\"G\n" +
|
||
"\x11UnblockIpResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"\x1a\n" +
|
||
"\x18SyncUsersToSearchRequest\"O\n" +
|
||
"\x19SyncUsersToSearchResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"W\n" +
|
||
"\x1dGetAllPermissionsAdminRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
||
"\n" +
|
||
"session_id\x18\x02 \x01(\tR\tsessionId\"\x85\x01\n" +
|
||
"\x0fPermissionAdmin\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
||
"\x04code\x18\x02 \x01(\tR\x04code\x12 \n" +
|
||
"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x16\n" +
|
||
"\x06module\x18\x04 \x01(\tR\x06module\x12\x14\n" +
|
||
"\x05roles\x18\x05 \x03(\tR\x05roles\"]\n" +
|
||
"\x1eGetAllPermissionsAdminResponse\x12;\n" +
|
||
"\vpermissions\x18\x01 \x03(\v2\x19.admin.v1.PermissionAdminR\vpermissions\"Q\n" +
|
||
"\x17GetAllRolesAdminRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
||
"\n" +
|
||
"session_id\x18\x02 \x01(\tR\tsessionId\"\xa7\x01\n" +
|
||
"\n" +
|
||
"RolesAdmin\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
||
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" +
|
||
"\x05level\x18\x03 \x01(\x05R\x05level\x12 \n" +
|
||
"\vpermissions\x18\x04 \x03(\tR\vpermissions\x12!\n" +
|
||
"\fldap_mapping\x18\x05 \x03(\tR\vldapMapping\x12\x1a\n" +
|
||
"\baccounts\x18\x06 \x03(\tR\baccounts\"F\n" +
|
||
"\x18GetAllRolesAdminResponse\x12*\n" +
|
||
"\x05roles\x18\x01 \x03(\v2\x14.admin.v1.RolesAdminR\x05roles\"m\n" +
|
||
"\x16CreateRoleAdminRequest\x12\x12\n" +
|
||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
|
||
"\x05level\x18\x02 \x01(\x05R\x05level\x12)\n" +
|
||
"\x10permission_codes\x18\x03 \x03(\tR\x0fpermissionCodes\"\x9a\x01\n" +
|
||
"\x16UpdateRoleAdminRequest\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
|
||
"\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x12\x19\n" +
|
||
"\x05level\x18\x03 \x01(\x05H\x01R\x05level\x88\x01\x01\x12)\n" +
|
||
"\x10permission_codes\x18\x04 \x03(\tR\x0fpermissionCodesB\a\n" +
|
||
"\x05_nameB\b\n" +
|
||
"\x06_level\"M\n" +
|
||
"\x17ModifyRoleAdminResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"(\n" +
|
||
"\x16DeleteRoleAdminRequest\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\tR\x02id\"\x97\x01\n" +
|
||
"\x17DeleteRoleAdminResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\x121\n" +
|
||
"\x12fallback_role_name\x18\x03 \x01(\tH\x00R\x10fallbackRoleName\x88\x01\x01B\x15\n" +
|
||
"\x13_fallback_role_name\"l\n" +
|
||
"\x1cCreatePermissionAdminRequest\x12\x12\n" +
|
||
"\x04code\x18\x01 \x01(\tR\x04code\x12 \n" +
|
||
"\vdescription\x18\x02 \x01(\tR\vdescription\x12\x16\n" +
|
||
"\x06module\x18\x03 \x01(\tR\x06module\"I\n" +
|
||
"\x1cUpdatePermissionAdminRequest\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n" +
|
||
"\brole_ids\x18\x02 \x03(\tR\aroleIds\"S\n" +
|
||
"\x1dModifyPermissionAdminResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"/\n" +
|
||
"\x13GrafanaAlertRequest\x12\x18\n" +
|
||
"\apayload\x18\x01 \x01(\tR\apayload\"0\n" +
|
||
"\x14GrafanaAlertResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess2\xa8\f\n" +
|
||
"\fAdminService\x12G\n" +
|
||
"\n" +
|
||
"CreateUser\x12\x1b.admin.v1.CreateUserRequest\x1a\x1c.admin.v1.CreateUserResponse\x12G\n" +
|
||
"\n" +
|
||
"DeleteUser\x12\x1b.admin.v1.DeleteUserRequest\x1a\x1c.admin.v1.DeleteUserResponse\x12D\n" +
|
||
"\tBlockUser\x12\x1a.admin.v1.BlockUserRequest\x1a\x1b.admin.v1.BlockUserResponse\x12J\n" +
|
||
"\vUnblockUser\x12\x1c.admin.v1.UnblockUserRequest\x1a\x1d.admin.v1.UnblockUserResponse\x12G\n" +
|
||
"\n" +
|
||
"ChangeData\x12\x1b.admin.v1.ChangeDataRequest\x1a\x1c.admin.v1.ChangeDataResponse\x12_\n" +
|
||
"\x12AdminResetPassword\x12#.admin.v1.AdminResetPasswordRequest\x1a$.admin.v1.AdminResetPasswordResponse\x12G\n" +
|
||
"\n" +
|
||
"AssignRole\x12\x1b.admin.v1.AssignRoleRequest\x1a\x1c.admin.v1.AssignRoleResponse\x12G\n" +
|
||
"\n" +
|
||
"RevokeRole\x12\x1b.admin.v1.RevokeRoleRequest\x1a\x1c.admin.v1.RevokeRoleResponse\x12>\n" +
|
||
"\aBlockIp\x12\x18.admin.v1.BlockIpRequest\x1a\x19.admin.v1.BlockIpResponse\x12D\n" +
|
||
"\tUnblockIp\x12\x1a.admin.v1.UnblockIpRequest\x1a\x1b.admin.v1.UnblockIpResponse\x12\\\n" +
|
||
"\x11SyncUsersToSearch\x12\".admin.v1.SyncUsersToSearchRequest\x1a#.admin.v1.SyncUsersToSearchResponse\x12S\n" +
|
||
"\x12HandleGrafanaAlert\x12\x1d.admin.v1.GrafanaAlertRequest\x1a\x1e.admin.v1.GrafanaAlertResponse\x12f\n" +
|
||
"\x11GetAllPermissions\x12'.admin.v1.GetAllPermissionsAdminRequest\x1a(.admin.v1.GetAllPermissionsAdminResponse\x12T\n" +
|
||
"\vGetAllRoles\x12!.admin.v1.GetAllRolesAdminRequest\x1a\".admin.v1.GetAllRolesAdminResponse\x12Q\n" +
|
||
"\n" +
|
||
"CreateRole\x12 .admin.v1.CreateRoleAdminRequest\x1a!.admin.v1.ModifyRoleAdminResponse\x12Q\n" +
|
||
"\n" +
|
||
"UpdateRole\x12 .admin.v1.UpdateRoleAdminRequest\x1a!.admin.v1.ModifyRoleAdminResponse\x12Q\n" +
|
||
"\n" +
|
||
"DeleteRole\x12 .admin.v1.DeleteRoleAdminRequest\x1a!.admin.v1.DeleteRoleAdminResponse\x12c\n" +
|
||
"\x10CreatePermission\x12&.admin.v1.CreatePermissionAdminRequest\x1a'.admin.v1.ModifyPermissionAdminResponse\x12c\n" +
|
||
"\x10UpdatePermission\x12&.admin.v1.UpdatePermissionAdminRequest\x1a'.admin.v1.ModifyPermissionAdminResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
|
||
|
||
var (
|
||
file_admin_admin_account_proto_rawDescOnce sync.Once
|
||
file_admin_admin_account_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_admin_admin_account_proto_rawDescGZIP() []byte {
|
||
file_admin_admin_account_proto_rawDescOnce.Do(func() {
|
||
file_admin_admin_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_admin_admin_account_proto_rawDesc), len(file_admin_admin_account_proto_rawDesc)))
|
||
})
|
||
return file_admin_admin_account_proto_rawDescData
|
||
}
|
||
|
||
var file_admin_admin_account_proto_msgTypes = make([]protoimpl.MessageInfo, 38)
|
||
var file_admin_admin_account_proto_goTypes = []any{
|
||
(*CreateUserRequest)(nil), // 0: admin.v1.CreateUserRequest
|
||
(*CreateUserResponse)(nil), // 1: admin.v1.CreateUserResponse
|
||
(*DeleteUserRequest)(nil), // 2: admin.v1.DeleteUserRequest
|
||
(*DeleteUserResponse)(nil), // 3: admin.v1.DeleteUserResponse
|
||
(*BlockUserRequest)(nil), // 4: admin.v1.BlockUserRequest
|
||
(*BlockUserResponse)(nil), // 5: admin.v1.BlockUserResponse
|
||
(*UnblockUserRequest)(nil), // 6: admin.v1.UnblockUserRequest
|
||
(*UnblockUserResponse)(nil), // 7: admin.v1.UnblockUserResponse
|
||
(*ChangeDataRequest)(nil), // 8: admin.v1.ChangeDataRequest
|
||
(*ChangeDataResponse)(nil), // 9: admin.v1.ChangeDataResponse
|
||
(*AdminResetPasswordRequest)(nil), // 10: admin.v1.AdminResetPasswordRequest
|
||
(*AdminResetPasswordResponse)(nil), // 11: admin.v1.AdminResetPasswordResponse
|
||
(*AssignRoleRequest)(nil), // 12: admin.v1.AssignRoleRequest
|
||
(*AssignRoleResponse)(nil), // 13: admin.v1.AssignRoleResponse
|
||
(*RevokeRoleRequest)(nil), // 14: admin.v1.RevokeRoleRequest
|
||
(*RevokeRoleResponse)(nil), // 15: admin.v1.RevokeRoleResponse
|
||
(*BlockIpRequest)(nil), // 16: admin.v1.BlockIpRequest
|
||
(*BlockIpResponse)(nil), // 17: admin.v1.BlockIpResponse
|
||
(*UnblockIpRequest)(nil), // 18: admin.v1.UnblockIpRequest
|
||
(*UnblockIpResponse)(nil), // 19: admin.v1.UnblockIpResponse
|
||
(*SyncUsersToSearchRequest)(nil), // 20: admin.v1.SyncUsersToSearchRequest
|
||
(*SyncUsersToSearchResponse)(nil), // 21: admin.v1.SyncUsersToSearchResponse
|
||
(*GetAllPermissionsAdminRequest)(nil), // 22: admin.v1.GetAllPermissionsAdminRequest
|
||
(*PermissionAdmin)(nil), // 23: admin.v1.PermissionAdmin
|
||
(*GetAllPermissionsAdminResponse)(nil), // 24: admin.v1.GetAllPermissionsAdminResponse
|
||
(*GetAllRolesAdminRequest)(nil), // 25: admin.v1.GetAllRolesAdminRequest
|
||
(*RolesAdmin)(nil), // 26: admin.v1.RolesAdmin
|
||
(*GetAllRolesAdminResponse)(nil), // 27: admin.v1.GetAllRolesAdminResponse
|
||
(*CreateRoleAdminRequest)(nil), // 28: admin.v1.CreateRoleAdminRequest
|
||
(*UpdateRoleAdminRequest)(nil), // 29: admin.v1.UpdateRoleAdminRequest
|
||
(*ModifyRoleAdminResponse)(nil), // 30: admin.v1.ModifyRoleAdminResponse
|
||
(*DeleteRoleAdminRequest)(nil), // 31: admin.v1.DeleteRoleAdminRequest
|
||
(*DeleteRoleAdminResponse)(nil), // 32: admin.v1.DeleteRoleAdminResponse
|
||
(*CreatePermissionAdminRequest)(nil), // 33: admin.v1.CreatePermissionAdminRequest
|
||
(*UpdatePermissionAdminRequest)(nil), // 34: admin.v1.UpdatePermissionAdminRequest
|
||
(*ModifyPermissionAdminResponse)(nil), // 35: admin.v1.ModifyPermissionAdminResponse
|
||
(*GrafanaAlertRequest)(nil), // 36: admin.v1.GrafanaAlertRequest
|
||
(*GrafanaAlertResponse)(nil), // 37: admin.v1.GrafanaAlertResponse
|
||
}
|
||
var file_admin_admin_account_proto_depIdxs = []int32{
|
||
23, // 0: admin.v1.GetAllPermissionsAdminResponse.permissions:type_name -> admin.v1.PermissionAdmin
|
||
26, // 1: admin.v1.GetAllRolesAdminResponse.roles:type_name -> admin.v1.RolesAdmin
|
||
0, // 2: admin.v1.AdminService.CreateUser:input_type -> admin.v1.CreateUserRequest
|
||
2, // 3: admin.v1.AdminService.DeleteUser:input_type -> admin.v1.DeleteUserRequest
|
||
4, // 4: admin.v1.AdminService.BlockUser:input_type -> admin.v1.BlockUserRequest
|
||
6, // 5: admin.v1.AdminService.UnblockUser:input_type -> admin.v1.UnblockUserRequest
|
||
8, // 6: admin.v1.AdminService.ChangeData:input_type -> admin.v1.ChangeDataRequest
|
||
10, // 7: admin.v1.AdminService.AdminResetPassword:input_type -> admin.v1.AdminResetPasswordRequest
|
||
12, // 8: admin.v1.AdminService.AssignRole:input_type -> admin.v1.AssignRoleRequest
|
||
14, // 9: admin.v1.AdminService.RevokeRole:input_type -> admin.v1.RevokeRoleRequest
|
||
16, // 10: admin.v1.AdminService.BlockIp:input_type -> admin.v1.BlockIpRequest
|
||
18, // 11: admin.v1.AdminService.UnblockIp:input_type -> admin.v1.UnblockIpRequest
|
||
20, // 12: admin.v1.AdminService.SyncUsersToSearch:input_type -> admin.v1.SyncUsersToSearchRequest
|
||
36, // 13: admin.v1.AdminService.HandleGrafanaAlert:input_type -> admin.v1.GrafanaAlertRequest
|
||
22, // 14: admin.v1.AdminService.GetAllPermissions:input_type -> admin.v1.GetAllPermissionsAdminRequest
|
||
25, // 15: admin.v1.AdminService.GetAllRoles:input_type -> admin.v1.GetAllRolesAdminRequest
|
||
28, // 16: admin.v1.AdminService.CreateRole:input_type -> admin.v1.CreateRoleAdminRequest
|
||
29, // 17: admin.v1.AdminService.UpdateRole:input_type -> admin.v1.UpdateRoleAdminRequest
|
||
31, // 18: admin.v1.AdminService.DeleteRole:input_type -> admin.v1.DeleteRoleAdminRequest
|
||
33, // 19: admin.v1.AdminService.CreatePermission:input_type -> admin.v1.CreatePermissionAdminRequest
|
||
34, // 20: admin.v1.AdminService.UpdatePermission:input_type -> admin.v1.UpdatePermissionAdminRequest
|
||
1, // 21: admin.v1.AdminService.CreateUser:output_type -> admin.v1.CreateUserResponse
|
||
3, // 22: admin.v1.AdminService.DeleteUser:output_type -> admin.v1.DeleteUserResponse
|
||
5, // 23: admin.v1.AdminService.BlockUser:output_type -> admin.v1.BlockUserResponse
|
||
7, // 24: admin.v1.AdminService.UnblockUser:output_type -> admin.v1.UnblockUserResponse
|
||
9, // 25: admin.v1.AdminService.ChangeData:output_type -> admin.v1.ChangeDataResponse
|
||
11, // 26: admin.v1.AdminService.AdminResetPassword:output_type -> admin.v1.AdminResetPasswordResponse
|
||
13, // 27: admin.v1.AdminService.AssignRole:output_type -> admin.v1.AssignRoleResponse
|
||
15, // 28: admin.v1.AdminService.RevokeRole:output_type -> admin.v1.RevokeRoleResponse
|
||
17, // 29: admin.v1.AdminService.BlockIp:output_type -> admin.v1.BlockIpResponse
|
||
19, // 30: admin.v1.AdminService.UnblockIp:output_type -> admin.v1.UnblockIpResponse
|
||
21, // 31: admin.v1.AdminService.SyncUsersToSearch:output_type -> admin.v1.SyncUsersToSearchResponse
|
||
37, // 32: admin.v1.AdminService.HandleGrafanaAlert:output_type -> admin.v1.GrafanaAlertResponse
|
||
24, // 33: admin.v1.AdminService.GetAllPermissions:output_type -> admin.v1.GetAllPermissionsAdminResponse
|
||
27, // 34: admin.v1.AdminService.GetAllRoles:output_type -> admin.v1.GetAllRolesAdminResponse
|
||
30, // 35: admin.v1.AdminService.CreateRole:output_type -> admin.v1.ModifyRoleAdminResponse
|
||
30, // 36: admin.v1.AdminService.UpdateRole:output_type -> admin.v1.ModifyRoleAdminResponse
|
||
32, // 37: admin.v1.AdminService.DeleteRole:output_type -> admin.v1.DeleteRoleAdminResponse
|
||
35, // 38: admin.v1.AdminService.CreatePermission:output_type -> admin.v1.ModifyPermissionAdminResponse
|
||
35, // 39: admin.v1.AdminService.UpdatePermission:output_type -> admin.v1.ModifyPermissionAdminResponse
|
||
21, // [21:40] is the sub-list for method output_type
|
||
2, // [2:21] is the sub-list for method input_type
|
||
2, // [2:2] is the sub-list for extension type_name
|
||
2, // [2:2] is the sub-list for extension extendee
|
||
0, // [0:2] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_admin_admin_account_proto_init() }
|
||
func file_admin_admin_account_proto_init() {
|
||
if File_admin_admin_account_proto != nil {
|
||
return
|
||
}
|
||
file_admin_admin_account_proto_msgTypes[4].OneofWrappers = []any{}
|
||
file_admin_admin_account_proto_msgTypes[8].OneofWrappers = []any{}
|
||
file_admin_admin_account_proto_msgTypes[16].OneofWrappers = []any{}
|
||
file_admin_admin_account_proto_msgTypes[29].OneofWrappers = []any{}
|
||
file_admin_admin_account_proto_msgTypes[32].OneofWrappers = []any{}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_admin_admin_account_proto_rawDesc), len(file_admin_admin_account_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 38,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_admin_admin_account_proto_goTypes,
|
||
DependencyIndexes: file_admin_admin_account_proto_depIdxs,
|
||
MessageInfos: file_admin_admin_account_proto_msgTypes,
|
||
}.Build()
|
||
File_admin_admin_account_proto = out.File
|
||
file_admin_admin_account_proto_goTypes = nil
|
||
file_admin_admin_account_proto_depIdxs = nil
|
||
}
|