| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- import { ResPage, StoreUser } from "@/api/interface/index";
- import { PORT_NONE } from "@/api/config/servicePort";
- import http from "@/api";
- //个人实名
- export const verifyIdInfo = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/merchantAuth/verifyIdInfo`, params);
- };
- //信息提交
- export const applyStore = params => {
- return http.post(PORT_NONE + `/storeManage/applyStore`, params);
- };
- //用户信息查询
- export const getMerchantByPhone = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/merchantUser/getMerchantByPhone`, params);
- };
- //通知列表
- export const getNoticeList = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/notice/getNoticeList`, params);
- };
- //通知查看详情标记已读
- export const markNoticeAsRead = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/notice/markNoticeAsRead`, params);
- };
- //通知列表 一键已读
- export const markAllNoticesAsRead = params => {
- return http.post(PORT_NONE + `/notice/markAllNoticesAsRead`, params);
- };
- //今日订单量
- export const getTodayOrderCount = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/storeManage/getTodayOrderCount`, params);
- };
- //今日预计收益
- export const getTodayIncome = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/storeManage/getTodayIncome`, params);
- };
- //验券
- export const verifyOrder = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/couponManage/verifyOrder`, params);
- };
- export const verifyCoupon = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/couponManage/verifyCoupon`, params);
- };
- //保存用户信息
- export const updateMerchantUserInfo = params => {
- return http.post(PORT_NONE + `/merchantUser/updateMerchantUserInfo`, params);
- };
- //财务 可提现金额
- export const getAccountBalance = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/incomeManage/getAccountBalance`, params);
- };
- //已到账金额/未到账金额
- export const getPaymentCycle = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/incomeManage/getPaymentCycle`, params);
- };
- //今日可收益
- export const getGroupIncome = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/incomeManage/getGroupIncome`, params);
- };
- //是否有支付密码
- export const checkPayPassword = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/merchantUser/checkPayPassword`, params);
- };
- //设置提现密码
- export const setPayPassword = params => {
- return http.post(PORT_NONE + `/merchantUser/setPayPassword`, params);
- };
- //提现记录列表
- export const getCashOutRecordList = params => {
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/incomeManage/getCashOutRecordList`, params);
- };
- export const getUserByPhone = params => {
- return http.get(PORT_NONE + `/merchantUser/getMerchantByPhone`, params);
- };
- export const getDetail = params => {
- return http.get(PORT_NONE + `/storeManage/getStoreDetail`, params);
- };
- //重置商户到刚注册状态
- export const resetToInitialStatus = () => {
- return http.post(PORT_NONE + `/merchantUser/resetToInitialStatus`);
- };
- //添加支付宝账号
- export const addAlipayAccount = params => {
- return http.post(PORT_NONE + `/merchantUser/addAlipayAccount`, params);
- };
- //删除支付宝账号
- export const deleteAlipayAccount = () => {
- return http.post(PORT_NONE + `/merchantUser/deleteAlipayAccount`, {});
- };
- //提现申请-提交
- export const cashOut = params => {
- return http.post(PORT_NONE + `/incomeManage/cashOut`, params);
- };
- export const getCheckPayPasswordTwo = params => {
- return http.get(PORT_NONE + `/merchantUser/checkPayPassword`, params);
- };
- // 检查菜单访问权限(返回合同管理和食品经营许可证两个字段)
- export const checkMenuPermissions = params => {
- return http.get(PORT_NONE + `/storePlatformLogin/getExpirationTime`, params);
- };
- // 经营板块三级分类接口 - 一级分类
- export const getFirstLevelList = params => {
- return http.get(PORT_NONE + `/businessSection/getFirstLevelList`, params);
- };
- // 经营板块三级分类接口 - 二级分类
- export const getSecondLevelList = (params: { parentDictId: string }) => {
- return http.get(PORT_NONE + `/businessSection/getSecondLevelList`, params, { loading: false });
- };
- // 经营板块三级分类接口 - 三级分类
- export const getThirdLevelList = (params: { parentDictId: string }) => {
- return http.get(PORT_NONE + `/businessSection/getThirdLevelList`, params, { loading: false });
- };
|