dao

package
v0.0.0-...-81c01d1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CartDao

type CartDao interface {
	GetByUserId(model.UserId) (model.Cart, error)
	Upsert(model.UserId, model.Cart) (model.Cart, error)
}

func GetCartDao

func GetCartDao() CartDao

type CouponDao

type CouponDao interface {
	Exists(model.Coupon) (bool, error)
	Insert(model.Coupon) error
	Delete(model.Coupon) error
}

func GetCouponDao

func GetCouponDao() CouponDao

type PaymentDao

type PaymentDao interface {
	Insert(model.Payment) (model.Payment, error)
}

func GetPaymentDao

func GetPaymentDao() PaymentDao

type ProductDao

type ProductDao interface {
	GetAll(model.Order) ([]model.Product, error)
	GetById(int32) (model.Product, error)
	Insert(model.Product) (model.Product, error)
}

func GetProductDao

func GetProductDao() ProductDao

type TokenDao

type TokenDao interface {
	Exists(model.Token) (bool, error)
	Insert(model.Token) error
	Delete(model.Token) error
}

func GetTokenDao

func GetTokenDao() TokenDao

type UserDao

type UserDao interface {
	GetByEmail(email string) (model.User, error)
	Insert(model.User) (model.User, error)
}

func GetUserDao

func GetUserDao() UserDao

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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