Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoodsService ¶
type GoodsService struct { Worker freedom.Worker GoodsRepo repository.GoodsInterface }
GoodsService .
func (*GoodsService) AddStock ¶
func (srv *GoodsService) AddStock(goodsID, num int) error
AddStock .
type OrderService ¶
type OrderService struct { Worker freedom.Worker GoodsRepo repository.GoodsInterface OrderRepo repository.OrderInterface Tx transaction.Transaction }
OrderService .
func (*OrderService) Add ¶
func (srv *OrderService) Add(goodsID, num, userID int) (resp string, e error)
Add .
Directories ¶
Path | Synopsis |
---|---|
Package dto code generated by 'freedom new-project infra-example'
|
Package dto code generated by 'freedom new-project infra-example' |
Package po generated by 'freedom new-po' Package po generated by 'freedom new-po' Package po generated by 'freedom new-po' Package po generated by 'freedom new-po' Package po generated by 'freedom new-po'
|
Package po generated by 'freedom new-po' Package po generated by 'freedom new-po' Package po generated by 'freedom new-po' Package po generated by 'freedom new-po' Package po generated by 'freedom new-po' |
Click to show internal directories.
Click to hide internal directories.