Documentation ¶ Index ¶ Constants type Repo type UseCase func NewUseCase(conf *config.Config, depRepo depbiz.Repo, menuRepo menubiz.Repo) *UseCase func (u *UseCase) Auth(ctx kratosx.Context, in *v1.AuthRequest) (*v1.AuthReply, error) Constants ¶ View Source const ( Add = "add" In = "in" ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Repo ¶ type Repo any type UseCase ¶ type UseCase struct { // contains filtered or unexported fields } func NewUseCase ¶ func NewUseCase(conf *config.Config, depRepo depbiz.Repo, menuRepo menubiz.Repo) *UseCase func (*UseCase) Auth ¶ func (u *UseCase) Auth(ctx kratosx.Context, in *v1.AuthRequest) (*v1.AuthReply, error) Auth 接口鉴权 后期计划,在这里增加鉴权资源的缓存,避免频繁查询。 Source Files ¶ View all Source files biz.go entity.go repo.go types.go Click to show internal directories. Click to hide internal directories.