Documentation ¶
Index ¶
- type Amenities
- type Repository
- func (r Repository) Create(ctx context.Context, amenities entity.Amenities) error
- func (r Repository) Delete(ctx context.Context, amenitiesID string) error
- func (r Repository) Get(ctx context.Context, amenitiesID ...string) ([]entity.Amenities, error)
- func (r Repository) Update(ctx context.Context, amenities entity.Amenities) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Amenities ¶
type Amenities struct { ID string `db:"id"` Name string `db:"name"` Type int `db:"type"` ImagePath string `db:"image_path"` CreatedAt time.Time `db:"created_at"` UpdatedAt pq.NullTime `db:"updated_at"` IsDeleted bool `db:"is_deleted"` IsTest bool `db:"is_test"` }
Amenities struct @database: project, table: amenities
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository of amenities
func (Repository) Delete ¶
func (r Repository) Delete(ctx context.Context, amenitiesID string) error
Delete the amenities
Click to show internal directories.
Click to hide internal directories.