v1

package
v0.0.0-...-8f419a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChatAdmin_Login_FullMethodName            = "/api.chat.admin.v1.ChatAdmin/Login"
	ChatAdmin_CreateUser_FullMethodName       = "/api.chat.admin.v1.ChatAdmin/CreateUser"
	ChatAdmin_UpdateUser_FullMethodName       = "/api.chat.admin.v1.ChatAdmin/UpdateUser"
	ChatAdmin_DeleteUser_FullMethodName       = "/api.chat.admin.v1.ChatAdmin/DeleteUser"
	ChatAdmin_UserInfo_FullMethodName         = "/api.chat.admin.v1.ChatAdmin/UserInfo"
	ChatAdmin_UserList_FullMethodName         = "/api.chat.admin.v1.ChatAdmin/UserList"
	ChatAdmin_CreateRole_FullMethodName       = "/api.chat.admin.v1.ChatAdmin/CreateRole"
	ChatAdmin_UpdateRole_FullMethodName       = "/api.chat.admin.v1.ChatAdmin/UpdateRole"
	ChatAdmin_DeleteRole_FullMethodName       = "/api.chat.admin.v1.ChatAdmin/DeleteRole"
	ChatAdmin_RoleInfo_FullMethodName         = "/api.chat.admin.v1.ChatAdmin/RoleInfo"
	ChatAdmin_RoleList_FullMethodName         = "/api.chat.admin.v1.ChatAdmin/RoleList"
	ChatAdmin_CreatePermission_FullMethodName = "/api.chat.admin.v1.ChatAdmin/CreatePermission"
	ChatAdmin_UpdatePermission_FullMethodName = "/api.chat.admin.v1.ChatAdmin/UpdatePermission"
	ChatAdmin_DeletePermission_FullMethodName = "/api.chat.admin.v1.ChatAdmin/DeletePermission"
	ChatAdmin_PermissionInfo_FullMethodName   = "/api.chat.admin.v1.ChatAdmin/PermissionInfo"
	ChatAdmin_PermissionList_FullMethodName   = "/api.chat.admin.v1.ChatAdmin/PermissionList"
	ChatAdmin_SetUserRole_FullMethodName      = "/api.chat.admin.v1.ChatAdmin/SetUserRole"
	ChatAdmin_DeleteUserRole_FullMethodName   = "/api.chat.admin.v1.ChatAdmin/DeleteUserRole"
)
View Source
const OperationChatAdminCreatePermission = "/api.chat.admin.v1.ChatAdmin/CreatePermission"
View Source
const OperationChatAdminCreateRole = "/api.chat.admin.v1.ChatAdmin/CreateRole"
View Source
const OperationChatAdminCreateUser = "/api.chat.admin.v1.ChatAdmin/CreateUser"
View Source
const OperationChatAdminDeletePermission = "/api.chat.admin.v1.ChatAdmin/DeletePermission"
View Source
const OperationChatAdminDeleteRole = "/api.chat.admin.v1.ChatAdmin/DeleteRole"
View Source
const OperationChatAdminDeleteUser = "/api.chat.admin.v1.ChatAdmin/DeleteUser"
View Source
const OperationChatAdminDeleteUserRole = "/api.chat.admin.v1.ChatAdmin/DeleteUserRole"
View Source
const OperationChatAdminLogin = "/api.chat.admin.v1.ChatAdmin/Login"
View Source
const OperationChatAdminPermissionInfo = "/api.chat.admin.v1.ChatAdmin/PermissionInfo"
View Source
const OperationChatAdminPermissionList = "/api.chat.admin.v1.ChatAdmin/PermissionList"
View Source
const OperationChatAdminRoleInfo = "/api.chat.admin.v1.ChatAdmin/RoleInfo"
View Source
const OperationChatAdminRoleList = "/api.chat.admin.v1.ChatAdmin/RoleList"
View Source
const OperationChatAdminSetUserRole = "/api.chat.admin.v1.ChatAdmin/SetUserRole"
View Source
const OperationChatAdminUpdatePermission = "/api.chat.admin.v1.ChatAdmin/UpdatePermission"
View Source
const OperationChatAdminUpdateRole = "/api.chat.admin.v1.ChatAdmin/UpdateRole"
View Source
const OperationChatAdminUpdateUser = "/api.chat.admin.v1.ChatAdmin/UpdateUser"
View Source
const OperationChatAdminUserInfo = "/api.chat.admin.v1.ChatAdmin/UserInfo"
View Source
const OperationChatAdminUserList = "/api.chat.admin.v1.ChatAdmin/UserList"

Variables

View Source
var ChatAdmin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.chat.admin.v1.ChatAdmin",
	HandlerType: (*ChatAdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _ChatAdmin_Login_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _ChatAdmin_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _ChatAdmin_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _ChatAdmin_DeleteUser_Handler,
		},
		{
			MethodName: "UserInfo",
			Handler:    _ChatAdmin_UserInfo_Handler,
		},
		{
			MethodName: "UserList",
			Handler:    _ChatAdmin_UserList_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _ChatAdmin_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _ChatAdmin_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _ChatAdmin_DeleteRole_Handler,
		},
		{
			MethodName: "RoleInfo",
			Handler:    _ChatAdmin_RoleInfo_Handler,
		},
		{
			MethodName: "RoleList",
			Handler:    _ChatAdmin_RoleList_Handler,
		},
		{
			MethodName: "CreatePermission",
			Handler:    _ChatAdmin_CreatePermission_Handler,
		},
		{
			MethodName: "UpdatePermission",
			Handler:    _ChatAdmin_UpdatePermission_Handler,
		},
		{
			MethodName: "DeletePermission",
			Handler:    _ChatAdmin_DeletePermission_Handler,
		},
		{
			MethodName: "PermissionInfo",
			Handler:    _ChatAdmin_PermissionInfo_Handler,
		},
		{
			MethodName: "PermissionList",
			Handler:    _ChatAdmin_PermissionList_Handler,
		},
		{
			MethodName: "SetUserRole",
			Handler:    _ChatAdmin_SetUserRole_Handler,
		},
		{
			MethodName: "DeleteUserRole",
			Handler:    _ChatAdmin_DeleteUserRole_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/admin.proto",
}

ChatAdmin_ServiceDesc is the grpc.ServiceDesc for ChatAdmin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_v1_admin_proto protoreflect.FileDescriptor

Functions

func RegisterChatAdminHTTPServer

func RegisterChatAdminHTTPServer(s *http.Server, srv ChatAdminHTTPServer)

func RegisterChatAdminServer

func RegisterChatAdminServer(s grpc.ServiceRegistrar, srv ChatAdminServer)

Types

type ChatAdminClient

type ChatAdminClient interface {
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*UserInfoResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UserInfoResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*UserInfoResponse, error)
	UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error)
	UserList(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserListResponse, error)
	CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*RoleInfoResponse, error)
	UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*RoleInfoResponse, error)
	DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*RoleInfoResponse, error)
	RoleInfo(ctx context.Context, in *RoleInfoRequest, opts ...grpc.CallOption) (*RoleInfoResponse, error)
	RoleList(ctx context.Context, in *RoleListRequest, opts ...grpc.CallOption) (*RoleListResponse, error)
	CreatePermission(ctx context.Context, in *CreatePermissionRequest, opts ...grpc.CallOption) (*PermissionInfoResponse, error)
	UpdatePermission(ctx context.Context, in *UpdatePermissionRequest, opts ...grpc.CallOption) (*PermissionInfoResponse, error)
	DeletePermission(ctx context.Context, in *DeletePermissionRequest, opts ...grpc.CallOption) (*PermissionInfoResponse, error)
	PermissionInfo(ctx context.Context, in *PermissionInfoRequest, opts ...grpc.CallOption) (*PermissionInfoResponse, error)
	PermissionList(ctx context.Context, in *PermissionListRequest, opts ...grpc.CallOption) (*PermissionListResponse, error)
	SetUserRole(ctx context.Context, in *SetUserRoleRequest, opts ...grpc.CallOption) (*SetUserRoleResponse, error)
	DeleteUserRole(ctx context.Context, in *DeleteUserRoleRequest, opts ...grpc.CallOption) (*DeleteUserRoleResponse, error)
}

ChatAdminClient is the client API for ChatAdmin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewChatAdminClient

