api.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. // const WX_API_BASE = 'https://www.qianjiadi.com/'
  2. // const WX_API_BASE = 'http://ch.jihengcc.cn:17080/'
  3. const WX_API_BASE = 'https://test.jihengcc.cn/'
  4. module.exports = {
  5. // 微信登录
  6. WxLogin: WX_API_BASE + 'app/auth/merchant/wx/login',
  7. // 微信登录
  8. getWxUserPhone: WX_API_BASE + 'app/auth/wx/getWxUserPhone',
  9. // 授权码登录
  10. authorizeSignIn: WX_API_BASE + 'app/auth/merchant/authCodeRegister',
  11. // 注册商铺数据
  12. submitShopRegisterInfo: WX_API_BASE + 'app/auth/merchant/register',
  13. // 编辑商铺数据
  14. editShopRegisterInfo: WX_API_BASE + 'app/auth/merchant/updateMerchantInfo',
  15. // 获取商铺注册数据
  16. getShopRegisterInfo: WX_API_BASE + 'app/auth/merchant/findMerchantInfo',
  17. // 获取商铺注册状态
  18. getShopRegisterStatu: WX_API_BASE + 'app/auth/merchant/findMerchantAuditStatus',
  19. // 获取后台管理账号密码
  20. getManageInfo: WX_API_BASE + 'app/auth/merchant/backgroundUserInfo',
  21. // 获取本月销售额
  22. getShopSellInfo: WX_API_BASE + 'app/merchants/productOrderSumMouth',
  23. // 获取销售数据
  24. getSellInfo: WX_API_BASE + 'app/merchants/productOrderStatistics/',
  25. // 获取商品列表
  26. getGoodList: WX_API_BASE + 'app/product/queryTenantProductPage',
  27. // 流转商品状态
  28. setGoodsStatus: WX_API_BASE + 'app/product/batchManagementProduct',
  29. // 获取分类
  30. getSortList: WX_API_BASE + 'app/productCategory/categoryInitialization',
  31. // 新增商品
  32. addGood: WX_API_BASE + 'app/product/insertTenantProduct',
  33. // 查询商品详情
  34. getGoodDetail: WX_API_BASE + 'app/product/tenantProductInfo',
  35. // 编辑商品
  36. editGood: WX_API_BASE + 'app/product/updateTenantProduct',
  37. // 获取直播Id
  38. getLiveId: WX_API_BASE + 'app/liveAndVideo/merchant/liveAndVideoInit',
  39. // 获取直播设置详情
  40. getLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/',
  41. // 开启直播
  42. creatLive: WX_API_BASE + 'app/liveAndVideo/merchant/updateLiveStatus',
  43. // 设置直播设置
  44. setLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/addLive',
  45. // 编辑直播设置
  46. editLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/updateLive',
  47. // 绑定直播商品
  48. bindLiveGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/addLiveProductRel',
  49. // 获取已绑定直播的商品
  50. getBindedLiveGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/chooseProductList',
  51. // 获取短视频列表
  52. getVideoList: WX_API_BASE + 'app/liveAndVideo/merchant/videoList/',
  53. // 删除短视频
  54. deleteVideo: WX_API_BASE + 'app/liveAndVideo/merchant/batchDeleteVideo',
  55. // 获取短视频商品
  56. getVideoGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetailOrVideoDetail/productList',
  57. // 获取短视频已绑定商品
  58. getVideoBindGoods: WX_API_BASE + 'app/liveAndVideo/merchant/videoDetail/chooseProductList',
  59. // 上传短视频
  60. addVideo: WX_API_BASE + 'app/liveAndVideo/merchant/addVideoByQjd',
  61. // 编辑短视频
  62. editVideo: WX_API_BASE + 'app/liveAndVideo/merchant/updateVideo',
  63. // 获取短视频详情
  64. getVideoDetail: WX_API_BASE + 'app/liveAndVideo/merchant/updateVideoInit',
  65. // 初始化自助采摘视频
  66. creatPickVideo: WX_API_BASE + 'app/liveAndVideo/merchant/addPickLive',
  67. // 获取订单列表
  68. getOrderList: WX_API_BASE + 'app/order/merchant/my/orderList/',
  69. // 绑定快递
  70. bindOrder: WX_API_BASE + 'app/order/merchant/my/orderList/updateOrderByDG',
  71. // 查询物流信息
  72. getLogisticsDeatil: WX_API_BASE + 'app/order/getShippingTrace/',
  73. // 回复订单评价
  74. evaluateOrder: WX_API_BASE + 'app/order/merchant/my/orderList/updateOrderEvaluateByReply',
  75. // 发布留言
  76. addMessage: WX_API_BASE + 'app/order/user/my/orderList/orderDetail/leaMsgList/addLeaMsg',
  77. // 获取订单详情
  78. getOrderDetail: WX_API_BASE + 'app/order/user/my/orderList/orderDetail',
  79. // 查询优惠券列表
  80. getCouponList: WX_API_BASE + 'app/merchants/merchantsCouponGrantPage',
  81. // 发放优惠券
  82. addCoupon: WX_API_BASE + 'app/merchants/merchantsGrantCoupon',
  83. // 查询授权用户列表
  84. getAuthorizeList: WX_API_BASE + 'app/auth/merchant/my/authUserList/',
  85. // 生成授权码
  86. createAuthorizeCode: WX_API_BASE + 'app/auth/merchant/my/authUserList/createAuthCode',
  87. // 获取用户授权详情
  88. getAuthorizeDetail: WX_API_BASE + 'app/auth/merchant/my/authUserInfo/',
  89. // 用户授权
  90. setAuthorize: WX_API_BASE + 'app/auth/merchant/my/authUserInfo/updateAuth/',
  91. // 删除授权用户
  92. deleteAuthorizeUser: WX_API_BASE + 'app/auth/merchant/my/delAuthUser/',
  93. // 上传文件
  94. uploadFile: WX_API_BASE + 'app/files/upload',
  95. }