/** * 服务端接口 * */ var util = require('util.js'); //认证接口 var auth = { //查询认证信息 getAuthInfo: '/wxapi/auth/findAuth', add: '/wxapi/auth/add', modify: '/wxapi/auth/modify', storeQuery: '/wxapi/shopStoreAction/getshopStore', //绑定手机号 bindingPhoneNumber:"/wxapi/shopBindingPhoneNumber/bindingPhoneNumber", } //广告 var ad = { //首页轮播图 getByType: '/wxapi/ad/getByType/', //根据页面code获取页面的广告元素 getAdPage: '/wxapi/ad/getAdPage/', //根据code找广告 getAdByCode:'/wxapi/ad/getAdByCode', } var article = { //根据类型查询文章分类 findArticleByType: '/wxapi/article/findArticleByType', findArticleType: '/wxapi/Article/findArticleType', findArticById: '/wxapi/Article/findArticById/', findArtice: '/wxapi/Article/findArticle' } var address = { newaddress: '/wxapi/shopAddressAction/saveReceiveAddress', editaddress: '/wxapi/shopAddressAction/updateReceiveAddress', queryaddress: '/wxapi/shopAddressAction/findReceiveAddress', deleteladdress: '/wxapi/shopAddressAction/deleteByAddrId', showaddress: '/wxapi/shopAddressAction/findAddrByAddrId' } //优惠券模块 var coupon = { //领取优惠券 receiveCoupon: "/wxapi/shopCoupon/receiveCoupon/", //根据tag查询优惠券 getCouponListByTag: "/wxapi/shopCoupon/getCouponListByTag/", } //产品相关模块 var goods = { //搜索产品 searchGoods: "/wxapi/ShopProduct/getShopProductShowList", //查询产品详情 productInfo: "/wxapi/ShopProduct/getProductById/", //加入产品到购物车 saveShoppingCart: "/wxapi/ShoppingCart/saveShoppingCart", //获取购物车数量 getUserCartCount:"/wxapi/ShoppingCart/getUserCartCount/", } //数据字典 var dataDictionary = { //根据父节点字段获取子节点列表 getListByParentCode:"/wxapi/dataDictionary/getListByParentCode/", //根据code获取字典getByCode getByCode: "/wxapi/dataDictionary/getByCode/", } //购物车 var shoppingCart={ //查询购物车列表 findShoppingCart:"/wxapi/ShoppingCart/findShoppingCart", updateCarNumberByCartId:"/wxapi/ShoppingCart/updateCarNumberByCartId/", updateCartAllSelected:'/wxapi/ShoppingCart/updateCartAllSelected/', updateCartSelected:'/wxapi/ShoppingCart/updateCartSelected/', deleteByCartId:'/wxapi/ShoppingCart/deleteByCartId/', } //订单接口 var order={ //计算下单界面数据 calculationCartOrder: "/wxapi/shopOrder/calculationCartOrder", getOrderStatusCount: "/wxapi/shopOrder/getOrderStatusCount", } //预约接口 var yuyue = { //获取门店列表 getShopList: "/wxapi/yuyue/getShopList", //根据id获取门店信息 findShopInfoById: "/wxapi/yuyue/findShopInfoById", //获取预约时间表 getTimeList: "/wxapi/yuyue/getTimeList", //获取预约日期 getYYDayAndWeek: "/wxapi/yuyue/getYYDayAndWeek", //获取排版美疗师列表 getPaiBanBeauticianList:"/wxapi/yuyue/getPaiBanBeauticianList", //创建预约单 createServiceOrder:"/wxapi/yuyue/createServiceOrder", //根据id查询预约订单的详情 getServiceOrderById:"/wxapi/yuyue/getServiceOrderById/", //取消订单 cancelOrderById:"/wxapi/yuyue/cancelOrderById/", //搜索订单列表 getServiceOrderList: "/wxapi/yuyue/getServiceOrderList", //删除订单 removeOrderById:"/wxapi/yuyue/removeOrderById/" } var productAttribute={ getByCode:"/wxapi/ProductAttribute/getByCode/" } //团购接口 var groupBuy = { //查询进行中的团购列表 showGroupByList: "/wxapi/groupBuy/showGroupByList/", //查询拼团详情{actId} findGroupBuyInfo:"/wxapi/groupBuy/findGroupBuyInfo/", //查询用户拼团信息{actId} findOwnerGroupBuyInfo:"/wxapi/groupBuy/findOwnerGroupBuyInfo/", //查询成团的信息,团成员 findGroupJoinInfo:"/wxapi/groupBuy/findGroupJoinInfo/", //拼团开团接口 createGroupBuy:"/wxapi/groupBuy/createGroupBuy", //加入拼团接口 joinGroupBuy:"/wxapi/groupBuy/joinGroupBuy", //计算价格 calPrice:"/wxapi/groupBuy/calPrice", } //秒杀活动 var seckill={ //查询当前门店正在进行的秒杀活动 findSecKillActList:"/wxapi/seckill/findSecKillActList/", //查询一场活动的产品列表 findSecKillGoodsListById:"/wxapi/seckill/findSecKillGoodsListById/", //查询秒杀详情 findSecKillGoodsInfo:"/wxapi/seckill/findSecKillGoodsInfo/", //计算秒杀价格 calSecKillPrice:"/wxapi/seckill/calSecKillPrice", //创建秒杀订单 createSecKill:"/wxapi/seckill/createSecKill", } var shalong={ //查询沙龙活动 findSalong:"/wxapi/salon/findSalonActivitiesInPage", //根据id查询沙龙详情 findSalongById:"/wxapi/salon/findSalonInfoById/", //报名沙龙 joinSalong:"/wxapi/salon/joinSalonActivity" } //皮肤检测接口 var checkInfo={ //检测记录列表查询 recordList:"/wxapi/skinCheck/showSkinList", findById:"/wxapi/skinCheck/findById" } module.exports = { auth: auth, dataDictionary: dataDictionary, ad: ad, article: article, address: address, coupon: coupon, goods: goods, shoppingCart: shoppingCart, order: order, yuyue: yuyue, productAttribute: productAttribute, groupBuy: groupBuy, checkInfo: checkInfo, seckill:seckill, shalong:shalong, }