feat(workload): add workload list
This commit is contained in:
36
components/label/api/workload/index.ts
Normal file
36
components/label/api/workload/index.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import httpFetch from "@/api/fetch"
|
||||
import { BASE_LABEL_API } from "../const"
|
||||
import { TimeFilter, WorkLoad } from "./typing"
|
||||
|
||||
// 标注个人工作量统计
|
||||
export const getLabelStatisticsList = (params: TimeFilter) => {
|
||||
return httpFetch<WorkLoad.LabelResponse>({
|
||||
url:
|
||||
BASE_LABEL_API +
|
||||
"/api/v1/label_server/workload/label_statistics/list_by_user",
|
||||
method: "GET",
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 审核个人工作量统计
|
||||
export const getReview1StatisticsList = (params: TimeFilter) => {
|
||||
return httpFetch<WorkLoad.Review1Response>({
|
||||
url:
|
||||
BASE_LABEL_API +
|
||||
"/api/v1/label_server/workload/review1_statistics/list_by_user",
|
||||
method: "GET",
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 复审个人工作量统计
|
||||
export const getReview2StatisticsList = (params: TimeFilter) => {
|
||||
return httpFetch<WorkLoad.Review2Response>({
|
||||
url:
|
||||
BASE_LABEL_API +
|
||||
"/api/v1/label_server/workload/review2_statistics/list_by_user",
|
||||
method: "GET",
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user