Authored by htoooth

add api

... ... @@ -299,6 +299,14 @@ const getPackage = (req, res, next) => {
.catch(next);
};
const notifyStatus = (req, res, next) => {
};
const notify = (req, res, next) => {
};
module.exports = {
showMain,
indexHotArea,
... ... @@ -310,7 +318,9 @@ module.exports = {
recommend,
getPackage,
likeConsult,
usefulConsult
usefulConsult,
notifyStatus,
notify
};
... ...
... ... @@ -141,10 +141,15 @@ const isFavShop = (req, res, next) => {
}).catch(next);
};
const num = (req, res, next) => {
};
module.exports = {
changeFavoriteBrand,
collectProduct,
collectShop,
isFavShop,
isFavoriteBrand
isFavoriteBrand,
num
};
... ...
... ... @@ -68,8 +68,11 @@ router.get('/detail/header', detail.productHeader); // ä»·æ 
router.get('/detail/return', detail.detailReturn); // 特殊商品退换货
router.get('/detail/recommend', detail.recommend); // 推荐商品
router.get('/index/isfav', favorite.isFavoriteBrand); // 品牌收藏状态
router.get('/index/favnum', favorite.num); // 收藏数量
router.get('/detail/coupon', auth, coupon.acquire); // 获得优惠券
router.get('/detail/getPacakge', detail.getPackage); // 获取套餐
router.get('/detail/notify', detail.notifyStatus); // 到货通知状态
router.post('/detail/notify', detail.notify); // 增加到货通知
// 搜索
router.get('/search/index', search.index);
... ...