init
This commit is contained in:
19
pc/api/app.ts
Normal file
19
pc/api/app.ts
Normal file
@ -0,0 +1,19 @@
|
||||
//发送短信
|
||||
export function smsSend(params: any) {
|
||||
return $request.post({ url: '/index/sendSms', params })
|
||||
}
|
||||
|
||||
// 获取配置
|
||||
export function getConfig() {
|
||||
return $request.get({ url: '/pc/getConfig' })
|
||||
}
|
||||
|
||||
// 获取协议
|
||||
export function getPolicy(params: any) {
|
||||
return $request.get({ url: '/index/policy', params })
|
||||
}
|
||||
|
||||
// 上传图片
|
||||
export function uploadImage(params: any) {
|
||||
return $request.uploadFile({ url: '/upload/image' }, params)
|
||||
}
|
||||
Reference in New Issue
Block a user