code-origin/pc/api/app.ts

20 lines
456 B
TypeScript
Raw Permalink Normal View History

2023-11-08 17:59:25 +08:00
//发送短信
export function smsSend(params: any) {
return $request.post({ url: '/sms/sendCode', params })
}
// 获取配置
export function getConfig() {
return $request.get({ url: '/pc/config' })
}
// 获取协议
export function getPolicy(params: any) {
return $request.get({ url: '/index/policy', params })
}
// 上传图片
export function uploadImage(params: any) {
return $request.uploadFile({ url: '/upload/image' }, params)
}