usecase

package
v0.0.0-...-86f4363 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserCase

func NewUserCase(db repository.UserDB, svc *service.UserService) *useCase

Types

type UserUseCase

type UserUseCase interface {
	RegisterUser(ctx context.Context, user *model.User) (uid int64, err error)
	Login(ctx context.Context, user *model.User) (*model.User, error)
}

UserUseCase 接口应该不应该定义在 domain 中,这属于 use case 层

Jump to

Keyboard shortcuts

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