implemented user deactivation

This commit is contained in:
Fran Jurmanović
2021-05-22 17:29:17 +02:00
parent 1657834b40
commit a84f58dee1
7 changed files with 112 additions and 81 deletions

View File

@@ -12,3 +12,7 @@ type FilteredResponse struct {
}
type ResponseFunc func(*gin.Context) *[]interface{}
type MessageResponse struct {
Message string `json:"message"`
}

View File

@@ -3,6 +3,7 @@ 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"`