func NewChatAdminClient(cc grpc.ClientConnInterface) ChatAdminClient

type ChatAdminHTTPClient

type ChatAdminHTTPClient interface {
	CreatePermission(ctx context.Context, req *CreatePermissionRequest, opts ...http.CallOption) (rsp *PermissionInfoResponse, err error)
	CreateRole(ctx context.Context, req *CreateRoleRequest, opts ...http.CallOption) (rsp *RoleInfoResponse, err error)
	CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *UserInfoResponse, err error)
	DeletePermission(ctx context.Context, req *DeletePermissionRequest, opts ...http.CallOption) (rsp *PermissionInfoResponse, err error)
	DeleteRole(ctx context.Context, req *DeleteRoleRequest, opts ...http.CallOption) (rsp *RoleInfoResponse, err error)
	DeleteUser(ctx context.Context, req *DeleteUserRequest, opts ...http.CallOption) (rsp *UserInfoResponse, err error)
	DeleteUserRole(ctx context.Context, req *DeleteUserRoleRequest, opts ...http.CallOption) (rsp *DeleteUserRoleResponse, err error)
	Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginResponse, err error)
	PermissionInfo(ctx context.Context, req *PermissionInfoRequest, opts ...http.CallOption) (rsp *PermissionInfoResponse, err error)
	PermissionList(ctx context.Context, req *PermissionListRequest, opts ...http.CallOption) (rsp *PermissionListResponse, err error)
	RoleInfo(ctx context.Context, req *RoleInfoRequest, opts ...http.CallOption) (rsp *RoleInfoResponse, err error)
	RoleList(ctx context.Context, req *RoleListRequest, opts ...http.CallOption) (rsp *RoleListResponse, err error)
	SetUserRole(ctx context.Context, req *SetUserRoleRequest, opts ...http.CallOption) (rsp *SetUserRoleResponse, err error)
	UpdatePermission(ctx context.Context, req *UpdatePermissionRequest, opts ...http.CallOption) (rsp *PermissionInfoResponse, err error)
	UpdateRole(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *RoleInfoResponse, err error)
	UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *UserInfoResponse, err error)
	UserInfo(ctx context.Context, req *UserInfoRequest, opts ...http.CallOption) (rsp *UserInfoResponse, err error)
	UserList(ctx context.Context, req *UserListRequest, opts ...http.CallOption) (rsp *UserListResponse, err error)
}

func NewChatAdminHTTPClient

func NewChatAdminHTTPClient(client *http.Client) ChatAdminHTTPClient

type ChatAdminHTTPClientImpl

type ChatAdminHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*ChatAdminHTTPClientImpl) CreatePermission

func (*ChatAdminHTTPClientImpl) CreateRole

func (*ChatAdminHTTPClientImpl) CreateUser

func (*ChatAdminHTTPClientImpl) DeletePermission

func (*ChatAdminHTTPClientImpl) DeleteRole

func (*ChatAdminHTTPClientImpl) DeleteUser

func (*ChatAdminHTTPClientImpl) DeleteUserRole

func (*ChatAdminHTTPClientImpl) Login

func (*ChatAdminHTTPClientImpl) PermissionInfo

func (*ChatAdminHTTPClientImpl) PermissionList

func (*ChatAdminHTTPClientImpl) RoleInfo

func (*ChatAdminHTTPClientImpl) RoleList

func (*ChatAdminHTTPClientImpl) SetUserRole

func (*ChatAdminHTTPClientImpl) UpdatePermission

func (*ChatAdminHTTPClientImpl) UpdateRole

func (*ChatAdminHTTPClientImpl) UpdateUser

func (*ChatAdminHTTPClientImpl) UserInfo

func (*ChatAdminHTTPClientImpl) UserList

type ChatAdminServer

type ChatAdminServer interface {
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	CreateUser(context.Context, *CreateUserRequest) (*UserInfoResponse, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UserInfoResponse, error)
	DeleteUser(context.Context, *DeleteUserRequest) (*UserInfoResponse, error)
	UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error)
	UserList(context.Context, *UserListRequest) (*UserListResponse, error)
	CreateRole(context.Context, *CreateRoleRequest) (*RoleInfoResponse, error)
	UpdateRole(context.Context, *UpdateRoleRequest) (*RoleInfoResponse, error)
	DeleteRole(context.Context, *DeleteRoleRequest) (*RoleInfoResponse, error)
	RoleInfo(context.Context, *RoleInfoRequest) (*RoleInfoResponse, error)
	RoleList(context.Context, *RoleListRequest) (*RoleListResponse, error)
	CreatePermission(context.Context, *CreatePermissionRequest) (*PermissionInfoResponse, error)
	UpdatePermission(context.Context, *UpdatePermissionRequest) (*PermissionInfoResponse, error)
	DeletePermission(context.Context, *DeletePermissionRequest) (*PermissionInfoResponse, error)
	PermissionInfo(context.Context, *PermissionInfoRequest) (*PermissionInfoResponse, error)
	PermissionList(context.Context, *PermissionListRequest) (*PermissionListResponse, error)
	SetUserRole(context.Context, *SetUserRoleRequest) (*SetUserRoleResponse, error)
	DeleteUserRole(context.Context, *DeleteUserRoleRequest) (*DeleteUserRoleResponse, error)
	// contains filtered or unexported methods
}

ChatAdminServer is the server API for ChatAdmin service. All implementations must embed UnimplementedChatAdminServer for forward compatibility

type CreatePermissionRequest

type CreatePermissionRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Memo     string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"`
	Path     string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Method   string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	ParentId uint64 `protobuf:"varint,5,opt,name=parentId,proto3" json:"parentId,omitempty"`
	// contains filtered or unexported fields
}

权限创建请求

func (*CreatePermissionRequest) Descriptor deprecated

func (*CreatePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreatePermissionRequest.ProtoReflect.Descriptor instead.

func (*CreatePermissionRequest) GetMemo

func (x *CreatePermissionRequest) GetMemo() string

func (*CreatePermissionRequest) GetMethod

func (x *CreatePermissionRequest) GetMethod() string

func (*CreatePermissionRequest) GetName

func (x *CreatePermissionRequest) GetName() string

func (*CreatePermissionRequest) GetParentId

func (x *CreatePermissionRequest) GetParentId() uint64

func (*CreatePermissionRequest) GetPath

func (x *CreatePermissionRequest) GetPath() string

func (*CreatePermissionRequest) ProtoMessage

func (*CreatePermissionRequest) ProtoMessage()

func (*CreatePermissionRequest) ProtoReflect

func (x *CreatePermissionRequest) ProtoReflect() protoreflect.Message

func (*CreatePermissionRequest) Reset

func (x *CreatePermissionRequest) Reset()

func (*CreatePermissionRequest) String

func (x *CreatePermissionRequest) String() string

func (*CreatePermissionRequest) Validate

func (m *CreatePermissionRequest) Validate() error

Validate checks the field values on CreatePermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreatePermissionRequest) ValidateAll

func (m *CreatePermissionRequest) ValidateAll() error

ValidateAll checks the field values on CreatePermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreatePermissionRequestMultiError, or nil if none found.

type CreatePermissionRequestMultiError

type CreatePermissionRequestMultiError []error

CreatePermissionRequestMultiError is an error wrapping multiple validation errors returned by CreatePermissionRequest.ValidateAll() if the designated constraints aren't met.

func (CreatePermissionRequestMultiError) AllErrors

func (m CreatePermissionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreatePermissionRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreatePermissionRequestValidationError

type CreatePermissionRequestValidationError struct {
	// contains filtered or unexported fields
}

CreatePermissionRequestValidationError is the validation error returned by CreatePermissionRequest.Validate if the designated constraints aren't met.

func (CreatePermissionRequestValidationError) Cause

Cause function returns cause value.

func (CreatePermissionRequestValidationError) Error

Error satisfies the builtin error interface

func (CreatePermissionRequestValidationError) ErrorName

ErrorName returns error name.

func (CreatePermissionRequestValidationError) Field

Field function returns field value.

func (CreatePermissionRequestValidationError) Key

Key function returns key value.

func (CreatePermissionRequestValidationError) Reason

Reason function returns reason value.

type CreateRoleRequest

type CreateRoleRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"`
	// contains filtered or unexported fields
}

