Documentation ¶
Index ¶
- type Admin
- type Builder
- type Cart
- func (repo *Cart) DeleteAll(userID int) (e error)
- func (repo *Cart) FindAll(userID int) (entitys []*entity.Cart, e error)
- func (repo *Cart) FindByGoodsID(userID, goodsID int) (cartEntity *entity.Cart, e error)
- func (repo *Cart) New(userID, goodsID, num int) (cartEntity *entity.Cart, e error)
- func (repo *Cart) Save(entity *entity.Cart) error
- type Delivery
- type GORMRepository
- type Goods
- func (repo *Goods) BeginRequest(worker freedom.Worker)
- func (repo *Goods) Finds(IDs []int) (entitys []*entity.Goods, e error)
- func (repo *Goods) FindsByPage(page, pageSize int, tag string) (entitys []*entity.Goods, e error)
- func (repo *Goods) Get(ID int) (goodsEntity *entity.Goods, e error)
- func (repo *Goods) New(name, tag string, price, stock int) (entityGoods *entity.Goods, e error)
- func (repo *Goods) Save(entity *entity.Goods) error
- type Order
- func (repo *Order) BeginRequest(worker freedom.Worker)
- func (repo *Order) Find(orderNo string, userID int) (orderEntity *entity.Order, e error)
- func (repo *Order) Finds(userID int, page, pageSize int) (entitys []*entity.Order, totalPage int, e error)
- func (repo *Order) Get(orderNo string) (orderEntity *entity.Order, e error)
- func (repo *Order) New() (orderEntity *entity.Order, e error)
- func (repo *Order) Save(orderEntity *entity.Order) (e error)
- type Pager
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cart ¶
type Cart struct {
freedom.Repository
}
Cart .
func (*Cart) FindByGoodsID ¶ added in v1.8.0
FindByGoodsID 获取用户某商品的购物车
type Delivery ¶ added in v1.6.5
type Delivery struct {
freedom.Repository
}
Delivery .
type GORMRepository ¶ added in v1.7.13
type GORMRepository interface { GetWorker() freedom.Worker // contains filtered or unexported methods }
GORMRepository .
type Goods ¶
type Goods struct { freedom.Repository Cache store.EntityCache //实体缓存组件 }
Goods .
func (*Goods) BeginRequest ¶ added in v1.7.4
BeginRequest .
func (*Goods) FindsByPage ¶
FindsByPage .
type Order ¶
type Order struct { freedom.Repository Cache store.EntityCache //实体缓存组件 }
Order .
func (*Order) BeginRequest ¶ added in v1.7.4
BeginRequest .
func (*Order) Finds ¶ added in v1.6.1
func (repo *Order) Finds(userID int, page, pageSize int) (entitys []*entity.Order, totalPage int, e error)
Finds .
type Pager ¶ added in v1.8.1
type Pager struct {
// contains filtered or unexported fields
}
Pager .
func NewAscPager ¶ added in v1.8.1
NewAscPager .
func NewDescPager ¶ added in v1.8.1
NewDescPager .
type User ¶
type User struct {
freedom.Repository
}
User .
func (*User) FindByName ¶
FindByName .
Source Files ¶
Click to show internal directories.
Click to hide internal directories.