Add authentication

This commit is contained in:
Khanh Ngo
2020-04-24 18:14:54 +07:00
parent a78c9f3dd4
commit a5fbb7b58a
13 changed files with 306 additions and 7 deletions

7
model/user.go Normal file
View File

@@ -0,0 +1,7 @@
package model
// User model
type User struct {
Username string `json:"username"`
Password string `json:"password"`
}