hiling_go/util/token/maker.go

9 lines
192 B
Go
Raw Normal View History

2023-09-08 22:25:22 +07:00
package token
import "time"
type Maker interface {
2023-09-21 21:38:41 +07:00
CreateToken(username string, userID int, duration time.Duration) (string, *Payload, error)
2023-09-08 22:25:22 +07:00
VerifyToken(token string) (*Payload, error)
}