biz

package
v0.0.0-...-9139306 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRoleInvalidArgument     = myerrors.BadRequest(v1.ErrorReason_ACL_ROLE_INVALID_ARGUMENT.String(), "请求参数错误")
	ErrRoleNotFound            = myerrors.NotFound(v1.ErrorReason_ACL_ROLE_NOT_FOUND.String(), "角色未找到")
	ErrRoleUnprocessableEntity = myerrors.New(http.StatusUnprocessableEntity, v1.ErrorReason_ACL_ROLE_UNPROCESSABLE_ENTITY.String(), "请求无法处理")
)
View Source
var ProviderSet = wire.NewSet(NewRoleUsecase)

Functions

This section is empty.

Types

type E

type E *do.Role

type RoleRepo

type RoleRepo interface {
	repo.Repo[E, T]
}

type RoleUsecase

type RoleUsecase struct {
	usecase.BaseUsecase[E, T]
	// contains filtered or unexported fields
}

func NewRoleUsecase

func NewRoleUsecase(repo RoleRepo) *RoleUsecase

type T

type T *po.Role

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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