goods.js 492 B

123456789101112131415161718192021222324252627
  1. import request from '@/sheep/request';
  2. const goodsApi = {
  3. // 查询全部商品分类及分类下的商品
  4. getAll: () => {
  5. return request({
  6. url: '/restaurant/goods/getAll',
  7. method: 'POST',
  8. });
  9. },
  10. createOrder: (data) => {
  11. return request({
  12. url: '/restaurant/order/create',
  13. method: 'POST',
  14. data:data,
  15. custom: {
  16. showSuccess: true,
  17. successMsg: '更新成功'
  18. },
  19. });
  20. },
  21. };
  22. export default goodsApi;