fixed multipart form issue

This commit is contained in:
Fran Jurmanović
2021-06-05 00:10:23 +02:00
parent 1406c74e67
commit 636a367d3e
12 changed files with 66 additions and 35 deletions

View File

@@ -3,10 +3,10 @@ package models
type User struct {
tableName struct{} `pg:"users,alias:users"`
BaseModel
IsActive bool `json:"isActive" pg:"is_active"`
Username string `json:"username" pg:"username"`
Password string `json:"password" pg:"password"`
Email string `json:"email" pg:"email"`
IsActive bool `json:"isActive" pg:"is_active" form:"isActive"`
Username string `json:"username" pg:"username" form:"username"`
Password string `json:"password" pg:"password" form:"password"`
Email string `json:"email" pg:"email" form:"email"`
}
type UserReturnInfo struct {