Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoodsService ¶
type GoodsService struct { Runtime freedom.Runtime GoodsRepo repositorys.GoodsInterface }
GoodsService .
func (*GoodsService) AddStock ¶
func (srv *GoodsService) AddStock(goodsID, num int) error
type OrderService ¶
type OrderService struct { Runtime freedom.Runtime GoodsRepo repositorys.GoodsInterface OrderRepo repositorys.OrderInterface Tx transaction.Transaction }
OrderService .
func (*OrderService) Add ¶
func (srv *OrderService) Add(goodsID, num, userId int) (resp string, e error)
Directories ¶
Path | Synopsis |
---|---|
Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud'
|
Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' |
Click to show internal directories.
Click to hide internal directories.