|
|
@@ -5,7 +5,7 @@ export const talentLabelingApi = {
|
|
|
getCardList: async () => {
|
|
|
return await request.get({
|
|
|
url: `/api/parse/get-business-cards`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL
|
|
|
+ baseURL: ''
|
|
|
})
|
|
|
},
|
|
|
|
|
|
@@ -13,7 +13,7 @@ export const talentLabelingApi = {
|
|
|
getTalentTagById: async (talent_id: number) => {
|
|
|
return await request.get({
|
|
|
url: `/api/parse/talent-get-tags/${talent_id}`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL
|
|
|
+ baseURL: ''
|
|
|
})
|
|
|
},
|
|
|
|
|
|
@@ -22,7 +22,7 @@ export const talentLabelingApi = {
|
|
|
return await request.post({
|
|
|
url: `/api/parse/talent-update-tags`,
|
|
|
data,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL
|
|
|
+ baseURL: ''
|
|
|
})
|
|
|
},
|
|
|
|
|
|
@@ -31,84 +31,84 @@ export const talentLabelingApi = {
|
|
|
return await request.put({
|
|
|
url: `/api/parse/update-business-cards/${talent_id}/status`,
|
|
|
data,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL
|
|
|
+ baseURL: ''
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// 获取人才名片
|
|
|
- getTalentCardByImagePath: async (image_path: string) => {
|
|
|
- return await request.download({
|
|
|
- url: `/api/parse/business-cards/image/${image_path}`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL
|
|
|
- })
|
|
|
- },
|
|
|
+ // getTalentCardByImagePath: async (image_path: string) => {
|
|
|
+ // return await request.download({
|
|
|
+ // url: `/api/parse/business-cards/image/${image_path}`,
|
|
|
+ // baseURL: ''
|
|
|
+ // })
|
|
|
+ // },
|
|
|
|
|
|
// 获取网页解析原始markdown
|
|
|
- getTalentMarkdown: async (image_path: string) => {
|
|
|
- return await request.downloadMarkdown({
|
|
|
- url: `/api/parse/business-cards/image/${image_path}`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL
|
|
|
- })
|
|
|
- },
|
|
|
+ // getTalentMarkdown: async (image_path: string) => {
|
|
|
+ // return await request.downloadMarkdown({
|
|
|
+ // url: `/api/parse/business-cards/image/${image_path}`,
|
|
|
+ // baseURL: ''
|
|
|
+ // })
|
|
|
+ // },
|
|
|
|
|
|
// 非结构化数据源 名片解析
|
|
|
- businessCardParse: async (data: any) => {
|
|
|
- return await request.upload({
|
|
|
- url: `/api/parse/business-card-parse`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL,
|
|
|
- data
|
|
|
- })
|
|
|
- },
|
|
|
+ // businessCardParse: async (data: any) => {
|
|
|
+ // return await request.upload({
|
|
|
+ // url: `/api/parse/business-card-parse`,
|
|
|
+ // baseURL: '',
|
|
|
+ // data
|
|
|
+ // })
|
|
|
+ // },
|
|
|
|
|
|
// 非结构化数据源 创建名片
|
|
|
- createBusinessCard: async (data: any) => {
|
|
|
- return await request.upload({
|
|
|
- url: `/api/parse/add-business-card`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL,
|
|
|
- data
|
|
|
- })
|
|
|
- },
|
|
|
+ // createBusinessCard: async (data: any) => {
|
|
|
+ // return await request.upload({
|
|
|
+ // url: `/api/parse/add-business-card`,
|
|
|
+ // baseURL: '',
|
|
|
+ // data
|
|
|
+ // })
|
|
|
+ // },
|
|
|
|
|
|
// 结构化数据源 创建名片(不传递文件)
|
|
|
- createBusinessCardPost: async (data: any) => {
|
|
|
- return await request.post({
|
|
|
- url: `/api/parse/add-business-card`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL,
|
|
|
- data
|
|
|
- })
|
|
|
- },
|
|
|
+ // createBusinessCardPost: async (data: any) => {
|
|
|
+ // return await request.post({
|
|
|
+ // url: `/api/parse/add-business-card`,
|
|
|
+ // baseURL: '',
|
|
|
+ // data
|
|
|
+ // })
|
|
|
+ // },
|
|
|
|
|
|
// 非结构化数据源 更新名片
|
|
|
updateBusinessCard: async (data: any, id: any) => {
|
|
|
return await request.put({
|
|
|
url: `/api/parse/business-cards/${id}`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL,
|
|
|
+ baseURL: '',
|
|
|
data
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// 非结构化数据源 更新名片状态
|
|
|
- updateBusinessCardStatus: async (data: any, id: any) => {
|
|
|
- return await request.put({
|
|
|
- url: `/api/parse/update-business-cards/${id}/status`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL,
|
|
|
- data
|
|
|
- })
|
|
|
- },
|
|
|
+ // updateBusinessCardStatus: async (data: any, id: any) => {
|
|
|
+ // return await request.put({
|
|
|
+ // url: `/api/parse/update-business-cards/${id}/status`,
|
|
|
+ // baseURL: '',
|
|
|
+ // data
|
|
|
+ // })
|
|
|
+ // },
|
|
|
|
|
|
// 非结构化数据源 获取名片图片
|
|
|
- getBusinessCardImage: async (path: any) => {
|
|
|
- return await request.download({
|
|
|
- url: `/api/parse/business-cards/image/${path}`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL
|
|
|
- })
|
|
|
- },
|
|
|
+ // getBusinessCardImage: async (path: any) => {
|
|
|
+ // return await request.download({
|
|
|
+ // url: `/api/parse/business-cards/image/${path}`,
|
|
|
+ // baseURL: ''
|
|
|
+ // })
|
|
|
+ // },
|
|
|
|
|
|
// 删除名片记录
|
|
|
deleteBusinessCard: async (id: any) => {
|
|
|
return await request.delete({
|
|
|
url: `/api/parse/delete-business-card/${id}`,
|
|
|
- baseURL: import.meta.env.VITE_BASE_URL
|
|
|
+ baseURL: ''
|
|
|
})
|
|
|
}
|
|
|
-}
|
|
|
+}
|