Documentation ¶
Index ¶
- func CreateProductDeleteRepository(dependencies map[string]interface{}) (interface{}, error)
- func CreateProductFindAllRepository(dependencies map[string]interface{}) (interface{}, error)
- func CreateProductFindRepository(dependencies map[string]interface{}) (interface{}, error)
- func CreateProductSaveRepository(dependencies map[string]interface{}) (interface{}, error)
- func NewGormProductDeleteRepository(db *gorm.DB) domain.ProductDeleteRepository
- func NewGormProductFindAllRepository(db *gorm.DB) domain.ProductFindAllRepository
- func NewGormProductFindRepository(db *gorm.DB) domain.ProductFindRepository
- func NewGormProductSaveRepository(db *gorm.DB) domain.ProductSaveRepository
- type GormProductEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProductDeleteRepository ¶ added in v0.0.2
func CreateProductFindAllRepository ¶ added in v0.0.2
func CreateProductFindRepository ¶ added in v0.0.2
func CreateProductSaveRepository ¶ added in v0.0.2
func NewGormProductDeleteRepository ¶ added in v0.0.2
func NewGormProductDeleteRepository(db *gorm.DB) domain.ProductDeleteRepository
func NewGormProductFindAllRepository ¶ added in v0.0.2
func NewGormProductFindAllRepository(db *gorm.DB) domain.ProductFindAllRepository
func NewGormProductFindRepository ¶ added in v0.0.2
func NewGormProductFindRepository(db *gorm.DB) domain.ProductFindRepository
func NewGormProductSaveRepository ¶ added in v0.0.2
func NewGormProductSaveRepository(db *gorm.DB) domain.ProductSaveRepository
Types ¶
type GormProductEntity ¶
type GormProductEntity struct { ID string `gorm:"primaryKey;type:text;default:(lower(hex(randomblob(16))))" json:"id"` Name string `gorm:"type:varchar(100);not null" json:"name"` Description string `gorm:"type:text;not null" json:"description"` Price float64 `gorm:"not null" json:"price"` CreatedAt time.Time `gorm:"type:timestamp;not null" json:"created_at"` UpdatedAt time.Time `gorm:"type:timestamp;not null" json:"updated_at"` }
func NewProductEntityFromDomain ¶
func NewProductEntityFromDomain(product *domain.Product) (*GormProductEntity, error)
Click to show internal directories.
Click to hide internal directories.