fix(basepath): add basepath

This commit is contained in:
zhangheng
2026-02-28 15:43:50 +08:00
parent bcf46df7ec
commit 4aa29b80d1
14 changed files with 72 additions and 49 deletions

View File

@@ -2,9 +2,16 @@ import httpFetch from "@/api/fetch"
import { Daily } from "./typing"
import { BASE_LABEL_API } from "../const"
export const getDailyWorkList = (data: Daily.Request) => {
export const getSelfDailyWorkList = (data: Daily.Request) => {
return httpFetch<Daily.Response>({
url: BASE_LABEL_API + "/api/v1/label_server/daily_work/list",
url: BASE_LABEL_API + "/api/v1/label_server/daily_work/list/self",
method: "POST",
body: JSON.stringify(data),
})
}
export const getTeamDailyWorkList = (data: Daily.Request) => {
return httpFetch<Daily.Response>({
url: BASE_LABEL_API + "/api/v1/label_server/daily_work/list/team",
method: "POST",
body: JSON.stringify(data),
})