Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GORMRepository ¶ added in v1.7.13
type GORMRepository interface { GetWorker() freedom.Worker // contains filtered or unexported methods }
GORMRepository .
type GoodsInterface ¶
type GoodsInterface interface { Get(id int) (po.Goods, error) GetAll() ([]po.Goods, error) Save(*po.Goods) error }
GoodsInterface .
type GoodsRepository ¶
type GoodsRepository struct {
freedom.Repository
}
GoodsRepository .
func (*GoodsRepository) Get ¶
func (repo *GoodsRepository) Get(ID int) (result po.Goods, e error)
Get .
type OrderInterface ¶
type OrderInterface interface { Get(id int, userID int) (po.Order, error) GetAll(userID int) ([]po.Order, error) Create(goodsID, num, userID int) error }
OrderInterface .
type OrderRepository ¶
type OrderRepository struct {
freedom.Repository
}
OrderRepository .
func (*OrderRepository) Create ¶
func (repo *OrderRepository) Create(goodsID, num, userID int) error
Create .
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 .
Click to show internal directories.
Click to hide internal directories.