Documentation ¶
Index ¶
- type Menu
- type Menues
- type MySQL
- func (m *MySQL) Delete(ctx context.Context, isAdmin bool, menu *entity.Menu) (err error)
- func (m *MySQL) GetByID(ctx context.Context, app int64, id int64, all bool, isAdmin bool, uid string) (menu *entity.Menu, err error)
- func (m *MySQL) Insert(ctx context.Context, menu *entity.Menu) (err error)
- func (m *MySQL) Select(ctx context.Context, app int64, all bool, isAdmin bool, uid string) (menues entity.Menues, err error)
- func (m *MySQL) Update(ctx context.Context, isAdmin bool, menu *entity.Menu) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Menu ¶
type Menu struct { ID int64 `db:"id"` CategoryID int64 `db:"category_id"` Name string `db:"name"` Price float64 `db:"price"` Discount *float64 `db:"disc"` ShowMenu int8 `db:"show_menu"` AppID int64 `db:"app_id"` CreatedAt null.Time `db:"created_at"` CreatedBy string `db:"created_by"` UpdatedAt null.Time `db:"updated_at"` LastUpdateBy *string `db:"last_update_by"` DeletedAt null.Time `db:"deleted_at"` IsActive int8 `db:"is_active"` }
category struct
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
MySQL struct
func (*MySQL) GetByID ¶
func (m *MySQL) GetByID(ctx context.Context, app int64, id int64, all bool, isAdmin bool, uid string) (menu *entity.Menu, err error)
GetByID . . .
Click to show internal directories.
Click to hide internal directories.