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"`
}
Click to show internal directories.
Click to hide internal directories.