dependency

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminRepo

type AdminRepo interface {
	Get(int) (*entity.Admin, error)
}

AdminRepo .

type CartRepo

type CartRepo interface {
	FindAll(userID int) (entitys []*entity.Cart, e error)
	FindByGoodsID(userID, goodsID int) (cartEntity *entity.Cart, e error)
	Save(entity *entity.Cart) error
	New(userID, goodsID, num int) (cartEntity *entity.Cart, e error)
	DeleteAll(userID int) (e error)
}

CartRepo .

type DeliveryRepo

type DeliveryRepo interface {
	New() (*entity.Delivery, error)
	Save(*entity.Delivery) error
}

DeliveryRepo .

type GoodsRepo

type GoodsRepo interface {
	Get(ID int) (goodsEntity *entity.Goods, e error)
	Finds(IDs []int) (entitys []*entity.Goods, e error)
	FindsByPage(page, pageSize int, tag string) (entitys []*entity.Goods, e error)
	Save(entity *entity.Goods) error
	New(name, tag string, price, stock int) (entityGoods *entity.Goods, e error)
}

GoodsRepo .

type OrderRepo

type OrderRepo interface {
	New() (orderEntity *entity.Order, e error)
	Save(orderEntity *entity.Order) (e error)
	Find(orderNO string, userID int) (orderEntity *entity.Order, e error)
	Get(orderNO string) (orderEntity *entity.Order, e error)
	Finds(userID int, page, pageSize int) (entitys []*entity.Order, totalPage int, e error)
}

OrderRepo .

type UserRepo

type UserRepo interface {
	Get(ID int) (obj *entity.User, e error)
	FindByName(userName string) (userEntity *entity.User, e error)
	Save(entity *entity.User) error
	New(userDto vo.RegisterUserReq, money int) (entityUser *entity.User, e error)
}

UserRepo .

Jump to

Keyboard shortcuts

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