Authored by htoooth

add api

@@ -299,6 +299,14 @@ const getPackage = (req, res, next) => { @@ -299,6 +299,14 @@ const getPackage = (req, res, next) => {
299 .catch(next); 299 .catch(next);
300 }; 300 };
301 301
  302 +const notifyStatus = (req, res, next) => {
  303 +
  304 +};
  305 +
  306 +const notify = (req, res, next) => {
  307 +
  308 +};
  309 +
302 module.exports = { 310 module.exports = {
303 showMain, 311 showMain,
304 indexHotArea, 312 indexHotArea,
@@ -310,7 +318,9 @@ module.exports = { @@ -310,7 +318,9 @@ module.exports = {
310 recommend, 318 recommend,
311 getPackage, 319 getPackage,
312 likeConsult, 320 likeConsult,
313 - usefulConsult 321 + usefulConsult,
  322 + notifyStatus,
  323 + notify
314 }; 324 };
315 325
316 326
@@ -141,10 +141,15 @@ const isFavShop = (req, res, next) => { @@ -141,10 +141,15 @@ const isFavShop = (req, res, next) => {
141 }).catch(next); 141 }).catch(next);
142 }; 142 };
143 143
  144 +const num = (req, res, next) => {
  145 +
  146 +};
  147 +
144 module.exports = { 148 module.exports = {
145 changeFavoriteBrand, 149 changeFavoriteBrand,
146 collectProduct, 150 collectProduct,
147 collectShop, 151 collectShop,
148 isFavShop, 152 isFavShop,
149 - isFavoriteBrand 153 + isFavoriteBrand,
  154 + num
150 }; 155 };
@@ -68,8 +68,11 @@ router.get('/detail/header', detail.productHeader); // ä»·æ  @@ -68,8 +68,11 @@ router.get('/detail/header', detail.productHeader); // ä»·æ 
68 router.get('/detail/return', detail.detailReturn); // 特殊商品退换货 68 router.get('/detail/return', detail.detailReturn); // 特殊商品退换货
69 router.get('/detail/recommend', detail.recommend); // 推荐商品 69 router.get('/detail/recommend', detail.recommend); // 推荐商品
70 router.get('/index/isfav', favorite.isFavoriteBrand); // 品牌收藏状态 70 router.get('/index/isfav', favorite.isFavoriteBrand); // 品牌收藏状态
  71 +router.get('/index/favnum', favorite.num); // 收藏数量
71 router.get('/detail/coupon', auth, coupon.acquire); // 获得优惠券 72 router.get('/detail/coupon', auth, coupon.acquire); // 获得优惠券
72 router.get('/detail/getPacakge', detail.getPackage); // 获取套餐 73 router.get('/detail/getPacakge', detail.getPackage); // 获取套餐
  74 +router.get('/detail/notify', detail.notifyStatus); // 到货通知状态
  75 +router.post('/detail/notify', detail.notify); // 增加到货通知
73 76
74 // 搜索 77 // 搜索
75 router.get('/search/index', search.index); 78 router.get('/search/index', search.index);