MSP-1756 remove last session in crud
This commit is contained in:
1 parent
4cad9cbbb4
commit
ef0028c091
5 files changed
+40
-35
No files matched your search
+14
-16
@@ -12,7 +12,7 @@ type User struct {
|
||||
Email string
|
||||
Description string
|
||||
Blocked bool
|
||||
LastSessionCreatedAt time.Time
|
||||
LastSessionCreatedAt *time.Time
|
||||
UpdatedAt time.Time
|
||||
CreatedAt time.Time
|
||||
}
|
||||
@@ -38,24 +38,22 @@ type AdminUserShort struct {
|
||||
}
|
||||
|
||||
type CreateUserRequest struct {
|
||||
Roles []int
|
||||
FirstName string
|
||||
LastName string
|
||||
Email string `valid:"required"`
|
||||
Password string `valid:"required"`
|
||||
Description string
|
||||
LastSessionCreatedAt time.Time
|
||||
Roles []int
|
||||
FirstName string
|
||||
LastName string
|
||||
Email string `valid:"required"`
|
||||
Password string `valid:"required"`
|
||||
Description string
|
||||
}
|
||||
|
||||
type UpdateUserRequest struct {
|
||||
Id int64 `valid:"required"`
|
||||
Roles []int
|
||||
FirstName string
|
||||
LastName string
|
||||
Email string
|
||||
Description string
|
||||
Blocked bool
|
||||
LastSessionCreatedAt time.Time
|
||||
Id int64 `valid:"required"`
|
||||
Roles []int
|
||||
FirstName string
|
||||
LastName string
|
||||
Email string
|
||||
Description string
|
||||
Blocked bool
|
||||
}
|
||||
|
||||
type DeleteResponse struct {
|
||||
|
||||
Reference in new issue
Block a user