Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v1.7.13
type Builder struct {
// contains filtered or unexported fields
}
Builder .
func (*Builder) SelectColumn ¶ added in v1.7.13
SelectColumn .
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 Reorder ¶ added in v1.7.13
type Reorder struct {
// contains filtered or unexported fields
}
Reorder .
func NewORMAscBuilder ¶ added in v1.7.13
NewORMAscBuilder .
func NewORMDescBuilder ¶ added in v1.7.13
NewORMDescBuilder .
func (*Reorder) NewPageBuilder ¶ added in v1.7.13
NewPageBuilder .
Click to show internal directories.
Click to hide internal directories.