1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
wakapi/models/user.go

13 lines
254 B
Go
Raw Normal View History

2019-05-06 01:40:41 +03:00
package models
type User struct {
ID string `json:"id" gorm:"primary_key"`
ApiKey string `json:"api_key" gorm:"unique"`
Password string `json:"-"`
2019-05-06 01:40:41 +03:00
}
type Login struct {
Username string `json:"username"`
Password string `json:"password"`
}