2024-03-25 16:24:48: merge [main:72a62d1996eb71f9a1ab21643bf294148b87ae99];

This commit is contained in:
txix committed 2024-03-25 16:24:48 +03:00
1 parent 0669c6ec0a
commit ed8a4eef5d
85 files changed
+7671 -93

No files matched your search

+70
View File
@@ -0,0 +1,70 @@
package domain
import (
"time"
)
type User struct {
Id int64
Roles []int
FirstName string
LastName string
Email string
Description string
Blocked bool
LastSessionCreatedAt *time.Time
UpdatedAt time.Time
CreatedAt time.Time
}
type UsersResponse struct {
Items []User
}
type UsersRequest struct {
Ids []int64
Offset int
Limit int
Email string
}
type AdminUserShort struct {
FirstName string
LastName string
Email string `valid:"required"`
Role string
Roles []int
Permissions []string
IdleTimeoutMs int
}
type CreateUserRequest struct {
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
}
type DeleteResponse struct {
Deleted int
}
type IdentitiesRequest struct {
Ids []int64 `valid:"required"`
}
type IdRequest struct {
UserId int `valid:"required"`
}