fix:新增岗位分析五个图表
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
// 行业
|
||||
export async function getIndustryTrend(params?: API.Analysis.IndustryParams) {
|
||||
return request<API.Analysis.IndustryResult>('/api/cms/statics/industry', {
|
||||
method: 'GET',
|
||||
params
|
||||
});
|
||||
}
|
||||
// 区域热力图
|
||||
export async function getIndustryAreaTrend(params: any) {
|
||||
try {
|
||||
const response = await request('/api/cms/statics/industryArea', {
|
||||
@@ -23,10 +24,24 @@ export async function getIndustryAreaTrend(params: any) {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
// 薪资
|
||||
export async function getSalaryTrend(params?: API.Analysis.IndustryParams) {
|
||||
return request<API.Analysis.IndustryResult>('/api/cms/statics/salary', {
|
||||
method: 'GET',
|
||||
params
|
||||
});
|
||||
}
|
||||
// 工作年限
|
||||
export async function getWorkYearTrend(params?: API.Analysis.IndustryParams) {
|
||||
return request<API.Analysis.IndustryResult>('/api/cms/statics/workYear', {
|
||||
method: 'GET',
|
||||
params
|
||||
});
|
||||
}
|
||||
// 学历趋势
|
||||
export async function getEducationTrend(params?: API.Analysis.IndustryParams) {
|
||||
return request<API.Analysis.IndustryResult>('/api/cms/statics/education', {
|
||||
method: 'GET',
|
||||
params
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user