From 77904f19c6f29659d5adcf569336735b3b651912 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 12 Apr 2021 12:19:37 +0200 Subject: Implemented the user login database function --- pkg/model/users.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/model') diff --git a/pkg/model/users.go b/pkg/model/users.go index dfef67b..e4b4bf0 100644 --- a/pkg/model/users.go +++ b/pkg/model/users.go @@ -10,6 +10,11 @@ type User struct { Last_login_at *time.Time `json:"last_login_at"` } +type UserLogin struct { + Username string `json:"username"` + Password string `json:"password"` +} + type UserRegistration struct { Username string `json:"username"` Password string `json:"password"` -- cgit v1.2.3