mysql_database

package
v0.0.0-...-790789d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FoodGroupMySqlRepository

type FoodGroupMySqlRepository struct {
	// contains filtered or unexported fields
}

func NewFoodGroupMySqlRepository

func NewFoodGroupMySqlRepository() *FoodGroupMySqlRepository

func (*FoodGroupMySqlRepository) Delete

func (f *FoodGroupMySqlRepository) Delete(foodGroupId int) (bool, error)

func (*FoodGroupMySqlRepository) GetAll

func (f *FoodGroupMySqlRepository) GetAll(skip int, take int) ([]models.FoodGroupMySql, int, error)

func (*FoodGroupMySqlRepository) GetItem

func (f *FoodGroupMySqlRepository) GetItem(foodgroupId int64) (models.FoodGroupMySql, error)

func (*FoodGroupMySqlRepository) Insert

func (*FoodGroupMySqlRepository) Update

type FoodMySqlRepository

type FoodMySqlRepository struct {
	// contains filtered or unexported fields
}

func NewFoodMySqlRepository

func NewFoodMySqlRepository() *FoodMySqlRepository

func (*FoodMySqlRepository) CreateComment

func (f *FoodMySqlRepository) CreateComment(foodComment models.FoodCommentMySql) (bool, error)

func (*FoodMySqlRepository) Delete

func (f *FoodMySqlRepository) Delete(id int64) (bool, error)

func (*FoodMySqlRepository) GetAll

func (f *FoodMySqlRepository) GetAll(skip int, take int) ([]models.FoodMySqlDTO, int, error)

func (*FoodMySqlRepository) GetComments

func (f *FoodMySqlRepository) GetComments(foodId int64, skip int, take int) ([]models.FoodCommentMySql, int, error)

func (*FoodMySqlRepository) GetItem

func (f *FoodMySqlRepository) GetItem(foodId int64) (models.FoodMySqlDTO, error)

func (*FoodMySqlRepository) Insert

func (f *FoodMySqlRepository) Insert(food models.FoodMySql, images []string) (*models.FoodMySql, error)

type IFoodRepository

type IFoodRepository interface {
	// GetAll() ([]models.FoodGroup, error)
	Insert(foodGroup models.Food) models.Food
}

type IUserMySqlRepository

type IUserMySqlRepository interface {
	GetAll() ([]models.UserMySql, error)
	Insert(user models.UserMySql) models.UserMySql
	GetItem(userId string) (bool, error)
	Delete(userId primitive.ObjectID) (bool, error)
	Update(user models.UserMySql) (*mongo.UpdateResult, error)
}

type ResturanMySqlRepository

type ResturanMySqlRepository struct {
	// contains filtered or unexported fields
}

func NewResturanMySqlRepository

func NewResturanMySqlRepository() *ResturanMySqlRepository

func (*ResturanMySqlRepository) Delete

func (f *ResturanMySqlRepository) Delete(resturanId int) (bool, error)

func (*ResturanMySqlRepository) GetAll

func (f *ResturanMySqlRepository) GetAll(skip int, take int) ([]models.ResturanMySql, int, error)

func (*ResturanMySqlRepository) GetItem

func (f *ResturanMySqlRepository) GetItem(resturanId int64) (models.ResturanMySql, error)

func (*ResturanMySqlRepository) Insert

func (*ResturanMySqlRepository) Update

type UserMySqlRepository

type UserMySqlRepository struct {
	// contains filtered or unexported fields
}

func NewUserMySqlRepository

func NewUserMySqlRepository() *UserMySqlRepository

func (*UserMySqlRepository) Delete

func (u *UserMySqlRepository) Delete(userId string) (bool, error)

func (*UserMySqlRepository) GetAll

func (u *UserMySqlRepository) GetAll() ([]models.UserMySql, error)

func (*UserMySqlRepository) GetItem

func (u *UserMySqlRepository) GetItem(userId int64) (models.UserMySql, error)

func (*UserMySqlRepository) Insert

func (*UserMySqlRepository) Update

Jump to

Keyboard shortcuts

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