orderManagement.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { ResPage, StoreUser } from "@/api/interface/index";
  2. import { PORT_NONE } from "@/api/config/servicePort";
  3. import http from "@/api";
  4. export const getThaliList = params => {
  5. return http.get<ResPage<StoreUser.ResStoreUserList>>(PORT_NONE + `/PcGroupBuy/getThaliList`, params);
  6. };
  7. export const getCpList = params => {
  8. return http.get<ResPage<StoreUser.ResStoreUserList>>(PORT_NONE + `/PcGroupBuy/getCpList`, params);
  9. };
  10. export const deleteThali = (params: { id: string }) => {
  11. return http.delete(PORT_NONE + `/PcGroupBuy/deleteThali`, params);
  12. };
  13. export const sjxj = params => {
  14. return http.get(PORT_NONE + `/PcGroupBuy/sjxj`, params);
  15. };
  16. export const xgkc = params => {
  17. return http.get(PORT_NONE + `/PcGroupBuy/xgkc`, params);
  18. };
  19. export const saveDraft = params => {
  20. return http.post(PORT_NONE + `/PcGroupBuy/saveDraft`, params);
  21. };
  22. export const getUserByPhone = params => {
  23. return http.get(PORT_NONE + `/store/user/getUserByPhone`, params);
  24. };
  25. export const getDetail = params => {
  26. return http.get(PORT_NONE + `/store/info/getDetail`, params);
  27. };
  28. export const getMenuByStoreId = params => {
  29. return http.get(PORT_NONE + `/menuPlatform/getMenuByStoreId`, params);
  30. };
  31. export const getHolidayList = (params: any) => {
  32. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/couponPlatform/getHolidayList`, params);
  33. };
  34. export const getStoreDetail = (params: StoreUser.ReqUserParams) => {
  35. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/store/info/getStoreDetail`, params);
  36. };