Skip to content

Instantly share code, notes, and snippets.

View krittawatcode's full-sized avatar

Krittawat W krittawatcode

View GitHub Profile
package dto
//Login credential
type LoginCredentials struct {
Email string `form:"email"`
Password string `form:"password"`
}
package service
import (
"fmt"
"os"
"time"
"github.com/dgrijalva/jwt-go"
)
@krittawatcode
krittawatcode / LoginService.go
Last active November 14, 2020 06:11
LoginService.go
package service
type LoginService interface {
LoginUser(email string, password string) bool
}
type loginInformation struct {
email string
password string
}