Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { ID uuid.UUID `json:"id" gorm:"type:uuid;primary_key;default:gen_random_uuid()"` CreatedAt time.Time `json:"createdAt" gorm:"not null;default:current_timestamp"` CreatedBy uuid.UUID `json:"createdBy" gorm:"type:uuid"` UpdatedAt time.Time `json:"updatedAt"` UpdatedBy uuid.UUID `json:"updatedBy" gorm:"type:uuid"` IsDeleted bool `json:"-" gorm:"not null;default:false"` }
type Catalog ¶
type Catalog struct { Base Name string `json:"name" gorm:"not null;type:varchar(128)"` Description string `json:"description" gorm:"not null;type:varchar(1024)"` Price float32 `json:"price" gorm:"not null;type:decimal(10,2)"` Images []CatalogImage `json:"images"` Likes []CatalogUserLike `json:"-"` IsLiked bool `json:"isLiked" gorm:"->"` }
type CatalogImage ¶
Click to show internal directories.
Click to hide internal directories.