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: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	User_CreateUser_FullMethodName       = "/api.user.v1.User/CreateUser"
	User_UpdateUser_FullMethodName       = "/api.user.v1.User/UpdateUser"
	User_DeleteUser_FullMethodName       = "/api.user.v1.User/DeleteUser"
	User_GetUser_FullMethodName          = "/api.user.v1.User/GetUser"
	User_ListUser_FullMethodName         = "/api.user.v1.User/ListUser"
	User_CreateRole_FullMethodName       = "/api.user.v1.User/CreateRole"
	User_UpdateRole_FullMethodName       = "/api.user.v1.User/UpdateRole"
	User_DeleteRole_FullMethodName       = "/api.user.v1.User/DeleteRole"
	User_GetRole_FullMethodName          = "/api.user.v1.User/GetRole"
	User_ListRole_FullMethodName         = "/api.user.v1.User/ListRole"
	User_CreatePermission_FullMethodName = "/api.user.v1.User/CreatePermission"
	User_UpdatePermission_FullMethodName = "/api.user.v1.User/UpdatePermission"
	User_DeletePermission_FullMethodName = "/api.user.v1.User/DeletePermission"
	User_GetPermission_FullMethodName    = "/api.user.v1.User/GetPermission"
	User_ListPermission_FullMethodName   = "/api.user.v1.User/ListPermission"
	User_SetUserRole_FullMethodName      = "/api.user.v1.User/SetUserRole"
	User_DeleteUserRole_FullMethodName   = "/api.user.v1.User/DeleteUserRole"
	User_CreateToken_FullMethodName      = "/api.user.v1.User/CreateToken"
)

Variables

View Source
var File_v1_user_proto protoreflect.FileDescriptor
View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.user.v1.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _User_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _User_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _User_DeleteUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _User_GetUser_Handler,
		},
		{
			MethodName: "ListUser",
			Handler:    _User_ListUser_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _User_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _User_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _User_DeleteRole_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _User_GetRole_Handler,
		},
		{
			MethodName: "ListRole",
			Handler:    _User_ListRole_Handler,
		},
		{
			MethodName: "CreatePermission",
			Handler:    _User_CreatePermission_Handler,
		},
		{
			MethodName: "UpdatePermission",
			Handler:    _User_UpdatePermission_Handler,
		},
		{
			MethodName: "DeletePermission",
			Handler:    _User_DeletePermission_Handler,
		},
		{
			MethodName: "GetPermission",
			Handler:    _User_GetPermission_Handler,
		},
		{
			MethodName: "ListPermission",
			Handler:    _User_ListPermission_Handler,
		},
		{
			MethodName: "SetUserRole",
			Handler:    _User_SetUserRole_Handler,
		},
		{
			MethodName: "DeleteUserRole",
			Handler:    _User_DeleteUserRole_Handler,
		},
		{
			MethodName: "CreateToken",
			Handler:    _User_CreateToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/user.proto",
}

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

Functions

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

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
}

CreatePermissionRequest 创建权限请求

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
}

CreateRoleRequest 创建角色请求

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 CreateTokenRequest

type CreateTokenRequest 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
}

CreateTokenRequest 创建TOKEN请求

func (*CreateTokenRequest) Descriptor deprecated

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

Deprecated: Use CreateTokenRequest.ProtoReflect.Descriptor instead.

func (*CreateTokenRequest) GetEmail

func (x *CreateTokenRequest) GetEmail() string

func (*CreateTokenRequest) GetPassword

func (x *CreateTokenRequest) GetPassword() string

func (*CreateTokenRequest) ProtoMessage

func (*CreateTokenRequest) ProtoMessage()

func (*CreateTokenRequest) ProtoReflect

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

func (*CreateTokenRequest) Reset

func (x *CreateTokenRequest) Reset()

func (*CreateTokenRequest) String

func (x *CreateTokenRequest) String() string

func (*CreateTokenRequest) Validate

func (m *CreateTokenRequest) Validate() error

Validate checks the field values on CreateTokenRequest 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 (*CreateTokenRequest) ValidateAll

func (m *CreateTokenRequest) ValidateAll() error

