initial commit
This commit is contained in:
12
models/user.go
Normal file
12
models/user.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package models
|
||||
|
||||
type UserModel struct {
|
||||
ID string `json:"id,omitempty",bson:"_id"`
|
||||
Username string `json:"username,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Email string `json:"email,omitempty"`
|
||||
}
|
||||
|
||||
func Login(username, password string) bool {
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user