创建角色请求

func (*CreateRoleRequest) Descriptor deprecated

func (*CreateRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateRoleRequest) GetMemo

func (x *CreateRoleRequest) GetMemo() string

func (*CreateRoleRequest) GetName

func (x *CreateRoleRequest) GetName() string

func (*CreateRoleRequest) ProtoMessage

func (*CreateRoleRequest) ProtoMessage()

func (*CreateRoleRequest) ProtoReflect

func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message

func (*CreateRoleRequest) Reset

func (x *CreateRoleRequest) Reset()

func (*CreateRoleRequest) String

func (x *CreateRoleRequest) String() string

func (*CreateRoleRequest) Validate

func (m *CreateRoleRequest) Validate() error

Validate checks the field values on CreateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateRoleRequest) ValidateAll

func (m *CreateRoleRequest) ValidateAll() error

ValidateAll checks the field values on CreateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateRoleRequestMultiError, or nil if none found.

type CreateRoleRequestMultiError

type CreateRoleRequestMultiError []error

CreateRoleRequestMultiError is an error wrapping multiple validation errors returned by CreateRoleRequest.ValidateAll() if the designated constraints aren't met.

func (CreateRoleRequestMultiError) AllErrors

func (m CreateRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateRoleRequestValidationError

type CreateRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateRoleRequestValidationError is the validation error returned by CreateRoleRequest.Validate if the designated constraints aren't met.

func (CreateRoleRequestValidationError) Cause

Cause function returns cause value.

func (CreateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateRoleRequestValidationError) Field

Field function returns field value.

func (CreateRoleRequestValidationError) Key

Key function returns key value.

func (CreateRoleRequestValidationError) Reason

Reason function returns reason value.

type CreateUserRequest

type CreateUserRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Email    string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

创建用户请求

func (*CreateUserRequest) Descriptor deprecated

func (*CreateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetEmail

func (x *CreateUserRequest) GetEmail() string

func (*CreateUserRequest) GetName

func (x *CreateUserRequest) GetName() string

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

func (x *CreateUserRequest) ProtoReflect() protoreflect.Message

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() error

Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserRequest) ValidateAll

func (m *CreateUserRequest) ValidateAll() error

ValidateAll checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserRequestMultiError, or nil if none found.

type CreateUserRequestMultiError

type CreateUserRequestMultiError []error

CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.

func (CreateUserRequestMultiError) AllErrors

func (m CreateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserRequestValidationError

type CreateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.

func (CreateUserRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

Reason function returns reason value.

type DeletePermissionRequest

type DeletePermissionRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

权限删除请求

func (*DeletePermissionRequest) Descriptor deprecated

func (*DeletePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeletePermissionRequest.ProtoReflect.Descriptor instead.

func (*DeletePermissionRequest) GetId

func (x *DeletePermissionRequest) GetId() uint64

func (*DeletePermissionRequest) ProtoMessage

func (*DeletePermissionRequest) ProtoMessage()

func (*DeletePermissionRequest) ProtoReflect

func (x *DeletePermissionRequest) ProtoReflect() protoreflect.Message

func (*DeletePermissionRequest) Reset

func (x *DeletePermissionRequest) Reset()

func (*DeletePermissionRequest) String

func (x *DeletePermissionRequest) String() string

func (*DeletePermissionRequest) Validate

func (m *DeletePermissionRequest) Validate() error

Validate checks the field values on DeletePermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeletePermissionRequest) ValidateAll

func (m *DeletePermissionRequest) ValidateAll() error

ValidateAll checks the field values on DeletePermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeletePermissionRequestMultiError, or nil if none found.

type DeletePermissionRequestMultiError

type DeletePermissionRequestMultiError []error

DeletePermissionRequestMultiError is an error wrapping multiple validation errors returned by DeletePermissionRequest.ValidateAll() if the designated constraints aren't met.

func (DeletePermissionRequestMultiError) AllErrors

func (m DeletePermissionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeletePermissionRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeletePermissionRequestValidationError

type DeletePermissionRequestValidationError struct {
	// contains filtered or unexported fields
}

DeletePermissionRequestValidationError is the validation error returned by DeletePermissionRequest.Validate if the designated constraints aren't met.

func (DeletePermissionRequestValidationError) Cause

Cause function returns cause value.

func (DeletePermissionRequestValidationError) Error

Error satisfies the builtin error interface

func (DeletePermissionRequestValidationError) ErrorName

ErrorName returns error name.

func (DeletePermissionRequestValidationError) Field

Field function returns field value.

func (DeletePermissionRequestValidationError) Key

Key function returns key value.

func (DeletePermissionRequestValidationError) Reason

Reason function returns reason value.

type DeleteRoleRequest

type DeleteRoleRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

删除角色请求

func (*DeleteRoleRequest) Descriptor deprecated

func (*DeleteRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.

func (*DeleteRoleRequest) GetId

func (x *DeleteRoleRequest) GetId() uint64

func (*DeleteRoleRequest) ProtoMessage

func (*DeleteRoleRequest) ProtoMessage()

func (*DeleteRoleRequest) ProtoReflect

func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message

func (*DeleteRoleRequest) Reset

func (x *DeleteRoleRequest) Reset()

func (*DeleteRoleRequest) String

func (x *DeleteRoleRequest) String() string

func (*DeleteRoleRequest) Validate

func (m *DeleteRoleRequest) Validate() error

Validate checks the field values on DeleteRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteRoleRequest) ValidateAll

func (m *DeleteRoleRequest) ValidateAll() error

ValidateAll checks the field values on DeleteRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRoleRequestMultiError, or nil if none found.

type DeleteRoleRequestMultiError

type DeleteRoleRequestMultiError []error

DeleteRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteRoleRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteRoleRequestMultiError) AllErrors

func (m DeleteRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteRoleRequestValidationError

type DeleteRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteRoleRequestValidationError is the validation error returned by DeleteRoleRequest.Validate if the designated constraints aren't met.

func (DeleteRoleRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleRequestValidationError) Field

Field function returns field value.

func (DeleteRoleRequestValidationError) Key

Key function returns key value.

func (DeleteRoleRequestValidationError) Reason

Reason function returns reason value.

type DeleteUserRequest

type DeleteUserRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

删除用户请求

func (*DeleteUserRequest) Descriptor deprecated

func (*DeleteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() uint64

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

func (*DeleteUserRequest) Validate

func (m *DeleteUserRequest) Validate() error

Validate checks the field values on DeleteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteUserRequest) ValidateAll

func (m *DeleteUserRequest) ValidateAll() error

ValidateAll checks the field values on DeleteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteUserRequestMultiError, or nil if none found.

type DeleteUserRequestMultiError

type DeleteUserRequestMultiError []error

DeleteUserRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteUserRequestMultiError) AllErrors

func (m DeleteUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteUserRequestValidationError

type DeleteUserRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteUserRequestValidationError is the validation error returned by DeleteUserRequest.Validate if the designated constraints aren't met.

func (DeleteUserRequestValidationError) Cause

Cause function returns cause value.

func (DeleteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserRequestValidationError) Field

Field function returns field value.

func (DeleteUserRequestValidationError) Key

Key function returns key value.

func (DeleteUserRequestValidationError) Reason

Reason function returns reason value.

type DeleteUserRoleRequest

type DeleteUserRoleRequest struct {
	UserId  uint64   `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	RoleIds []uint64 `protobuf:"varint,2,rep,packed,name=roleIds,proto3" json:"roleIds,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserRoleRequest 删除用户角色请求

func (*DeleteUserRoleRequest) Descriptor deprecated

func (*DeleteUserRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRoleRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRoleRequest) GetRoleIds

func (x *DeleteUserRoleRequest) GetRoleIds() []uint64

func (*DeleteUserRoleRequest) GetUserId

func (x *DeleteUserRoleRequest) GetUserId() uint64

func (*DeleteUserRoleRequest) ProtoMessage

func (*DeleteUserRoleRequest) ProtoMessage()

func (*DeleteUserRoleRequest) ProtoReflect

func (x *DeleteUserRoleRequest) ProtoReflect() protoreflect.Message

func (*DeleteUserRoleRequest) Reset

func (x *DeleteUserRoleRequest) Reset()

func (*DeleteUserRoleRequest) String

func (x *DeleteUserRoleRequest) String() string

func (*DeleteUserRoleRequest) Validate

func (m *DeleteUserRoleRequest) Validate() error

Validate checks the field values on DeleteUserRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteUserRoleRequest) ValidateAll

func (m *DeleteUserRoleRequest) ValidateAll() error

ValidateAll checks the field values on DeleteUserRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteUserRoleRequestMultiError, or nil if none found.

type DeleteUserRoleRequestMultiError

type DeleteUserRoleRequestMultiError []error

DeleteUserRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRoleRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteUserRoleRequestMultiError) AllErrors

func (m DeleteUserRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteUserRoleRequestValidationError

type DeleteUserRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteUserRoleRequestValidationError is the validation error returned by DeleteUserRoleRequest.Validate if the designated constraints aren't met.

func (DeleteUserRoleRequestValidationError) Cause

Cause function returns cause value.

func (DeleteUserRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserRoleRequestValidationError) Field

Field function returns field value.

func (DeleteUserRoleRequestValidationError) Key

Key function returns key value.

func (DeleteUserRoleRequestValidationError) Reason

Reason function returns reason value.

type DeleteUserRoleResponse

type DeleteUserRoleResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserRoleResponse 删除用户角色响应

func (*DeleteUserRoleResponse) Descriptor deprecated

func (*DeleteUserRoleResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRoleResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserRoleResponse) GetSuccess

func (x *DeleteUserRoleResponse) GetSuccess() bool

func (*DeleteUserRoleResponse) ProtoMessage

func (*DeleteUserRoleResponse) ProtoMessage()

func (*DeleteUserRoleResponse) ProtoReflect

func (x *DeleteUserRoleResponse) ProtoReflect() protoreflect.Message

func (*DeleteUserRoleResponse) Reset

func (x *DeleteUserRoleResponse) Reset()

func (*DeleteUserRoleResponse) String

func (x *DeleteUserRoleResponse) String() string

func (*DeleteUserRoleResponse) Validate

func (m *DeleteUserRoleResponse) Validate() error

Validate checks the field values on DeleteUserRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteUserRoleResponse) ValidateAll

func (m *DeleteUserRoleResponse) ValidateAll() error

ValidateAll checks the field values on DeleteUserRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteUserRoleResponseMultiError, or nil if none found.

type DeleteUserRoleResponseMultiError

type DeleteUserRoleResponseMultiError []error

DeleteUserRoleResponseMultiError is an error wrapping multiple validation errors returned by DeleteUserRoleResponse.ValidateAll() if the designated constraints aren't met.

func (DeleteUserRoleResponseMultiError) AllErrors

func (m DeleteUserRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserRoleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteUserRoleResponseValidationError

type DeleteUserRoleResponseValidationError struct {
	// contains filtered or unexported fields
}

DeleteUserRoleResponseValidationError is the validation error returned by DeleteUserRoleResponse.Validate if the designated constraints aren't met.

func (DeleteUserRoleResponseValidationError) Cause

Cause function returns cause value.

func (DeleteUserRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserRoleResponseValidationError) Field

Field function returns field value.

func (DeleteUserRoleResponseValidationError) Key

Key function returns key value.

func (DeleteUserRoleResponseValidationError) Reason

Reason function returns reason value.

type LoginRequest

type LoginRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

登录请求

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

type LoginRequestValidationError struct {
	// contains filtered or unexported fields
}

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

登录响应

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

func (x *LoginResponse) ProtoReflect() protoreflect.Message

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginResponse) ValidateAll

func (m *LoginResponse) ValidateAll() error

ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.

type LoginResponseMultiError

type LoginResponseMultiError []error

LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.

func (LoginResponseMultiError) AllErrors

func (m LoginResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponseMultiError) Error

func (m LoginResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginResponseValidationError

type LoginResponseValidationError struct {
	// contains filtered or unexported fields
}

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type PermissionInfoRequest

type PermissionInfoRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

权限信息请求

func (*PermissionInfoRequest) Descriptor deprecated

func (*PermissionInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use PermissionInfoRequest.ProtoReflect.Descriptor instead.

func (*PermissionInfoRequest) GetId

func (x *PermissionInfoRequest) GetId() uint64

func (*PermissionInfoRequest) ProtoMessage

func (*PermissionInfoRequest) ProtoMessage()

func (*PermissionInfoRequest) ProtoReflect

func (x *PermissionInfoRequest) ProtoReflect() protoreflect.Message

func (*PermissionInfoRequest) Reset

func (x *PermissionInfoRequest) Reset()

func (*PermissionInfoRequest) String

func (x *PermissionInfoRequest) String() string

func (*PermissionInfoRequest) Validate

func (m *PermissionInfoRequest) Validate() error

Validate checks the field values on PermissionInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PermissionInfoRequest) ValidateAll

func (m *PermissionInfoRequest) ValidateAll() error

ValidateAll checks the field values on PermissionInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermissionInfoRequestMultiError, or nil if none found.

type PermissionInfoRequestMultiError

type PermissionInfoRequestMultiError []error

PermissionInfoRequestMultiError is an error wrapping multiple validation errors returned by PermissionInfoRequest.ValidateAll() if the designated constraints aren't met.

func (PermissionInfoRequestMultiError) AllErrors

func (m PermissionInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermissionInfoRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionInfoRequestValidationError

type PermissionInfoRequestValidationError struct {
	// contains filtered or unexported fields
}

PermissionInfoRequestValidationError is the validation error returned by PermissionInfoRequest.Validate if the designated constraints aren't met.

func (PermissionInfoRequestValidationError) Cause

Cause function returns cause value.

func (PermissionInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (PermissionInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (PermissionInfoRequestValidationError) Field

Field function returns field value.

func (PermissionInfoRequestValidationError) Key

Key function returns key value.

func (PermissionInfoRequestValidationError) Reason

Reason function returns reason value.

type PermissionInfoResponse

type PermissionInfoResponse struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Memo      string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"`
	Path      string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Method    string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
	ParentId  uint64 `protobuf:"varint,6,opt,name=parentId,proto3" json:"parentId,omitempty"`
	ParentIds string `protobuf:"bytes,7,opt,name=parentIds,proto3" json:"parentIds,omitempty"`
	CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

权限信息响应

func (*PermissionInfoResponse) Descriptor deprecated

func (*PermissionInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use PermissionInfoResponse.ProtoReflect.Descriptor instead.

func (*PermissionInfoResponse) GetCreatedAt

func (x *PermissionInfoResponse) GetCreatedAt() string

func (*PermissionInfoResponse) GetId

func (x *PermissionInfoResponse) GetId() uint64

func (*PermissionInfoResponse) GetMemo

func (x *PermissionInfoResponse) GetMemo() string

func (*PermissionInfoResponse) GetMethod

func (x *PermissionInfoResponse) GetMethod() string

func (*PermissionInfoResponse) GetName

func (x *PermissionInfoResponse) GetName() string

func (*PermissionInfoResponse) GetParentId

func (x *PermissionInfoResponse) GetParentId() uint64

func (*PermissionInfoResponse) GetParentIds

func (x *PermissionInfoResponse) GetParentIds() string

func (*PermissionInfoResponse) GetPath

func (x *PermissionInfoResponse) GetPath() string

func (*PermissionInfoResponse) GetUpdatedAt

func (x *PermissionInfoResponse) GetUpdatedAt() string

func (*PermissionInfoResponse) ProtoMessage

func (*PermissionInfoResponse) ProtoMessage()

func (*PermissionInfoResponse) ProtoReflect

func (x *PermissionInfoResponse) ProtoReflect() protoreflect.Message

func (*PermissionInfoResponse) Reset

func (x *PermissionInfoResponse) Reset()

func (*PermissionInfoResponse) String

func (x *PermissionInfoResponse) String() string

func (*PermissionInfoResponse) Validate

func (m *PermissionInfoResponse) Validate() error

Validate checks the field values on PermissionInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PermissionInfoResponse) ValidateAll

func (m *PermissionInfoResponse) ValidateAll() error

ValidateAll checks the field values on PermissionInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermissionInfoResponseMultiError, or nil if none found.

type PermissionInfoResponseMultiError

type PermissionInfoResponseMultiError []error

PermissionInfoResponseMultiError is an error wrapping multiple validation errors returned by PermissionInfoResponse.ValidateAll() if the designated constraints aren't met.

func (PermissionInfoResponseMultiError) AllErrors

func (m PermissionInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermissionInfoResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionInfoResponseValidationError

type PermissionInfoResponseValidationError struct {
	// contains filtered or unexported fields
}

PermissionInfoResponseValidationError is the validation error returned by PermissionInfoResponse.Validate if the designated constraints aren't met.

func (PermissionInfoResponseValidationError) Cause

Cause function returns cause value.

func (PermissionInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (PermissionInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (PermissionInfoResponseValidationError) Field

Field function returns field value.

func (PermissionInfoResponseValidationError) Key

Key function returns key value.

func (PermissionInfoResponseValidationError) Reason

Reason function returns reason value.

type PermissionListRequest

type PermissionListRequest struct {
	Page     int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

权限列表请求

func (*PermissionListRequest) Descriptor deprecated

func (*PermissionListRequest) Descriptor() ([]byte, []int)

Deprecated: Use PermissionListRequest.ProtoReflect.Descriptor instead.

func (*PermissionListRequest) GetPage

func (x *PermissionListRequest) GetPage() int64

func (*PermissionListRequest) GetPageSize

func (x *PermissionListRequest) GetPageSize() int64

func (*PermissionListRequest) ProtoMessage

func (*PermissionListRequest) ProtoMessage()

func (*PermissionListRequest) ProtoReflect

func (x *PermissionListRequest) ProtoReflect() protoreflect.Message

func (*PermissionListRequest) Reset

func (x *PermissionListRequest) Reset()

func (*PermissionListRequest) String

func (x *PermissionListRequest) String() string

func (*PermissionListRequest) Validate

func (m *PermissionListRequest) Validate() error

Validate checks the field values on PermissionListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PermissionListRequest) ValidateAll

func (m *PermissionListRequest) ValidateAll() error

ValidateAll checks the field values on PermissionListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermissionListRequestMultiError, or nil if none found.

type PermissionListRequestMultiError

type PermissionListRequestMultiError []error

PermissionListRequestMultiError is an error wrapping multiple validation errors returned by PermissionListRequest.ValidateAll() if the designated constraints aren't met.

func (PermissionListRequestMultiError) AllErrors

func (m PermissionListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermissionListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionListRequestValidationError

type PermissionListRequestValidationError struct {
	// contains filtered or unexported fields
}

PermissionListRequestValidationError is the validation error returned by PermissionListRequest.Validate if the designated constraints aren't met.

func (PermissionListRequestValidationError) Cause

Cause function returns cause value.

func (PermissionListRequestValidationError) Error

Error satisfies the builtin error interface

func (PermissionListRequestValidationError) ErrorName

ErrorName returns error name.

func (PermissionListRequestValidationError) Field

Field function returns field value.

func (PermissionListRequestValidationError) Key

Key function returns key value.

func (PermissionListRequestValidationError) Reason

Reason function returns reason value.

type PermissionListResponse

type PermissionListResponse struct {
	Total       int64                     `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Permissions []*PermissionInfoResponse `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

权限列表响应

func (*PermissionListResponse) Descriptor deprecated

func (*PermissionListResponse) Descriptor() ([]byte, []int)

Deprecated: Use PermissionListResponse.ProtoReflect.Descriptor instead.

func (*PermissionListResponse) GetPermissions

func (x *PermissionListResponse) GetPermissions() []*PermissionInfoResponse

func (*PermissionListResponse) GetTotal

func (x *PermissionListResponse) GetTotal() int64

func (*PermissionListResponse) ProtoMessage

func (*PermissionListResponse) ProtoMessage()

func (*PermissionListResponse) ProtoReflect

func (x *PermissionListResponse) ProtoReflect() protoreflect.Message

func (*PermissionListResponse) Reset

func (x *PermissionListResponse) Reset()

func (*PermissionListResponse) String

func (x *PermissionListResponse) String() string

func (*PermissionListResponse) Validate

func (m *PermissionListResponse) Validate() error

Validate checks the field values on PermissionListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PermissionListResponse) ValidateAll

func (m *PermissionListResponse) ValidateAll() error

ValidateAll checks the field values on PermissionListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermissionListResponseMultiError, or nil if none found.

type PermissionListResponseMultiError

type PermissionListResponseMultiError []error

PermissionListResponseMultiError is an error wrapping multiple validation errors returned by PermissionListResponse.ValidateAll() if the designated constraints aren't met.

func (PermissionListResponseMultiError) AllErrors

func (m PermissionListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermissionListResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionListResponseValidationError

type PermissionListResponseValidationError struct {
	// contains filtered or unexported fields
}

PermissionListResponseValidationError is the validation error returned by PermissionListResponse.Validate if the designated constraints aren't met.

func (PermissionListResponseValidationError) Cause

Cause function returns cause value.

func (PermissionListResponseValidationError) Error

Error satisfies the builtin error interface

func (PermissionListResponseValidationError) ErrorName

ErrorName returns error name.

func (PermissionListResponseValidationError) Field

Field function returns field value.

func (PermissionListResponseValidationError) Key

Key function returns key value.

func (PermissionListResponseValidationError) Reason

Reason function returns reason value.

type RoleInfoRequest

type RoleInfoRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

角色信息请求

func (*RoleInfoRequest) Descriptor deprecated

func (*RoleInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use RoleInfoRequest.ProtoReflect.Descriptor instead.

func (*RoleInfoRequest) GetId

func (x *RoleInfoRequest) GetId() uint64

func (*RoleInfoRequest) ProtoMessage

func (*RoleInfoRequest) ProtoMessage()

func (*RoleInfoRequest) ProtoReflect

func (x *RoleInfoRequest) ProtoReflect() protoreflect.Message

func (*RoleInfoRequest) Reset

func (x *RoleInfoRequest) Reset()

func (*RoleInfoRequest) String

func (x *RoleInfoRequest) String() string

func (*RoleInfoRequest) Validate

func (m *RoleInfoRequest) Validate() error

Validate checks the field values on RoleInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RoleInfoRequest) ValidateAll

func (m *RoleInfoRequest) ValidateAll() error

ValidateAll checks the field values on RoleInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleInfoRequestMultiError, or nil if none found.

type RoleInfoRequestMultiError

type RoleInfoRequestMultiError []error

RoleInfoRequestMultiError is an error wrapping multiple validation errors returned by RoleInfoRequest.ValidateAll() if the designated constraints aren't met.

func (RoleInfoRequestMultiError) AllErrors

func (m RoleInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RoleInfoRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RoleInfoRequestValidationError

type RoleInfoRequestValidationError struct {
	// contains filtered or unexported fields
}

RoleInfoRequestValidationError is the validation error returned by RoleInfoRequest.Validate if the designated constraints aren't met.

func (RoleInfoRequestValidationError) Cause

Cause function returns cause value.

func (RoleInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (RoleInfoRequestValidationError) ErrorName

func (e RoleInfoRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RoleInfoRequestValidationError) Field

Field function returns field value.

func (RoleInfoRequestValidationError) Key

Key function returns key value.

func (RoleInfoRequestValidationError) Reason

Reason function returns reason value.

type RoleInfoResponse

type RoleInfoResponse struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Memo      string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"`
	CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

角色信息响应

func (*RoleInfoResponse) Descriptor deprecated

func (*RoleInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use RoleInfoResponse.ProtoReflect.Descriptor instead.

func (*RoleInfoResponse) GetCreatedAt

func (x *RoleInfoResponse) GetCreatedAt() string

func (*RoleInfoResponse) GetId

func (x *RoleInfoResponse) GetId() uint64

func (*RoleInfoResponse) GetMemo

func (x *RoleInfoResponse) GetMemo() string

func (*RoleInfoResponse) GetName

func (x *RoleInfoResponse) GetName() string

func (*RoleInfoResponse) GetUpdatedAt

func (x *RoleInfoResponse) GetUpdatedAt() string

func (*RoleInfoResponse) ProtoMessage

func (*RoleInfoResponse) ProtoMessage()

func (*RoleInfoResponse) ProtoReflect

func (x *RoleInfoResponse) ProtoReflect() protoreflect.Message

func (*RoleInfoResponse) Reset

func (x *RoleInfoResponse) Reset()

func (*RoleInfoResponse) String

func (x *RoleInfoResponse) String() string

func (*RoleInfoResponse) Validate

func (m *RoleInfoResponse) Validate() error

Validate checks the field values on RoleInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RoleInfoResponse) ValidateAll

func (m *RoleInfoResponse) ValidateAll() error

ValidateAll checks the field values on RoleInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleInfoResponseMultiError, or nil if none found.

type RoleInfoResponseMultiError

type RoleInfoResponseMultiError []error

RoleInfoResponseMultiError is an error wrapping multiple validation errors returned by RoleInfoResponse.ValidateAll() if the designated constraints aren't met.

func (RoleInfoResponseMultiError) AllErrors

func (m RoleInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RoleInfoResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RoleInfoResponseValidationError

type RoleInfoResponseValidationError struct {
	// contains filtered or unexported fields
}

RoleInfoResponseValidationError is the validation error returned by RoleInfoResponse.Validate if the designated constraints aren't met.

func (RoleInfoResponseValidationError) Cause

Cause function returns cause value.

func (RoleInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (RoleInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (RoleInfoResponseValidationError) Field

Field function returns field value.

func (RoleInfoResponseValidationError) Key

Key function returns key value.

func (RoleInfoResponseValidationError) Reason

Reason function returns reason value.

type RoleListRequest

type RoleListRequest struct {
	Page     int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

角色列表请求

func (*RoleListRequest) Descriptor deprecated

func (*RoleListRequest) Descriptor() ([]byte, []int)

Deprecated: Use RoleListRequest.ProtoReflect.Descriptor instead.

func (*RoleListRequest) GetPage

func (x *RoleListRequest) GetPage() int64

func (*RoleListRequest) GetPageSize

func (x *RoleListRequest) GetPageSize() int64

func (*RoleListRequest) ProtoMessage

func (*RoleListRequest) ProtoMessage()

func (*RoleListRequest) ProtoReflect

func (x *RoleListRequest) ProtoReflect() protoreflect.Message

func (*RoleListRequest) Reset

func (x *RoleListRequest) Reset()

func (*RoleListRequest) String

func (x *RoleListRequest) String() string

func (*RoleListRequest) Validate

func (m *RoleListRequest) Validate() error

Validate checks the field values on RoleListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RoleListRequest) ValidateAll

func (m *RoleListRequest) ValidateAll() error

ValidateAll checks the field values on RoleListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleListRequestMultiError, or nil if none found.

type RoleListRequestMultiError

type RoleListRequestMultiError []error

RoleListRequestMultiError is an error wrapping multiple validation errors returned by RoleListRequest.ValidateAll() if the designated constraints aren't met.

func (RoleListRequestMultiError) AllErrors

func (m RoleListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RoleListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RoleListRequestValidationError

type RoleListRequestValidationError struct {
	// contains filtered or unexported fields
}

RoleListRequestValidationError is the validation error returned by RoleListRequest.Validate if the designated constraints aren't met.

func (RoleListRequestValidationError) Cause

Cause function returns cause value.

func (RoleListRequestValidationError) Error

Error satisfies the builtin error interface

func (RoleListRequestValidationError) ErrorName

func (e RoleListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RoleListRequestValidationError) Field

Field function returns field value.

func (RoleListRequestValidationError) Key

Key function returns key value.

func (RoleListRequestValidationError) Reason

Reason function returns reason value.

type RoleListResponse

type RoleListResponse struct {
	Total int64               `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Roles []*RoleInfoResponse `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

角色列表响应

func (*RoleListResponse) Descriptor deprecated

func (*RoleListResponse) Descriptor() ([]byte, []int)

Deprecated: Use RoleListResponse.ProtoReflect.Descriptor instead.

func (*RoleListResponse) GetRoles

func (x *RoleListResponse) GetRoles() []*RoleInfoResponse

func (*RoleListResponse) GetTotal

func (x *RoleListResponse) GetTotal() int64

func (*RoleListResponse) ProtoMessage

func (*RoleListResponse) ProtoMessage()

func (*RoleListResponse) ProtoReflect

func (x *RoleListResponse) ProtoReflect() protoreflect.Message

func (*RoleListResponse) Reset

func (x *RoleListResponse) Reset()

func (*RoleListResponse) String

func (x *RoleListResponse) String() string

func (*RoleListResponse) Validate

func (m *RoleListResponse) Validate() error

Validate checks the field values on RoleListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RoleListResponse) ValidateAll

func (m *RoleListResponse) ValidateAll() error

ValidateAll checks the field values on RoleListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleListResponseMultiError, or nil if none found.

type RoleListResponseMultiError

type RoleListResponseMultiError []error

RoleListResponseMultiError is an error wrapping multiple validation errors returned by RoleListResponse.ValidateAll() if the designated constraints aren't met.

func (RoleListResponseMultiError) AllErrors

func (m RoleListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RoleListResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RoleListResponseValidationError

type RoleListResponseValidationError struct {
	// contains filtered or unexported fields
}

RoleListResponseValidationError is the validation error returned by RoleListResponse.Validate if the designated constraints aren't met.

func (RoleListResponseValidationError) Cause

Cause function returns cause value.

func (RoleListResponseValidationError) Error

Error satisfies the builtin error interface

func (RoleListResponseValidationError) ErrorName

ErrorName returns error name.

func (RoleListResponseValidationError) Field

Field function returns field value.

func (RoleListResponseValidationError) Key

Key function returns key value.

func (RoleListResponseValidationError) Reason

Reason function returns reason value.

type SetUserRoleRequest

type SetUserRoleRequest struct {
	UserId  uint64   `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	RoleIds []uint64 `protobuf:"varint,2,rep,packed,name=roleIds,proto3" json:"roleIds,omitempty"`
	// contains filtered or unexported fields
}

SetUserRoleRequest 设置用户角色请求

func (*SetUserRoleRequest) Descriptor deprecated

func (*SetUserRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetUserRoleRequest.ProtoReflect.Descriptor instead.

func (*SetUserRoleRequest) GetRoleIds

func (x *SetUserRoleRequest) GetRoleIds() []uint64

func (*SetUserRoleRequest) GetUserId

func (x *SetUserRoleRequest) GetUserId() uint64

func (*SetUserRoleRequest) ProtoMessage

func (*SetUserRoleRequest) ProtoMessage()

func (*SetUserRoleRequest) ProtoReflect

func (x *SetUserRoleRequest) ProtoReflect() protoreflect.Message

func (*SetUserRoleRequest) Reset

func (x *SetUserRoleRequest) Reset()

func (*SetUserRoleRequest) String

func (x *SetUserRoleRequest) String() string

func (*SetUserRoleRequest) Validate

func (m *SetUserRoleRequest) Validate() error

Validate checks the field values on SetUserRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SetUserRoleRequest) ValidateAll

func (m *SetUserRoleRequest) ValidateAll() error

ValidateAll checks the field values on SetUserRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetUserRoleRequestMultiError, or nil if none found.

type SetUserRoleRequestMultiError

type SetUserRoleRequestMultiError []error

SetUserRoleRequestMultiError is an error wrapping multiple validation errors returned by SetUserRoleRequest.ValidateAll() if the designated constraints aren't met.

func (SetUserRoleRequestMultiError) AllErrors

func (m SetUserRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetUserRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SetUserRoleRequestValidationError

type SetUserRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

SetUserRoleRequestValidationError is the validation error returned by SetUserRoleRequest.Validate if the designated constraints aren't met.

func (SetUserRoleRequestValidationError) Cause

Cause function returns cause value.

func (SetUserRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (SetUserRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (SetUserRoleRequestValidationError) Field

Field function returns field value.

func (SetUserRoleRequestValidationError) Key

Key function returns key value.

func (SetUserRoleRequestValidationError) Reason

Reason function returns reason value.

type SetUserRoleResponse

type SetUserRoleResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

SetUserRoleResponse 设置用户角色响应

func (*SetUserRoleResponse) Descriptor deprecated

func (*SetUserRoleResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetUserRoleResponse.ProtoReflect.Descriptor instead.

func (*SetUserRoleResponse) GetSuccess

func (x *SetUserRoleResponse) GetSuccess() bool

func (*SetUserRoleResponse) ProtoMessage

func (*SetUserRoleResponse) ProtoMessage()

func (*SetUserRoleResponse) ProtoReflect

func (x *SetUserRoleResponse) ProtoReflect() protoreflect.Message

func (*SetUserRoleResponse) Reset

func (x *SetUserRoleResponse) Reset()

func (*SetUserRoleResponse) String

func (x *SetUserRoleResponse) String() string

func (*SetUserRoleResponse) Validate

func (m *SetUserRoleResponse) Validate() error

Validate checks the field values on SetUserRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SetUserRoleResponse) ValidateAll

func (m *SetUserRoleResponse) ValidateAll() error

ValidateAll checks the field values on SetUserRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetUserRoleResponseMultiError, or nil if none found.

type SetUserRoleResponseMultiError

type SetUserRoleResponseMultiError []error

SetUserRoleResponseMultiError is an error wrapping multiple validation errors returned by SetUserRoleResponse.ValidateAll() if the designated constraints aren't met.

func (SetUserRoleResponseMultiError) AllErrors

func (m SetUserRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetUserRoleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SetUserRoleResponseValidationError

type SetUserRoleResponseValidationError struct {
	// contains filtered or unexported fields
}

SetUserRoleResponseValidationError is the validation error returned by SetUserRoleResponse.Validate if the designated constraints aren't met.

func (SetUserRoleResponseValidationError) Cause

Cause function returns cause value.

func (SetUserRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (SetUserRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (SetUserRoleResponseValidationError) Field

Field function returns field value.

func (SetUserRoleResponseValidationError) Key

Key function returns key value.

func (SetUserRoleResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedChatAdminServer

type UnimplementedChatAdminServer struct {
}

UnimplementedChatAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedChatAdminServer) CreatePermission

func (UnimplementedChatAdminServer) CreateRole

func (UnimplementedChatAdminServer) CreateUser

func (UnimplementedChatAdminServer) DeletePermission

func (UnimplementedChatAdminServer) DeleteRole

func (UnimplementedChatAdminServer) DeleteUser

func (UnimplementedChatAdminServer) DeleteUserRole

func (UnimplementedChatAdminServer) Login

func (UnimplementedChatAdminServer) PermissionInfo

func (UnimplementedChatAdminServer) PermissionList

func (UnimplementedChatAdminServer) RoleInfo

func (UnimplementedChatAdminServer) RoleList

func (UnimplementedChatAdminServer) SetUserRole

func (UnimplementedChatAdminServer) UpdatePermission

func (UnimplementedChatAdminServer) UpdateRole

func (UnimplementedChatAdminServer) UpdateUser

func (UnimplementedChatAdminServer) UserInfo

func (UnimplementedChatAdminServer) UserList

type UnsafeChatAdminServer

type UnsafeChatAdminServer interface {
	// contains filtered or unexported methods
}

UnsafeChatAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChatAdminServer will result in compilation errors.

type UpdatePermissionRequest

type UpdatePermissionRequest struct {
	Id       uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Memo     string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"`
	Path     string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Method   string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
	ParentId uint64 `protobuf:"varint,6,opt,name=parentId,proto3" json:"parentId,omitempty"`
	// contains filtered or unexported fields
}

权限更新请求

func (*UpdatePermissionRequest) Descriptor deprecated

func (*UpdatePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePermissionRequest.ProtoReflect.Descriptor instead.

func (*UpdatePermissionRequest) GetId

func (x *UpdatePermissionRequest) GetId() uint64

func (*UpdatePermissionRequest) GetMemo

func (x *UpdatePermissionRequest) GetMemo() string

func (*UpdatePermissionRequest) GetMethod

func (x *UpdatePermissionRequest) GetMethod() string

func (*UpdatePermissionRequest) GetName

func (x *UpdatePermissionRequest) GetName() string

func (*UpdatePermissionRequest) GetParentId

func (x *UpdatePermissionRequest) GetParentId() uint64

func (*UpdatePermissionRequest) GetPath

func (x *UpdatePermissionRequest) GetPath() string

func (*UpdatePermissionRequest) ProtoMessage

func (*UpdatePermissionRequest) ProtoMessage()

func (*UpdatePermissionRequest) ProtoReflect

func (x *UpdatePermissionRequest) ProtoReflect() protoreflect.Message

func (*UpdatePermissionRequest) Reset

func (x *UpdatePermissionRequest) Reset()

func (*UpdatePermissionRequest) String

func (x *UpdatePermissionRequest) String() string

func (*UpdatePermissionRequest) Validate

func (m *UpdatePermissionRequest) Validate() error

Validate checks the field values on UpdatePermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdatePermissionRequest) ValidateAll

func (m *UpdatePermissionRequest) ValidateAll() error

ValidateAll checks the field values on UpdatePermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePermissionRequestMultiError, or nil if none found.

type UpdatePermissionRequestMultiError

type UpdatePermissionRequestMultiError []error

UpdatePermissionRequestMultiError is an error wrapping multiple validation errors returned by UpdatePermissionRequest.ValidateAll() if the designated constraints aren't met.

func (UpdatePermissionRequestMultiError) AllErrors

func (m UpdatePermissionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdatePermissionRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdatePermissionRequestValidationError

type UpdatePermissionRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdatePermissionRequestValidationError is the validation error returned by UpdatePermissionRequest.Validate if the designated constraints aren't met.

func (UpdatePermissionRequestValidationError) Cause

Cause function returns cause value.

func (UpdatePermissionRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdatePermissionRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdatePermissionRequestValidationError) Field

Field function returns field value.

func (UpdatePermissionRequestValidationError) Key

Key function returns key value.

func (UpdatePermissionRequestValidationError) Reason

Reason function returns reason value.

type UpdateRoleRequest

type UpdateRoleRequest struct {
	Id   uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"`
	// contains filtered or unexported fields
}

更新角色请求

func (*UpdateRoleRequest) Descriptor deprecated

func (*UpdateRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoleRequest) GetId

func (x *UpdateRoleRequest) GetId() uint64

func (*UpdateRoleRequest) GetMemo

func (x *UpdateRoleRequest) GetMemo() string

func (*UpdateRoleRequest) GetName

func (x *UpdateRoleRequest) GetName() string

func (*UpdateRoleRequest) ProtoMessage

func (*UpdateRoleRequest) ProtoMessage()

func (*UpdateRoleRequest) ProtoReflect

func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message

func (*UpdateRoleRequest) Reset

func (x *UpdateRoleRequest) Reset()

func (*UpdateRoleRequest) String

func (x *UpdateRoleRequest) String() string

func (*UpdateRoleRequest) Validate

func (m *UpdateRoleRequest) Validate() error

Validate checks the field values on UpdateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateRoleRequest) ValidateAll

func (m *UpdateRoleRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRoleRequestMultiError, or nil if none found.

type UpdateRoleRequestMultiError

type UpdateRoleRequestMultiError []error

UpdateRoleRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateRoleRequestMultiError) AllErrors

func (m UpdateRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRoleRequestValidationError

type UpdateRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateRoleRequestValidationError is the validation error returned by UpdateRoleRequest.Validate if the designated constraints aren't met.

func (UpdateRoleRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleRequestValidationError) Field

Field function returns field value.

func (UpdateRoleRequestValidationError) Key

Key function returns key value.

func (UpdateRoleRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserRequest

type UpdateUserRequest struct {
	Id       uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Email    string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

更新用户请求

func (*UpdateUserRequest) Descriptor deprecated

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetEmail

func (x *UpdateUserRequest) GetEmail() string

func (*UpdateUserRequest) GetId

func (x *UpdateUserRequest) GetId() uint64

func (*UpdateUserRequest) GetName

func (x *UpdateUserRequest) GetName() string

func (*UpdateUserRequest) GetPassword

func (x *UpdateUserRequest) GetPassword() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

func (*UpdateUserRequest) Validate

func (m *UpdateUserRequest) Validate() error

Validate checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserRequest) ValidateAll

func (m *UpdateUserRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserRequestMultiError, or nil if none found.

type UpdateUserRequestMultiError

type UpdateUserRequestMultiError []error

UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserRequestMultiError) AllErrors

func (m UpdateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserRequestValidationError

type UpdateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.

func (UpdateUserRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserRequestValidationError) Field

Field function returns field value.

func (UpdateUserRequestValidationError) Key

Key function returns key value.

func (UpdateUserRequestValidationError) Reason

Reason function returns reason value.

type UserInfoRequest

type UserInfoRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

用户信息请求

func (*UserInfoRequest) Descriptor deprecated

func (*UserInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserInfoRequest.ProtoReflect.Descriptor instead.

func (*UserInfoRequest) GetId

func (x *UserInfoRequest) GetId() uint64

func (*UserInfoRequest) ProtoMessage

func (*UserInfoRequest) ProtoMessage()

func (*UserInfoRequest) ProtoReflect

func (x *UserInfoRequest) ProtoReflect() protoreflect.Message

func (*UserInfoRequest) Reset

func (x *UserInfoRequest) Reset()

func (*UserInfoRequest) String

func (x *UserInfoRequest) String() string

func (*UserInfoRequest) Validate

func (m *UserInfoRequest) Validate() error

Validate checks the field values on UserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserInfoRequest) ValidateAll

func (m *UserInfoRequest) ValidateAll() error

ValidateAll checks the field values on UserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserInfoRequestMultiError, or nil if none found.

type UserInfoRequestMultiError

type UserInfoRequestMultiError []error

UserInfoRequestMultiError is an error wrapping multiple validation errors returned by UserInfoRequest.ValidateAll() if the designated constraints aren't met.

func (UserInfoRequestMultiError) AllErrors

func (m UserInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserInfoRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserInfoRequestValidationError

type UserInfoRequestValidationError struct {
	// contains filtered or unexported fields
}

UserInfoRequestValidationError is the validation error returned by UserInfoRequest.Validate if the designated constraints aren't met.

func (UserInfoRequestValidationError) Cause

Cause function returns cause value.

func (UserInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (UserInfoRequestValidationError) ErrorName

func (e UserInfoRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UserInfoRequestValidationError) Field

Field function returns field value.

func (UserInfoRequestValidationError) Key

Key function returns key value.

func (UserInfoRequestValidationError) Reason

Reason function returns reason value.

type UserInfoResponse

type UserInfoResponse struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Email     string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

用户信息响应

func (*UserInfoResponse) Descriptor deprecated

func (*UserInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use UserInfoResponse.ProtoReflect.Descriptor instead.

func (*UserInfoResponse) GetCreatedAt

func (x *UserInfoResponse) GetCreatedAt() string

func (*UserInfoResponse) GetEmail

func (x *UserInfoResponse) GetEmail() string

func (*UserInfoResponse) GetId

func (x *UserInfoResponse) GetId() uint64

func (*UserInfoResponse) GetName

func (x *UserInfoResponse) GetName() string

func (*UserInfoResponse) GetUpdatedAt

func (x *UserInfoResponse) GetUpdatedAt() string

func (*UserInfoResponse) ProtoMessage

func (*UserInfoResponse) ProtoMessage()

func (*UserInfoResponse) ProtoReflect

func (x *UserInfoResponse) ProtoReflect() protoreflect.Message

func (*UserInfoResponse) Reset

func (x *UserInfoResponse) Reset()

func (*UserInfoResponse) String

func (x *UserInfoResponse) String() string

func (*UserInfoResponse) Validate

func (m *UserInfoResponse) Validate() error

Validate checks the field values on UserInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserInfoResponse) ValidateAll

func (m *UserInfoResponse) ValidateAll() error

ValidateAll checks the field values on UserInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserInfoResponseMultiError, or nil if none found.

type UserInfoResponseMultiError

type UserInfoResponseMultiError []error

UserInfoResponseMultiError is an error wrapping multiple validation errors returned by UserInfoResponse.ValidateAll() if the designated constraints aren't met.

func (UserInfoResponseMultiError) AllErrors

func (m UserInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserInfoResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserInfoResponseValidationError

type UserInfoResponseValidationError struct {
	// contains filtered or unexported fields
}

UserInfoResponseValidationError is the validation error returned by UserInfoResponse.Validate if the designated constraints aren't met.

func (UserInfoResponseValidationError) Cause

Cause function returns cause value.

func (UserInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (UserInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (UserInfoResponseValidationError) Field

Field function returns field value.

func (UserInfoResponseValidationError) Key

Key function returns key value.

func (UserInfoResponseValidationError) Reason

Reason function returns reason value.

type UserListRequest

type UserListRequest struct {
	Page     int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

用户列表请求

func (*UserListRequest) Descriptor deprecated

func (*UserListRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserListRequest.ProtoReflect.Descriptor instead.

func (*UserListRequest) GetPage

func (x *UserListRequest) GetPage() int64

func (*UserListRequest) GetPageSize

func (x *UserListRequest) GetPageSize() int64

func (*UserListRequest) ProtoMessage

func (*UserListRequest) ProtoMessage()

func (*UserListRequest) ProtoReflect

func (x *UserListRequest) ProtoReflect() protoreflect.Message

func (*UserListRequest) Reset

func (x *UserListRequest) Reset()

func (*UserListRequest) String

func (x *UserListRequest) String() string

func (*UserListRequest) Validate

func (m *UserListRequest) Validate() error

Validate checks the field values on UserListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserListRequest) ValidateAll

func (m *UserListRequest) ValidateAll() error

ValidateAll checks the field values on UserListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserListRequestMultiError, or nil if none found.

type UserListRequestMultiError

type UserListRequestMultiError []error

UserListRequestMultiError is an error wrapping multiple validation errors returned by UserListRequest.ValidateAll() if the designated constraints aren't met.

func (UserListRequestMultiError) AllErrors

func (m UserListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserListRequestValidationError

type UserListRequestValidationError struct {
	// contains filtered or unexported fields
}

UserListRequestValidationError is the validation error returned by UserListRequest.Validate if the designated constraints aren't met.

func (UserListRequestValidationError) Cause

Cause function returns cause value.

func (UserListRequestValidationError) Error

Error satisfies the builtin error interface

func (UserListRequestValidationError) ErrorName

func (e UserListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UserListRequestValidationError) Field

Field function returns field value.

func (UserListRequestValidationError) Key

Key function returns key value.

func (UserListRequestValidationError) Reason

Reason function returns reason value.

type UserListResponse

type UserListResponse struct {
	Total int64               `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Users []*UserInfoResponse `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

用户列表响应

func (*UserListResponse) Descriptor deprecated

func (*UserListResponse) Descriptor() ([]byte, []int)

Deprecated: Use UserListResponse.ProtoReflect.Descriptor instead.

func (*UserListResponse) GetTotal

func (x *UserListResponse) GetTotal() int64

func (*UserListResponse) GetUsers

func (x *UserListResponse) GetUsers() []*UserInfoResponse

func (*UserListResponse) ProtoMessage

func (*UserListResponse) ProtoMessage()

func (*UserListResponse) ProtoReflect

func (x *UserListResponse) ProtoReflect() protoreflect.Message

func (*UserListResponse) Reset

func (x *UserListResponse) Reset()

func (*UserListResponse) String

func (x *UserListResponse) String() string

func (*UserListResponse) Validate

func (m *UserListResponse) Validate() error

Validate checks the field values on UserListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserListResponse) ValidateAll

func (m *UserListResponse) ValidateAll() error

ValidateAll checks the field values on UserListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserListResponseMultiError, or nil if none found.

type UserListResponseMultiError

type UserListResponseMultiError []error

UserListResponseMultiError is an error wrapping multiple validation errors returned by UserListResponse.ValidateAll() if the designated constraints aren't met.

func (UserListResponseMultiError) AllErrors

func (m UserListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserListResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserListResponseValidationError

type UserListResponseValidationError struct {
	// contains filtered or unexported fields
}

UserListResponseValidationError is the validation error returned by UserListResponse.Validate if the designated constraints aren't met.

func (UserListResponseValidationError) Cause

Cause function returns cause value.

func (UserListResponseValidationError) Error

Error satisfies the builtin error interface

func (UserListResponseValidationError) ErrorName

ErrorName returns error name.

func (UserListResponseValidationError) Field

Field function returns field value.

func (UserListResponseValidationError) Key

Key function returns key value.

func (UserListResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL