api/internal/interfaces/utils.go

12 lines
353 B
Go
Raw Normal View History

2025-07-06 22:21:32 +03:00
package interfaces
import "github.com/gin-gonic/gin"
type Utils interface {
IsEmail(email string) bool
GetUserUuidFromContext(c *gin.Context) (string, error)
2025-09-08 23:57:14 +03:00
GetAllTokensFromContext(c *gin.Context) (string, string, string, error)
2025-07-07 11:42:54 +03:00
HashPassword(password string) (string, error)
ComparePasswords(hashedPassword string, plainPassword string) error
2025-07-06 22:21:32 +03:00
}