Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
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 .
Click to show internal directories.
Click to hide internal directories.