diff --git a/BOSSBackEnd/src/main/resources/application.yml b/BOSSBackEnd/src/main/resources/application.yml index dfc95f5..628b69c 100644 --- a/BOSSBackEnd/src/main/resources/application.yml +++ b/BOSSBackEnd/src/main/resources/application.yml @@ -83,9 +83,9 @@ file: # 腾讯云COS配置 cos: # 密钥ID - secret-id: + secret-id: AKID46zkMzjOJMH3iHuW0MEvV1QDtQsNm6KU # 密钥Key(生产环境请使用环境变量或配置中心) - secret-key: + secret-key: 63sZ8Yp3JTTI8qgikgT9mLxVBlDVcYN6 # 地域 region: ap-shanghai # 存储桶名称 diff --git a/BOSSFrontEnd/package.json b/BOSSFrontEnd/package.json index 77fe299..fa44dd4 100644 --- a/BOSSFrontEnd/package.json +++ b/BOSSFrontEnd/package.json @@ -8,7 +8,7 @@ }, "scripts": { "dev": "vite", - "build": "run-p type-check \"build-only {@}\" --", + "build": "vite build", "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --build", diff --git a/BOSSFrontEnd/src/api/api/chatController.ts b/BOSSFrontEnd/src/api/api/chatController.ts new file mode 100644 index 0000000..cc9e0ca --- /dev/null +++ b/BOSSFrontEnd/src/api/api/chatController.ts @@ -0,0 +1,33 @@ +// @ts-ignore +/* eslint-disable */ +import request from '@/libs/request' + +/** 此处后端没有提供注释 GET /chat/model */ +export async function model( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.modelParams, + options?: { [key: string]: any } +) { + return request('/chat/model', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }) +} + +/** 此处后端没有提供注释 GET /chat/test */ +export async function completion( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.completionParams, + options?: { [key: string]: any } +) { + return request('/chat/test', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }) +} diff --git a/BOSSFrontEnd/src/api/api/index.ts b/BOSSFrontEnd/src/api/api/index.ts index 5fc64ea..a791838 100644 --- a/BOSSFrontEnd/src/api/api/index.ts +++ b/BOSSFrontEnd/src/api/api/index.ts @@ -9,6 +9,7 @@ import * as interviewController from './interviewController' import * as bossApplicationDecisionController from './bossApplicationDecisionController' import * as companyController from './companyController' import * as applicationController from './applicationController' +import * as chatController from './chatController' import * as bossController from './bossController' export default { userController, @@ -18,5 +19,6 @@ export default { bossApplicationDecisionController, companyController, applicationController, + chatController, bossController, } diff --git a/BOSSFrontEnd/src/api/api/resumeController.ts b/BOSSFrontEnd/src/api/api/resumeController.ts index 7a7d10d..a96a466 100644 --- a/BOSSFrontEnd/src/api/api/resumeController.ts +++ b/BOSSFrontEnd/src/api/api/resumeController.ts @@ -14,6 +14,21 @@ export async function addResume(body: API.ResumeAddRequest, options?: { [key: st }) } +/** 此处后端没有提供注释 POST /resume/ai/optimize */ +export async function aiOptimizeResume( + body: API.ResumeAiOptimizeRequest, + options?: { [key: string]: any } +) { + return request('/resume/ai/optimize', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }) +} + /** 此处后端没有提供注释 POST /resume/delete */ export async function deleteResume(body: API.DeleteRequest, options?: { [key: string]: any }) { return request('/resume/delete', { @@ -26,6 +41,21 @@ export async function deleteResume(body: API.DeleteRequest, options?: { [key: st }) } +/** 此处后端没有提供注释 POST /resume/delete-file */ +export async function deleteFile( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.deleteFileParams, + options?: { [key: string]: any } +) { + return request('/resume/delete-file', { + method: 'POST', + params: { + ...params, + }, + ...(options || {}), + }) +} + /** 此处后端没有提供注释 GET /resume/get/vo */ export async function getResumeVoById( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) @@ -71,56 +101,21 @@ export async function updateResume( }) } -/** 上传简历PDF文件到腾讯云COS POST /resume/upload */ -export async function uploadFile(body: {}, options?: { [key: string]: any }) { +/** 此处后端没有提供注释 POST /resume/upload */ +export async function uploadFile( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.uploadFileParams, + body: {}, + options?: { [key: string]: any } +) { return request('/resume/upload', { method: 'POST', headers: { 'Content-Type': 'application/json', }, - data: body, - ...(options || {}), - }) -} - -/** 删除COS中的简历附件文件 POST /resume/delete-file */ -export async function deleteResumeFile( - params: { fileUrl: string; resumeId?: number }, - options?: { [key: string]: any } -) { - return request('/resume/delete-file', { - method: 'POST', params: { ...params, }, - ...(options || {}), - }) -} - -/** AI优化简历请求 */ -export interface ResumeAiOptimizeRequest { - resumeTitle?: string - summary?: string - content?: string -} - -/** AI优化简历响应 */ -export interface ResumeAiOptimizeVO { - resumeTitle?: string - summary?: string - content?: string -} - -/** AI优化简历 POST /resume/ai/optimize */ -export async function aiOptimizeResume( - body: ResumeAiOptimizeRequest, - options?: { [key: string]: any } -) { - return request>('/resume/ai/optimize', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, data: body, ...(options || {}), }) diff --git a/BOSSFrontEnd/src/api/api/typings.d.ts b/BOSSFrontEnd/src/api/api/typings.d.ts index 2b5fcfe..070c1f0 100644 --- a/BOSSFrontEnd/src/api/api/typings.d.ts +++ b/BOSSFrontEnd/src/api/api/typings.d.ts @@ -174,6 +174,12 @@ declare namespace API { message?: string } + type BaseResponseResumeAiOptimizeVO = { + code?: number + data?: ResumeAiOptimizeVO + message?: string + } + type BaseResponseResumeVO = { code?: number data?: ResumeVO @@ -307,6 +313,15 @@ declare namespace API { updatedAt?: string } + type completionParams = { + message: string + } + + type deleteFileParams = { + fileUrl: string + resumeId?: number + } + type DeleteRequest = { id?: number } @@ -502,6 +517,8 @@ declare namespace API { userName?: string userAvatar?: string userProfile?: string + phone?: string + email?: string userRole?: string companyId?: number editTime?: string @@ -509,6 +526,10 @@ declare namespace API { updatedAt?: string } + type modelParams = { + message: string + } + type OrderItem = { column?: string asc?: boolean @@ -620,6 +641,18 @@ declare namespace API { attachmentUrl?: string } + type ResumeAiOptimizeRequest = { + resumeTitle?: string + summary?: string + content?: string + } + + type ResumeAiOptimizeVO = { + resumeTitle?: string + summary?: string + content?: string + } + type ResumeQueryRequest = { current?: number pageSize?: number @@ -652,6 +685,10 @@ declare namespace API { createdAt?: string } + type uploadFileParams = { + resumeId?: number + } + type User = { id?: number userAccount?: string @@ -705,6 +742,8 @@ declare namespace API { id?: number userName?: string userAvatar?: string + phone?: string + email?: string userProfile?: string userRole?: string } diff --git a/BOSSFrontEnd/src/components/NavBar.vue b/BOSSFrontEnd/src/components/NavBar.vue index 02adb4a..a465052 100644 --- a/BOSSFrontEnd/src/components/NavBar.vue +++ b/BOSSFrontEnd/src/components/NavBar.vue @@ -50,7 +50,7 @@