PersonalMain-Golang/internal/service/TokenService/tokenService.go

23 lines
502 B
Go
Raw Normal View History

package TokenService
import (
"PersonalMain/internal/logic/TokenServiceImpl"
"PersonalMain/internal/model/do"
"github.com/gogf/gf/v2/net/ghttp"
)
func NewTokenService() TokenService {
return &TokenServiceImpl.DefaultTokenImpl{}
}
// TokenService
//
// TokenServiceImpl 服务接口
type TokenService interface {
CreateToken() *do.TokenDO
GetToken(*ghttp.Request) *do.TokenDO
VerifyToken(*do.TokenDO) bool
LoginToken(*ghttp.Request, do.UserDO) *do.TokenDO
2023-12-26 16:29:04 +08:00
DeleteToken(*ghttp.Request) bool
}