Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToEntitySlice ¶
Types ¶
type BaseRequest ¶
type BaseRequest[E any] struct { EntityInstance *E }
func (*BaseRequest[E]) CopyToEntity ¶
func (b *BaseRequest[E]) CopyToEntity(source any) (*E, error)
type CreateImageRequest ¶
type CreateImageRequest struct {
BaseRequest[entities.Image] `json:"base_request"`
S3Key string `json:"s3_key" gorm:"size:255;not null"`
Url string `json:"url" gorm:"size:512;not null"`
UserID *uint `json:"user_id" gorm:"index"`
Size int `json:"size"`
MimeType string `json:"mime_type" gorm:"size:50"`
ExpiresAt time.Time `json:"expires_at"`
}
type CreateRoleRequest ¶
type CreateRoleRequest struct {
BaseRequest[entities.Role]
Name string `json:"name" binding:"required"`
Description string `json:"description" binding:"required"`
}
type CreateUserRequest ¶
type UpdateRoleRequest ¶
type UpdateRoleRequest struct {
BaseRequest[entities.Role]
Description string `json:"description"`
}
type UpdateUserRequest ¶
type UpdateUserRequest struct {
BaseRequest[entities.User]
FirstName *string `json:"first_name,omitempty"`
LastName *string `json:"last_name,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.