ValidateAll checks the field values on CreateTokenRequest 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 CreateTokenRequestMultiError, or nil if none found.

type CreateTokenRequestMultiError

type CreateTokenRequestMultiError []error

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

func (CreateTokenRequestMultiError) AllErrors

func (m CreateTokenRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTokenRequestMultiError) Error

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

type CreateTokenRequestValidationError

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

CreateTokenRequestValidationError is the validation error returned by CreateTokenRequest.Validate if the designated constraints aren't met.

func (CreateTokenRequestValidationError) Cause

Cause function returns cause value.

func (CreateTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTokenRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTokenRequestValidationError) Field

Field function returns field value.

func (CreateTokenRequestValidationError) Key

Key function returns key value.

func (CreateTokenRequestValidationError) Reason

Reason function returns reason value.

type CreateTokenResponse

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

CreateTokenResponse 创建TOKEN响应

func (*CreateTokenResponse) Descriptor deprecated

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

Deprecated: Use CreateTokenResponse.ProtoReflect.Descriptor instead.

func (*CreateTokenResponse) GetToken

func (x *CreateTokenResponse) GetToken() string

func (*CreateTokenResponse) ProtoMessage

func (*CreateTokenResponse) ProtoMessage()

func (*CreateTokenResponse) ProtoReflect

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

func (*CreateTokenResponse) Reset

func (x *CreateTokenResponse) Reset()

func (*CreateTokenResponse) String

func (x *CreateTokenResponse) String() string

func (*CreateTokenResponse) Validate

func (m *CreateTokenResponse) Validate() error

Validate checks the field values on CreateTokenResponse 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 (*CreateTokenResponse) ValidateAll

func (m *CreateTokenResponse) ValidateAll() error

ValidateAll checks the field values on CreateTokenResponse 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 CreateTokenResponseMultiError, or nil if none found.

type CreateTokenResponseMultiError

type CreateTokenResponseMultiError []error

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

func (CreateTokenResponseMultiError) AllErrors

func (m CreateTokenResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTokenResponseMultiError) Error

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

type CreateTokenResponseValidationError

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

CreateTokenResponseValidationError is the validation error returned by CreateTokenResponse.Validate if the designated constraints aren't met.

func (CreateTokenResponseValidationError) Cause

Cause function returns cause value.

func (CreateTokenResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateTokenResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateTokenResponseValidationError) Field

Field function returns field value.

func (CreateTokenResponseValidationError) Key

Key function returns key value.

func (CreateTokenResponseValidationError) 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
}

CreateUserRequest 创建用户请求

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
}

DeletePermissionRequest 删除权限请求

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
}

DeleteRoleRequest 删除角色请求

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
}

