add user service

This commit is contained in:
kandrusyak
2023-06-23 17:24:00 +03:00
parent b3e4b8a5ab
commit eab7ec0c90
12 changed files with 114 additions and 41 deletions

View File

@@ -5,7 +5,9 @@ import "gorm.io/gorm"
type (
User struct {
gorm.Model
UserName string `json:"userName" gorm:"unique"`
Password string `json:"password,omitempty"`
UserName string `json:"userName" gorm:"unique"`
Password string `json:"password,omitempty"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
}
)