homeEntry.ts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 markNoticeAsRead = params => {
  22. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/notice/markNoticeAsRead`, params);
  23. };
  24. //通知列表 一键已读
  25. export const markAllNoticesAsRead = params => {
  26. return http.post(PORT_NONE + `/notice/markAllNoticesAsRead`, params);
  27. };
  28. //今日订单量
  29. export const getTodayOrderCount = params => {
  30. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/storeManage/getTodayOrderCount`, params);
  31. };
  32. //今日预计收益
  33. export const getTodayIncome = params => {
  34. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/storeManage/getTodayIncome`, params);
  35. };
  36. //验券
  37. export const verifyOrder = params => {
  38. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/couponManage/verifyOrder`, params);
  39. };
  40. export const verifyCoupon = params => {
  41. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/couponManage/verifyCoupon`, params);
  42. };
  43. //保存用户信息
  44. export const updateMerchantUserInfo = params => {
  45. return http.post(PORT_NONE + `/merchantUser/updateMerchantUserInfo`, params);
  46. };
  47. //财务 可提现金额
  48. export const getAccountBalance = params => {
  49. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/incomeManage/getAccountBalance`, params);
  50. };
  51. //已到账金额/未到账金额
  52. export const getPaymentCycle = params => {
  53. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/incomeManage/getPaymentCycle`, params);
  54. };
  55. //今日可收益
  56. export const getGroupIncome = params => {
  57. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/incomeManage/getGroupIncome`, params);
  58. };
  59. //是否有支付密码
  60. export const checkPayPassword = params => {
  61. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/merchantUser/checkPayPassword`, params);
  62. };
  63. //设置提现密码
  64. export const setPayPassword = params => {
  65. return http.post(PORT_NONE + `/merchantUser/setPayPassword`, params);
  66. };
  67. //提现记录列表
  68. export const getCashOutRecordList = params => {
  69. return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/incomeManage/getCashOutRecordList`, params);
  70. };
  71. export const getUserByPhone = params => {
  72. return http.get(PORT_NONE + `/merchantUser/getMerchantByPhone`, params);
  73. };
  74. export const getDetail = params => {
  75. return http.get(PORT_NONE + `/storeManage/getStoreDetail`, params);
  76. };
  77. //重置商户到刚注册状态
  78. export const resetToInitialStatus = () => {
  79. return http.post(PORT_NONE + `/merchantUser/resetToInitialStatus`);
  80. };
  81. //添加支付宝账号
  82. export const addAlipayAccount = params => {
  83. return http.post(PORT_NONE + `/merchantUser/addAlipayAccount`, params);
  84. };
  85. //删除支付宝账号
  86. export const deleteAlipayAccount = () => {
  87. return http.post(PORT_NONE + `/merchantUser/deleteAlipayAccount`, {});
  88. };
  89. //提现申请-提交
  90. export const cashOut = params => {
  91. return http.post(PORT_NONE + `/incomeManage/cashOut`, params);
  92. };
  93. export const getCheckPayPasswordTwo = params => {
  94. return http.get(PORT_NONE + `/merchantUser/checkPayPassword`, params);
  95. };
  96. // 检查菜单访问权限(返回合同管理和食品经营许可证两个字段)
  97. export const checkMenuPermissions = params => {
  98. return http.get(PORT_NONE + `/storePlatformLogin/getExpirationTime`, params);
  99. };
  100. // 经营板块三级分类接口 - 一级分类
  101. export const getFirstLevelList = params => {
  102. return http.get(PORT_NONE + `/businessSection/getFirstLevelList`, params);
  103. };
  104. // 经营板块三级分类接口 - 二级分类
  105. export const getSecondLevelList = (params: { parentDictId: string }) => {
  106. return http.get(PORT_NONE + `/businessSection/getSecondLevelList`, params, { loading: false });
  107. };
  108. // 经营板块三级分类接口 - 三级分类
  109. export const getThirdLevelList = (params: { parentDictId: string }) => {
  110. return http.get(PORT_NONE + `/businessSection/getThirdLevelList`, params, { loading: false });
  111. };