u
This commit is contained in:
1 parent
52112bd277
commit
1da52dc4f4
66 files changed
+3294
-721
No files matched your search
@@ -10,3 +10,4 @@ export function registerApi(params: registerApiParams) {
|
||||
export function forgetApi(params: forgetApiParams) {
|
||||
return httpPostJson<null>(`/auth/forget`, params)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import type { AuthCodeSendParams, AuthCodeSendResult, AuthCodeVerifyParams, AuthCodeVerifyResult } from '@/types/auth/code'
|
||||
import { httpPostJson } from '@/request/utils'
|
||||
|
||||
export function authCodeSendApi(params: AuthCodeSendParams) {
|
||||
return httpPostJson<AuthCodeSendResult>(`/auth/code/send`, params)
|
||||
}
|
||||
|
||||
export function authCodeVerifyApi(params: AuthCodeVerifyParams) {
|
||||
return httpPostJson<AuthCodeVerifyResult>(`/auth/code/verify`, params)
|
||||
}
|
||||
@@ -2,5 +2,5 @@ import type { IndustryResult } from '@/types/company/index'
|
||||
import { httpGet } from '../utils'
|
||||
|
||||
export function getPropertyListApi() {
|
||||
return httpGet<IndustryResult>(`/webProperty/list`)
|
||||
return httpGet<IndustryResult>(`/base/industry/list`)
|
||||
}
|
||||
@@ -124,13 +124,4 @@ function isDownloadResponse(headers: any): boolean {
|
||||
return /application\/(?:octet-stream|force-download|pdf|vnd.ms-excel|msexcel|OCTET-STREAM)/.test(contentType || '')
|
||||
}
|
||||
|
||||
function parseJsonOrReturnString(input: any) {
|
||||
try {
|
||||
return JSON.parse(input)
|
||||
}
|
||||
catch {
|
||||
return input
|
||||
}
|
||||
}
|
||||
|
||||
export default axiosInstance
|
||||
Reference in new issue
Block a user