u
This commit is contained in:
1 parent
7cd7bbd166
commit
ff327ba2fd
47 files changed
+4362
-1230
No files matched your search
@@ -1,6 +1,14 @@
|
||||
import type { InitBaseDataResult } from '@/types/base'
|
||||
import { httpGet } from '@/request/utils'
|
||||
import type { AddFileParams, GetAliyunKeyResult, InitBaseDataResult } from '@/types/base'
|
||||
import { httpGet, httpPostJson } from '@/request/utils'
|
||||
|
||||
export function initBaseApi() {
|
||||
return httpGet<InitBaseDataResult>(`/base/init`)
|
||||
}
|
||||
|
||||
export function getAliyunKeyApi() {
|
||||
return httpGet<GetAliyunKeyResult>(`/base/file/getAliyunKey`)
|
||||
}
|
||||
|
||||
export function addFileApi(params: AddFileParams) {
|
||||
return httpPostJson<void>(`/base/file/add`, params)
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { RecommendCompany, RecommendHotCompany } from '@/types/company'
|
||||
import { httpGet } from '@/request/utils'
|
||||
import type { CompanyDetail, CompanyListItem, QueryCompanyParams, RecommendCompany, RecommendHotCompany } from '@/types/company'
|
||||
import { httpGet, httpPostJson } from '@/request/utils'
|
||||
|
||||
export function getRecommendCompanyApi() {
|
||||
return httpGet<RecommendCompany[]>('/company/recommend')
|
||||
@@ -8,3 +8,11 @@ export function getRecommendCompanyApi() {
|
||||
export function getRecommendHotCompanyApi() {
|
||||
return httpGet<RecommendHotCompany[]>('/company/recommend/hot')
|
||||
}
|
||||
|
||||
export function queryCompanyApi(params: QueryCompanyParams) {
|
||||
return httpPostJson<BasePageResult<CompanyListItem>>('/company/query', params)
|
||||
}
|
||||
|
||||
export function getCompanyDetailApi(id: number) {
|
||||
return httpGet<CompanyDetail>(`/company/detail/${id}`)
|
||||
}
|
||||
Reference in new issue
Block a user