2023-12-26 15:34:38 +08:00
|
|
|
package UserService
|
|
|
|
|
|
|
|
import (
|
|
|
|
"PersonalMain/internal/logic/UserServiceImpl"
|
2023-12-27 01:48:24 +08:00
|
|
|
"PersonalMain/internal/model/do"
|
2023-12-26 15:34:38 +08:00
|
|
|
"PersonalMain/internal/model/entity"
|
|
|
|
"github.com/gogf/gf/v2/net/ghttp"
|
|
|
|
)
|
|
|
|
|
|
|
|
func NewUserService() UserService {
|
|
|
|
return &UserServiceImpl.DefaultUserImpl{}
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserService interface {
|
|
|
|
UserRegister(*ghttp.Request, *entity.UserRegisterVO)
|
|
|
|
UserLogin(*ghttp.Request, *entity.UserLoginVO)
|
|
|
|
CheckLogin(*ghttp.Request)
|
2023-12-26 16:29:04 +08:00
|
|
|
UserLogout(*ghttp.Request)
|
2023-12-27 01:48:24 +08:00
|
|
|
UserCurrent(*ghttp.Request) *do.UserDO
|
2023-12-26 15:34:38 +08:00
|
|
|
}
|