api/internal/interfaces/utils.go

16 lines
392 B
Go
Raw Permalink Normal View History

2025-07-06 22:21:32 +03:00
package interfaces
2025-12-06 17:32:45 +03:00
import (
"github.com/gin-gonic/gin"
"time"
)
2025-07-06 22:21:32 +03:00
type Utils interface {
IsEmail(email string) bool
GetUserUuidFromContext(c *gin.Context) (string, error)
2025-09-14 19:32:22 +03:00
GetRefreshUuidFromContext(c *gin.Context) (string, error)
2025-07-07 11:42:54 +03:00
HashPassword(password string) (string, error)
ComparePasswords(hashedPassword string, plainPassword string) error
2025-12-06 17:32:45 +03:00
ParseTime(t string) (time.Time, error)
2025-07-06 22:21:32 +03:00
}