homeEntry.ts 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import { ResPage, StoreUser } from "@/api/interface/index";
  2. import { PORT_NONE } from "@/api/config/servicePort";
  3. import http from "@/api";
  4. //个人实名
  5. export const verifyIdInfo = params => {
  6. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/merchantAuth/verifyIdInfo`, params);
  7. };
  8. //信息提交
  9. export const applyStore = params => {
  10. return http.post(PORT_NONE + `/storeManage/applyStore`, params);
  11. };
  12. //用户信息查询
  13. export const getMerchantByPhone = params => {
  14. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/merchantUser/getMerchantByPhone`, params);
  15. };
  16. //通知列表
  17. export const getNoticeList = params => {
  18. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/notice/getNoticeList`, params);
  19. };
  20. //通知列表 一键已读
  21. export const markAllNoticesAsRead = params => {
  22. return http.post(PORT_NONE + `/notice/markAllNoticesAsRead`, params);
  23. };
  24. //今日订单量
  25. export const getTodayOrderCount = params => {
  26. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/storeManage/getTodayOrderCount`, params);
  27. };
  28. //今日预计收益
  29. export const getTodayIncome = params => {
  30. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/storeManage/getTodayIncome`, params);
  31. };
  32. //验券
  33. export const verifyOrder = params => {
  34. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/couponManage/verifyOrder`, params);
  35. };
  36. export const verifyCoupon = params => {
  37. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/couponManage/verifyCoupon`, params);
  38. };
  39. //保存用户信息
  40. export const updateMerchantUserInfo = params => {
  41. return http.post(PORT_NONE + `/merchantUser/updateMerchantUserInfo`, params);
  42. };
  43. //财务 可提现金额
  44. export const getAccountBalance = params => {
  45. return http.post(PORT_NONE + `/incomeManage/getAccountBalance`, params);
  46. };
  47. export const getUserByPhone = params => {
  48. return http.get(PORT_NONE + `/merchantUser/getMerchantByPhone`, params);
  49. };
  50. export const getDetail = params => {
  51. return http.get(PORT_NONE + `/storeManage/getStoreDetail`, params);
  52. };