const Router = require('koa-router')
const stockController = require('../controllers/stock')

const router = new Router()

// 获取库存列表
router.get('/', stockController.getStockList)

// 获取单个商品库存
router.get('/:id', stockController.getStockByGoodsId)

// 调整库存
router.post('/:id/adjust', stockController.adjustStock)

module.exports = router.routes()
