Documentation ¶
Overview ¶
Code generated by 'freedom new-crud'
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoodsInterface ¶
type GoodsRepository ¶
type GoodsRepository struct {
freedom.Repository
}
GoodsRepository .
func (*GoodsRepository) Get ¶
func (repo *GoodsRepository) Get(id int) (result objects.Goods, e error)
type OrderInterface ¶
type OrderRepository ¶
type OrderRepository struct {
freedom.Repository
}
OrderRepository .
func (*OrderRepository) Create ¶
func (repo *OrderRepository) Create(goodsID, num, userID int) error
Click to show internal directories.
Click to hide internal directories.