hiling_go/util/token/maker.go
2024-05-22 11:26:15 +07:00

9 lines
192 B
Go
Executable File

package token
import "time"
type Maker interface {
CreateToken(username string, userID int, duration time.Duration) (string, *Payload, error)
VerifyToken(token string) (*Payload, error)
}