mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
implemented user deactivation
This commit is contained in:
@@ -12,3 +12,7 @@ type FilteredResponse struct {
|
||||
}
|
||||
|
||||
type ResponseFunc func(*gin.Context) *[]interface{}
|
||||
|
||||
type MessageResponse struct {
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user