Files
lilishop-ui/manager/src/api/common.js
2026-07-13 14:30:09 +08:00

33 lines
1.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {managerApiUrl, getRequest, getRequestWithNoToken, postRequestWithNoToken,uploadFileRequest,uploadFile} from '@/libs/axios';
// 通过id获取子地区
export const getChildRegion = (id) => {
return getRequest(`${managerApiUrl}/manager/common/region/item/${id}`);
};
// 点地图获取地址信息
export const getRegion = (params) => {
return getRequest(`${managerApiUrl}/manager/common/region/region`, params);
};
// 获取拼图验证
export const getVerifyImg = (verificationEnums) => {
return getRequestWithNoToken(`${managerApiUrl}/manager/common/slider/${verificationEnums}`);
};
// 拼图验证
export const postVerifyImg = (params) => {
return postRequestWithNoToken(`${managerApiUrl}/manager/common/slider/${params.verificationEnums}`, params);
};
// 获取系统基础信息(登录页等场景无需 token
export const getBaseSite = () => {
return getRequestWithNoToken(`${managerApiUrl}/manager/common/site`);
};
// 上传文件
export const upLoadFile = (bold) =>{
return uploadFileRequest(uploadFile,bold);
}