DeleteUserRequest 删除用户请求

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 {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserRoleResponse 删除用户角色响应

func (*DeleteUserRoleResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserRoleResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserRoleResponse) GetOk

func (x *DeleteUserRoleResponse) GetOk() 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 GetPermissionRequest

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

GetPermissionRequest 获取权限请求

func (*GetPermissionRequest) Descriptor deprecated

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

Deprecated: Use GetPermissionRequest.ProtoReflect.Descriptor instead.

func (*GetPermissionRequest) GetId

func (x *GetPermissionRequest) GetId() uint64

func (*GetPermissionRequest) ProtoMessage

func (*GetPermissionRequest) ProtoMessage()

func (*GetPermissionRequest) ProtoReflect

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

func (*GetPermissionRequest) Reset

func (x *GetPermissionRequest) Reset()

func (*GetPermissionRequest) String

func (x *GetPermissionRequest) String() string

func (*GetPermissionRequest) Validate

func (m *GetPermissionRequest) Validate() error

Validate checks the field values on GetPermissionRequest 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 (*GetPermissionRequest) ValidateAll

func (m *GetPermissionRequest) ValidateAll() error

ValidateAll checks the field values on GetPermissionRequest 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 GetPermissionRequestMultiError, or nil if none found.

type GetPermissionRequestMultiError

type GetPermissionRequestMultiError []error

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

func (GetPermissionRequestMultiError) AllErrors

func (m GetPermissionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetPermissionRequestMultiError) Error

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

type GetPermissionRequestValidationError

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

GetPermissionRequestValidationError is the validation error returned by GetPermissionRequest.Validate if the designated constraints aren't met.

func (GetPermissionRequestValidationError) Cause

Cause function returns cause value.

func (GetPermissionRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPermissionRequestValidationError) ErrorName

ErrorName returns error name.

func (GetPermissionRequestValidationError) Field

Field function returns field value.

func (GetPermissionRequestValidationError) Key

Key function returns key value.

func (GetPermissionRequestValidationError) Reason

Reason function returns reason value.

type GetRoleRequest

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

GetRoleRequest 获取角色请求

func (*GetRoleRequest) Descriptor deprecated

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

Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.

func (*GetRoleRequest) GetId

func (x *GetRoleRequest) GetId() uint64

func (*GetRoleRequest) ProtoMessage

func (*GetRoleRequest) ProtoMessage()

func (*GetRoleRequest) ProtoReflect

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

func (*GetRoleRequest) Reset

func (x *GetRoleRequest) Reset()

func (*GetRoleRequest) String

func (x *GetRoleRequest) String() string

func (*GetRoleRequest) Validate

func (m *GetRoleRequest) Validate() error

Validate checks the field values on GetRoleRequest 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 (*GetRoleRequest) ValidateAll

func (m *GetRoleRequest) ValidateAll() error

ValidateAll checks the field values on GetRoleRequest 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 GetRoleRequestMultiError, or nil if none found.

type GetRoleRequestMultiError

type GetRoleRequestMultiError []error

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

func (GetRoleRequestMultiError) AllErrors

func (m GetRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleRequestMultiError) Error

func (m GetRoleRequestMultiError) Error() string

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

type GetRoleRequestValidationError

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

GetRoleRequestValidationError is the validation error returned by GetRoleRequest.Validate if the designated constraints aren't met.

func (GetRoleRequestValidationError) Cause

Cause function returns cause value.

func (GetRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRoleRequestValidationError) ErrorName

func (e GetRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleRequestValidationError) Field

Field function returns field value.

func (GetRoleRequestValidationError) Key

Key function returns key value.

func (GetRoleRequestValidationError) Reason

Reason function returns reason value.

type GetUserRequest

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

GetUserRequest 获取用户请求

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() uint64

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() error

Validate checks the field values on GetUserRequest 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 (*GetUserRequest) ValidateAll

func (m *GetUserRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRequest 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 GetUserRequestMultiError, or nil if none found.

type GetUserRequestMultiError

type GetUserRequestMultiError []error

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

func (GetUserRequestMultiError) AllErrors

func (m GetUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRequestMultiError) Error

func (m GetUserRequestMultiError) Error() string

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

type GetUserRequestValidationError

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

GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.

func (GetUserRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

Reason function returns reason value.

type GetUserRoleRequest

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

GetUserRoleRequest 获取用户角色请求

func (*GetUserRoleRequest) Descriptor deprecated

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

Deprecated: Use GetUserRoleRequest.ProtoReflect.Descriptor instead.

func (*GetUserRoleRequest) GetUserId

func (x *GetUserRoleRequest) GetUserId() uint64

func (*GetUserRoleRequest) ProtoMessage

func (*GetUserRoleRequest) ProtoMessage()

func (*GetUserRoleRequest) ProtoReflect

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

func (*GetUserRoleRequest) Reset

func (x *GetUserRoleRequest) Reset()

func (*GetUserRoleRequest) String

func (x *GetUserRoleRequest) String() string

func (*GetUserRoleRequest) Validate

func (m *GetUserRoleRequest) Validate() error

Validate checks the field values on GetUserRoleRequest 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 (*GetUserRoleRequest) ValidateAll

func (m *GetUserRoleRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRoleRequest 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 GetUserRoleRequestMultiError, or nil if none found.

type GetUserRoleRequestMultiError

type GetUserRoleRequestMultiError []error

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

func (GetUserRoleRequestMultiError) AllErrors

func (m GetUserRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRoleRequestMultiError) Error

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

type GetUserRoleRequestValidationError

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

GetUserRoleRequestValidationError is the validation error returned by GetUserRoleRequest.Validate if the designated constraints aren't met.

func (GetUserRoleRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserRoleRequestValidationError) Field

Field function returns field value.

func (GetUserRoleRequestValidationError) Key

Key function returns key value.

func (GetUserRoleRequestValidationError) Reason

Reason function returns reason value.

type ListPermissionRequest

type ListPermissionRequest 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
}

ListPermissionRequest 获取权限列表请求

func (*ListPermissionRequest) Descriptor deprecated

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

Deprecated: Use ListPermissionRequest.ProtoReflect.Descriptor instead.

func (*ListPermissionRequest) GetPage

func (x *ListPermissionRequest) GetPage() int64

func (*ListPermissionRequest) GetPageSize

func (x *ListPermissionRequest) GetPageSize() int64

func (*ListPermissionRequest) ProtoMessage

func (*ListPermissionRequest) ProtoMessage()

func (*ListPermissionRequest) ProtoReflect

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

func (*ListPermissionRequest) Reset

func (x *ListPermissionRequest) Reset()

func (*ListPermissionRequest) String

func (x *ListPermissionRequest) String() string

func (*ListPermissionRequest) Validate

func (m *ListPermissionRequest) Validate() error

Validate checks the field values on ListPermissionRequest 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 (*ListPermissionRequest) ValidateAll

func (m *ListPermissionRequest) ValidateAll() error

ValidateAll checks the field values on ListPermissionRequest 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 ListPermissionRequestMultiError, or nil if none found.

type ListPermissionRequestMultiError

type ListPermissionRequestMultiError []error

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

func (ListPermissionRequestMultiError) AllErrors

func (m ListPermissionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListPermissionRequestMultiError) Error

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

type ListPermissionRequestValidationError

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

ListPermissionRequestValidationError is the validation error returned by ListPermissionRequest.Validate if the designated constraints aren't met.

func (ListPermissionRequestValidationError) Cause

Cause function returns cause value.

func (ListPermissionRequestValidationError) Error

Error satisfies the builtin error interface

func (ListPermissionRequestValidationError) ErrorName

ErrorName returns error name.

func (ListPermissionRequestValidationError) Field

Field function returns field value.

func (ListPermissionRequestValidationError) Key

Key function returns key value.

func (ListPermissionRequestValidationError) Reason

Reason function returns reason value.

type ListPermissionResponse

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

ListPermissionResponse 获取权限列表响应

func (*ListPermissionResponse) Descriptor deprecated

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

Deprecated: Use ListPermissionResponse.ProtoReflect.Descriptor instead.

func (*ListPermissionResponse) GetPermissions

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

func (*ListPermissionResponse) GetTotal

func (x *ListPermissionResponse) GetTotal() int64

func (*ListPermissionResponse) ProtoMessage

func (*ListPermissionResponse) ProtoMessage()

func (*ListPermissionResponse) ProtoReflect

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

func (*ListPermissionResponse) Reset

func (x *ListPermissionResponse) Reset()

func (*ListPermissionResponse) String

func (x *ListPermissionResponse) String() string

func (*ListPermissionResponse) Validate

func (m *ListPermissionResponse) Validate() error

Validate checks the field values on ListPermissionResponse 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 (*ListPermissionResponse) ValidateAll

func (m *ListPermissionResponse) ValidateAll() error

ValidateAll checks the field values on ListPermissionResponse 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 ListPermissionResponseMultiError, or nil if none found.

type ListPermissionResponseMultiError

type ListPermissionResponseMultiError []error

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

func (ListPermissionResponseMultiError) AllErrors

func (m ListPermissionResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListPermissionResponseMultiError) Error

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

type ListPermissionResponseValidationError

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

ListPermissionResponseValidationError is the validation error returned by ListPermissionResponse.Validate if the designated constraints aren't met.

func (ListPermissionResponseValidationError) Cause

Cause function returns cause value.

func (ListPermissionResponseValidationError) Error

Error satisfies the builtin error interface

func (ListPermissionResponseValidationError) ErrorName

ErrorName returns error name.

func (ListPermissionResponseValidationError) Field

Field function returns field value.

func (ListPermissionResponseValidationError) Key

Key function returns key value.

func (ListPermissionResponseValidationError) Reason

Reason function returns reason value.

type ListRoleRequest

type ListRoleRequest 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
}

ListRoleRequest 获取角色列表请求

func (*ListRoleRequest) Descriptor deprecated

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

Deprecated: Use ListRoleRequest.ProtoReflect.Descriptor instead.

func (*ListRoleRequest) GetPage

func (x *ListRoleRequest) GetPage() int64

func (*ListRoleRequest) GetPageSize

func (x *ListRoleRequest) GetPageSize() int64

func (*ListRoleRequest) ProtoMessage

func (*ListRoleRequest) ProtoMessage()

func (*ListRoleRequest) ProtoReflect

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

func (*ListRoleRequest) Reset

func (x *ListRoleRequest) Reset()

func (*ListRoleRequest) String

func (x *ListRoleRequest) String() string

func (*ListRoleRequest) Validate

func (m *ListRoleRequest) Validate() error

Validate checks the field values on ListRoleRequest 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 (*ListRoleRequest) ValidateAll

func (m *ListRoleRequest) ValidateAll() error

ValidateAll checks the field values on ListRoleRequest 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 ListRoleRequestMultiError, or nil if none found.

type ListRoleRequestMultiError

type ListRoleRequestMultiError []error

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

func (ListRoleRequestMultiError) AllErrors

func (m ListRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoleRequestMultiError) Error

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

type ListRoleRequestValidationError

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

ListRoleRequestValidationError is the validation error returned by ListRoleRequest.Validate if the designated constraints aren't met.

func (ListRoleRequestValidationError) Cause

Cause function returns cause value.

func (ListRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRoleRequestValidationError) ErrorName

func (e ListRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRoleRequestValidationError) Field

Field function returns field value.

func (ListRoleRequestValidationError) Key

Key function returns key value.

func (ListRoleRequestValidationError) Reason

Reason function returns reason value.

type ListRoleResponse

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

ListRoleResponse 获取角色列表响应

func (*ListRoleResponse) Descriptor deprecated

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

Deprecated: Use ListRoleResponse.ProtoReflect.Descriptor instead.

func (*ListRoleResponse) GetRoles

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

func (*ListRoleResponse) GetTotal

func (x *ListRoleResponse) GetTotal() int64

func (*ListRoleResponse) ProtoMessage

func (*ListRoleResponse) ProtoMessage()

func (*ListRoleResponse) ProtoReflect

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

func (*ListRoleResponse) Reset

func (x *ListRoleResponse) Reset()

func (*ListRoleResponse) String

func (x *ListRoleResponse) String() string

func (*ListRoleResponse) Validate

func (m *ListRoleResponse) Validate() error

Validate checks the field values on ListRoleResponse 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 (*ListRoleResponse) ValidateAll

func (m *ListRoleResponse) ValidateAll() error

ValidateAll checks the field values on ListRoleResponse 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 ListRoleResponseMultiError, or nil if none found.

type ListRoleResponseMultiError

type ListRoleResponseMultiError []error

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

func (ListRoleResponseMultiError) AllErrors

func (m ListRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoleResponseMultiError) Error

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

type ListRoleResponseValidationError

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

ListRoleResponseValidationError is the validation error returned by ListRoleResponse.Validate if the designated constraints aren't met.

func (ListRoleResponseValidationError) Cause

Cause function returns cause value.

func (ListRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (ListRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (ListRoleResponseValidationError) Field

Field function returns field value.

func (ListRoleResponseValidationError) Key

Key function returns key value.

func (ListRoleResponseValidationError) Reason

Reason function returns reason value.

type ListUserRequest

type ListUserRequest 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
}

ListUserRequest 获取用户列表请求

func (*ListUserRequest) Descriptor deprecated

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

Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.

func (*ListUserRequest) GetPage

func (x *ListUserRequest) GetPage() int64

func (*ListUserRequest) GetPageSize

func (x *ListUserRequest) GetPageSize() int64

func (*ListUserRequest) ProtoMessage

func (*ListUserRequest) ProtoMessage()

func (*ListUserRequest) ProtoReflect

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

func (*ListUserRequest) Reset

func (x *ListUserRequest) Reset()

func (*ListUserRequest) String

func (x *ListUserRequest) String() string

func (*ListUserRequest) Validate

func (m *ListUserRequest) Validate() error

Validate checks the field values on ListUserRequest 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 (*ListUserRequest) ValidateAll

func (m *ListUserRequest) ValidateAll() error

ValidateAll checks the field values on ListUserRequest 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 ListUserRequestMultiError, or nil if none found.

type ListUserRequestMultiError

type ListUserRequestMultiError []error

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

func (ListUserRequestMultiError) AllErrors

func (m ListUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserRequestMultiError) Error

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

type ListUserRequestValidationError

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

ListUserRequestValidationError is the validation error returned by ListUserRequest.Validate if the designated constraints aren't met.

func (ListUserRequestValidationError) Cause

Cause function returns cause value.

func (ListUserRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserRequestValidationError) ErrorName

func (e ListUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListUserRequestValidationError) Field

Field function returns field value.

func (ListUserRequestValidationError) Key

Key function returns key value.

func (ListUserRequestValidationError) Reason

Reason function returns reason value.

type ListUserResponse

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

ListUserReply 获取用户列表响应

func (*ListUserResponse) Descriptor deprecated

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

Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead.

func (*ListUserResponse) GetTotal

func (x *ListUserResponse) GetTotal() int64

func (*ListUserResponse) GetUsers

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

func (*ListUserResponse) ProtoMessage

func (*ListUserResponse) ProtoMessage()

func (*ListUserResponse) ProtoReflect

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

func (*ListUserResponse) Reset

func (x *ListUserResponse) Reset()

func (*ListUserResponse) String

func (x *ListUserResponse) String() string

func (*ListUserResponse) Validate

func (m *ListUserResponse) Validate() error

Validate checks the field values on ListUserResponse 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 (*ListUserResponse) ValidateAll

func (m *ListUserResponse) ValidateAll() error

ValidateAll checks the field values on ListUserResponse 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 ListUserResponseMultiError, or nil if none found.

type ListUserResponseMultiError

type ListUserResponseMultiError []error

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

func (ListUserResponseMultiError) AllErrors

func (m ListUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserResponseMultiError) Error

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

type ListUserResponseValidationError

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

ListUserResponseValidationError is the validation error returned by ListUserResponse.Validate if the designated constraints aren't met.

func (ListUserResponseValidationError) Cause

Cause function returns cause value.

func (ListUserResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUserResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUserResponseValidationError) Field

Field function returns field value.

func (ListUserResponseValidationError) Key

Key function returns key value.

func (ListUserResponseValidationError) 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
}

Permission 权限信息

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 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
}

Role 角色信息

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 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 {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

SetUserRoleResponse 设置用户角色响应

func (*SetUserRoleResponse) Descriptor deprecated

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

Deprecated: Use SetUserRoleResponse.ProtoReflect.Descriptor instead.

func (*SetUserRoleResponse) GetOk

func (x *SetUserRoleResponse) GetOk() 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 UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) CreatePermission

func (UnimplementedUserServer) CreateRole

func (UnimplementedUserServer) CreateToken

func (UnimplementedUserServer) CreateUser

func (UnimplementedUserServer) DeletePermission

func (UnimplementedUserServer) DeleteRole

func (UnimplementedUserServer) DeleteUser

func (UnimplementedUserServer) DeleteUserRole

func (UnimplementedUserServer) GetPermission

func (UnimplementedUserServer) GetRole

func (UnimplementedUserServer) GetUser

func (UnimplementedUserServer) ListPermission

func (UnimplementedUserServer) ListRole

func (UnimplementedUserServer) ListUser

func (UnimplementedUserServer) SetUserRole

func (UnimplementedUserServer) UpdatePermission

func (UnimplementedUserServer) UpdateRole

func (UnimplementedUserServer) UpdateUser

type UnsafeUserServer

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

UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer 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
}

