test_lgq/web/api/system.ts

76 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
/**
*
*/
export function getCaptcha() {
return request.get('captcha', { time: (new Date().getTime()) })
}
/**
*
*/
export function getWechatAuthCode(data: AnyObject) {
return request.get('wechat/codeurl', data)
}
/**
*
*/
export function wechatSync(data: AnyObject) {
return request.get('wechat/sync', data)
}
/**
*
*/
export function getAgreementInfo(key: string) {
return request.get(`agreement/${key}`)
}
/**
*
*/
export function resetPassword(data: AnyObject) {
return request.post(`password/reset`, data)
}
/**
*
*/
export function sendSms(data: AnyObject) {
return request.post(`send/mobile/${data.type}`, data)
}
/**
* jssdk config
*/
export function getWechatSkdConfig(data: AnyObject) {
return request.get('wechat/jssdkconfig', data)
}
/**
*
*/
export function fetchImage(data: AnyObject) {
return request.post('file/image/fetch', data)
}
/**
* base64图片
*/
export function fetchBase64Image(data: AnyObject) {
return request.post('file/image/base64', data)
}
/**
*
*/
export function getCopyRight(data: AnyObject) {
return request.get('copyright', data)
}
/**
*
*/
export function getSiteInfo() {
return request.get('site')
}