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