UpdatePermissionRequest 更新权限请求

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
}

UpdateRoleRequest 更新角色请求

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
}

UpdateUserRequest 更新用户请求

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 UserClient

type UserClient interface {
	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)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserInfoResponse, error)
	ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, 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)
	GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*RoleInfoResponse, error)
	ListRole(ctx context.Context, in *ListRoleRequest, opts ...grpc.CallOption) (*ListRoleResponse, 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)
	GetPermission(ctx context.Context, in *GetPermissionRequest, opts ...grpc.CallOption) (*PermissionInfoResponse, error)
	ListPermission(ctx context.Context, in *ListPermissionRequest, opts ...grpc.CallOption) (*ListPermissionResponse, error)
	SetUserRole(ctx context.Context, in *SetUserRoleRequest, opts ...grpc.CallOption) (*SetUserRoleResponse, error)
	DeleteUserRole(ctx context.Context, in *DeleteUserRoleRequest, opts ...grpc.CallOption) (*DeleteUserRoleResponse, error)
	CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error)
}

UserClient is the client API for User 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 NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserInfoResponse

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

UserInfoResponse 用户信息

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) GetPassword

func (x *UserInfoResponse) GetPassword() 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 UserRoleResponse

type UserRoleResponse struct {
	Roles []*RoleInfoResponse `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

UserRoleResponse 用户角色响应

func (*UserRoleResponse) Descriptor deprecated

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

Deprecated: Use UserRoleResponse.ProtoReflect.Descriptor instead.

func (*UserRoleResponse) GetRoles

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

func (*UserRoleResponse) ProtoMessage

func (*UserRoleResponse) ProtoMessage()

func (*UserRoleResponse) ProtoReflect

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

func (*UserRoleResponse) Reset

func (x *UserRoleResponse) Reset()

func (*UserRoleResponse) String

func (x *UserRoleResponse) String() string

func (*UserRoleResponse) Validate

func (m *UserRoleResponse) Validate() error

Validate checks the field values on UserRoleResponse 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 (*UserRoleResponse) ValidateAll

func (m *UserRoleResponse) ValidateAll() error

ValidateAll checks the field values on UserRoleResponse 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 UserRoleResponseMultiError, or nil if none found.

type UserRoleResponseMultiError

type UserRoleResponseMultiError []error

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

func (UserRoleResponseMultiError) AllErrors

func (m UserRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserRoleResponseMultiError) Error

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

type UserRoleResponseValidationError

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

UserRoleResponseValidationError is the validation error returned by UserRoleResponse.Validate if the designated constraints aren't met.

func (UserRoleResponseValidationError) Cause

Cause function returns cause value.

func (UserRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (UserRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (UserRoleResponseValidationError) Field

Field function returns field value.

func (UserRoleResponseValidationError) Key

Key function returns key value.

func (UserRoleResponseValidationError) Reason

Reason function returns reason value.

type UserServer

type UserServer interface {
	CreateUser(context.Context, *CreateUserRequest) (*UserInfoResponse, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UserInfoResponse, error)
	DeleteUser(context.Context, *DeleteUserRequest) (*UserInfoResponse, error)
	GetUser(context.Context, *GetUserRequest) (*UserInfoResponse, error)
	ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error)
	CreateRole(context.Context, *CreateRoleRequest) (*RoleInfoResponse, error)
	UpdateRole(context.Context, *UpdateRoleRequest) (*RoleInfoResponse, error)
	DeleteRole(context.Context, *DeleteRoleRequest) (*RoleInfoResponse, error)
	GetRole(context.Context, *GetRoleRequest) (*RoleInfoResponse, error)
	ListRole(context.Context, *ListRoleRequest) (*ListRoleResponse, error)
	CreatePermission(context.Context, *CreatePermissionRequest) (*PermissionInfoResponse, error)
	UpdatePermission(context.Context, *UpdatePermissionRequest) (*PermissionInfoResponse, error)
	DeletePermission(context.Context, *DeletePermissionRequest) (*PermissionInfoResponse, error)
	GetPermission(context.Context, *GetPermissionRequest) (*PermissionInfoResponse, error)
	ListPermission(context.Context, *ListPermissionRequest) (*ListPermissionResponse, error)
	SetUserRole(context.Context, *SetUserRoleRequest) (*SetUserRoleResponse, error)
	DeleteUserRole(context.Context, *DeleteUserRoleRequest) (*DeleteUserRoleResponse, error)
	CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
	// contains filtered or unexported methods
}

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility

Jump to

Keyboard shortcuts

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