1449 lines
45 KiB
Go
1449 lines
45 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 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[0]
|
||
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[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 AdminResetPasswordRequest.ProtoReflect.Descriptor instead.
|
||
func (*AdminResetPasswordRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
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[1]
|
||
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[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 AdminResetPasswordResponse.ProtoReflect.Descriptor instead.
|
||
func (*AdminResetPasswordResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
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 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[2]
|
||
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[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 CreateUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
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[3]
|
||
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[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 CreateUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*CreateUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
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[4]
|
||
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[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 DeleteUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
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[5]
|
||
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[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 DeleteUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*DeleteUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
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 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[6]
|
||
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[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 ChangeDataRequest.ProtoReflect.Descriptor instead.
|
||
func (*ChangeDataRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
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[7]
|
||
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[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 ChangeDataResponse.ProtoReflect.Descriptor instead.
|
||
func (*ChangeDataResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
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 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"` // В gRPC передаем как string, внутри преобразуем в Int
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AssignRoleRequest) Reset() {
|
||
*x = AssignRoleRequest{}
|
||
mi := &file_admin_admin_account_proto_msgTypes[8]
|
||
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[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 AssignRoleRequest.ProtoReflect.Descriptor instead.
|
||
func (*AssignRoleRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
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[9]
|
||
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[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 AssignRoleResponse.ProtoReflect.Descriptor instead.
|
||
func (*AssignRoleResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
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[10]
|
||
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[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 RevokeRoleRequest.ProtoReflect.Descriptor instead.
|
||
func (*RevokeRoleRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
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[11]
|
||
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[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 RevokeRoleResponse.ProtoReflect.Descriptor instead.
|
||
func (*RevokeRoleResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
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 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[12]
|
||
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[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 BlockUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*BlockUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
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[13]
|
||
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[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 BlockUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*BlockUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
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[14]
|
||
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[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 UnblockUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*UnblockUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
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[15]
|
||
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[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 UnblockUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*UnblockUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_admin_admin_account_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
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 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 ""
|
||
}
|
||
|
||
var File_admin_admin_account_proto protoreflect.FileDescriptor
|
||
|
||
const file_admin_admin_account_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x19admin/admin-account.proto\x12\x10admin.account.v1\"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\"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\"\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\"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\"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\"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\amessage2\x89\b\n" +
|
||
"\x13AdminAccountService\x12o\n" +
|
||
"\x12AdminResetPassword\x12+.admin.account.v1.AdminResetPasswordRequest\x1a,.admin.account.v1.AdminResetPasswordResponse\x12W\n" +
|
||
"\n" +
|
||
"CreateUser\x12#.admin.account.v1.CreateUserRequest\x1a$.admin.account.v1.CreateUserResponse\x12W\n" +
|
||
"\n" +
|
||
"DeleteUser\x12#.admin.account.v1.DeleteUserRequest\x1a$.admin.account.v1.DeleteUserResponse\x12W\n" +
|
||
"\n" +
|
||
"ChangeData\x12#.admin.account.v1.ChangeDataRequest\x1a$.admin.account.v1.ChangeDataResponse\x12W\n" +
|
||
"\n" +
|
||
"AssignRole\x12#.admin.account.v1.AssignRoleRequest\x1a$.admin.account.v1.AssignRoleResponse\x12W\n" +
|
||
"\n" +
|
||
"RevokeRole\x12#.admin.account.v1.RevokeRoleRequest\x1a$.admin.account.v1.RevokeRoleResponse\x12T\n" +
|
||
"\tBlockUser\x12\".admin.account.v1.BlockUserRequest\x1a#.admin.account.v1.BlockUserResponse\x12Z\n" +
|
||
"\vUnblockUser\x12$.admin.account.v1.UnblockUserRequest\x1a%.admin.account.v1.UnblockUserResponse\x12N\n" +
|
||
"\aBlockIp\x12 .admin.account.v1.BlockIpRequest\x1a!.admin.account.v1.BlockIpResponse\x12T\n" +
|
||
"\tUnblockIp\x12\".admin.account.v1.UnblockIpRequest\x1a#.admin.account.v1.UnblockIpResponse\x12l\n" +
|
||
"\x11SyncUsersToSearch\x12*.admin.account.v1.SyncUsersToSearchRequest\x1a+.admin.account.v1.SyncUsersToSearchResponseB*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, 22)
|
||
var file_admin_admin_account_proto_goTypes = []any{
|
||
(*AdminResetPasswordRequest)(nil), // 0: admin.account.v1.AdminResetPasswordRequest
|
||
(*AdminResetPasswordResponse)(nil), // 1: admin.account.v1.AdminResetPasswordResponse
|
||
(*CreateUserRequest)(nil), // 2: admin.account.v1.CreateUserRequest
|
||
(*CreateUserResponse)(nil), // 3: admin.account.v1.CreateUserResponse
|
||
(*DeleteUserRequest)(nil), // 4: admin.account.v1.DeleteUserRequest
|
||
(*DeleteUserResponse)(nil), // 5: admin.account.v1.DeleteUserResponse
|
||
(*ChangeDataRequest)(nil), // 6: admin.account.v1.ChangeDataRequest
|
||
(*ChangeDataResponse)(nil), // 7: admin.account.v1.ChangeDataResponse
|
||
(*AssignRoleRequest)(nil), // 8: admin.account.v1.AssignRoleRequest
|
||
(*AssignRoleResponse)(nil), // 9: admin.account.v1.AssignRoleResponse
|
||
(*RevokeRoleRequest)(nil), // 10: admin.account.v1.RevokeRoleRequest
|
||
(*RevokeRoleResponse)(nil), // 11: admin.account.v1.RevokeRoleResponse
|
||
(*BlockUserRequest)(nil), // 12: admin.account.v1.BlockUserRequest
|
||
(*BlockUserResponse)(nil), // 13: admin.account.v1.BlockUserResponse
|
||
(*UnblockUserRequest)(nil), // 14: admin.account.v1.UnblockUserRequest
|
||
(*UnblockUserResponse)(nil), // 15: admin.account.v1.UnblockUserResponse
|
||
(*BlockIpRequest)(nil), // 16: admin.account.v1.BlockIpRequest
|
||
(*BlockIpResponse)(nil), // 17: admin.account.v1.BlockIpResponse
|
||
(*UnblockIpRequest)(nil), // 18: admin.account.v1.UnblockIpRequest
|
||
(*UnblockIpResponse)(nil), // 19: admin.account.v1.UnblockIpResponse
|
||
(*SyncUsersToSearchRequest)(nil), // 20: admin.account.v1.SyncUsersToSearchRequest
|
||
(*SyncUsersToSearchResponse)(nil), // 21: admin.account.v1.SyncUsersToSearchResponse
|
||
}
|
||
var file_admin_admin_account_proto_depIdxs = []int32{
|
||
0, // 0: admin.account.v1.AdminAccountService.AdminResetPassword:input_type -> admin.account.v1.AdminResetPasswordRequest
|
||
2, // 1: admin.account.v1.AdminAccountService.CreateUser:input_type -> admin.account.v1.CreateUserRequest
|
||
4, // 2: admin.account.v1.AdminAccountService.DeleteUser:input_type -> admin.account.v1.DeleteUserRequest
|
||
6, // 3: admin.account.v1.AdminAccountService.ChangeData:input_type -> admin.account.v1.ChangeDataRequest
|
||
8, // 4: admin.account.v1.AdminAccountService.AssignRole:input_type -> admin.account.v1.AssignRoleRequest
|
||
10, // 5: admin.account.v1.AdminAccountService.RevokeRole:input_type -> admin.account.v1.RevokeRoleRequest
|
||
12, // 6: admin.account.v1.AdminAccountService.BlockUser:input_type -> admin.account.v1.BlockUserRequest
|
||
14, // 7: admin.account.v1.AdminAccountService.UnblockUser:input_type -> admin.account.v1.UnblockUserRequest
|
||
16, // 8: admin.account.v1.AdminAccountService.BlockIp:input_type -> admin.account.v1.BlockIpRequest
|
||
18, // 9: admin.account.v1.AdminAccountService.UnblockIp:input_type -> admin.account.v1.UnblockIpRequest
|
||
20, // 10: admin.account.v1.AdminAccountService.SyncUsersToSearch:input_type -> admin.account.v1.SyncUsersToSearchRequest
|
||
1, // 11: admin.account.v1.AdminAccountService.AdminResetPassword:output_type -> admin.account.v1.AdminResetPasswordResponse
|
||
3, // 12: admin.account.v1.AdminAccountService.CreateUser:output_type -> admin.account.v1.CreateUserResponse
|
||
5, // 13: admin.account.v1.AdminAccountService.DeleteUser:output_type -> admin.account.v1.DeleteUserResponse
|
||
7, // 14: admin.account.v1.AdminAccountService.ChangeData:output_type -> admin.account.v1.ChangeDataResponse
|
||
9, // 15: admin.account.v1.AdminAccountService.AssignRole:output_type -> admin.account.v1.AssignRoleResponse
|
||
11, // 16: admin.account.v1.AdminAccountService.RevokeRole:output_type -> admin.account.v1.RevokeRoleResponse
|
||
13, // 17: admin.account.v1.AdminAccountService.BlockUser:output_type -> admin.account.v1.BlockUserResponse
|
||
15, // 18: admin.account.v1.AdminAccountService.UnblockUser:output_type -> admin.account.v1.UnblockUserResponse
|
||
17, // 19: admin.account.v1.AdminAccountService.BlockIp:output_type -> admin.account.v1.BlockIpResponse
|
||
19, // 20: admin.account.v1.AdminAccountService.UnblockIp:output_type -> admin.account.v1.UnblockIpResponse
|
||
21, // 21: admin.account.v1.AdminAccountService.SyncUsersToSearch:output_type -> admin.account.v1.SyncUsersToSearchResponse
|
||
11, // [11:22] is the sub-list for method output_type
|
||
0, // [0:11] is the sub-list for method input_type
|
||
0, // [0:0] is the sub-list for extension type_name
|
||
0, // [0:0] is the sub-list for extension extendee
|
||
0, // [0:0] 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[6].OneofWrappers = []any{}
|
||
file_admin_admin_account_proto_msgTypes[12].OneofWrappers = []any{}
|
||
file_admin_admin_account_proto_msgTypes[16].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: 22,
|
||
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
|
||
}
|