menu

package
v0.0.0-...-bc6e940 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package menu contains the business logic for the menu entity

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Menu struct {
	ID          int64     `json:"id" example:"123"`
	Name        string    `json:"name" example:"Hyderabadi Dum Briyani"`
	Description string    `json:"description" example:"Some Description"`
	Price       float64   `json:"price" example:"200.50"`
	CreatedAt   time.Time `json:"created_at,omitempty" `
	UpdatedAt   time.Time `json:"updated_at,omitempty" example:"2021-02-24 20:19:39"`
}

Menu is a struct that contains the menu information

type Service

type Service interface {
	Get(int) (*Menu, error)
	GetAll() ([]*Menu, error)
	Create(*Menu) error
	Delete(int) error
}

Service is a interface that contains the methods for the menu service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL