From 037fb36aaf4123ef143ac48038a0b171418a20e5 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 11 八月 2025 10:00:18 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp --- apps/bMiniApp/src/utils/request/index.ts | 2 apps/bMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue | 7 apps/cMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue | 8 apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue | 28 ++-- apps/cMiniApp/src/subpackages/task/components/CompanyDesc.vue | 7 apps/cMiniApp/src/utils/request/index.ts | 2 packages/services/apiV2/userResume.ts | 223 +++++++++++++++++++++++++++++++++++++ apps/cMiniApp/src/stores/modules/user.ts | 16 +- apps/bMiniApp/project.config.json | 2 apps/cMiniApp/src/subpackages/login/registerForm/registerForm.vue | 28 ++-- types/api.d.ts | 8 + apps/bMiniApp/src/stores/modules/user.ts | 10 + apps/cMiniApp/src/constants/app.ts | 2 apps/bMiniApp/src/utils/storage/auth.ts | 4 apps/cMiniApp/src/utils/storage/auth.ts | 4 15 files changed, 291 insertions(+), 60 deletions(-) diff --git a/apps/bMiniApp/project.config.json b/apps/bMiniApp/project.config.json index 8c102f7..7bc8fee 100644 --- a/apps/bMiniApp/project.config.json +++ b/apps/bMiniApp/project.config.json @@ -51,6 +51,6 @@ "ignore": [], "include": [] }, - "appid": "wxb9e0baf4f87aa0de", + "appid": "wx3669dd12a0915f7d", "projectname": "bMiniApp" } \ No newline at end of file diff --git a/apps/bMiniApp/src/stores/modules/user.ts b/apps/bMiniApp/src/stores/modules/user.ts index 2643b91..78f699f 100644 --- a/apps/bMiniApp/src/stores/modules/user.ts +++ b/apps/bMiniApp/src/stores/modules/user.ts @@ -31,7 +31,7 @@ import { AppLocalConfig } from '@/constants'; interface UserState { - userInfo?: Nullable<API.PasswordLoginCommandCallback>; + userInfo?: Nullable<API.LoginCommandCallback>; token?: Nullable<string>; refreshToken?: Nullable<string>; userDetail?: Nullable<API.UserInfoV2>; @@ -118,11 +118,13 @@ }, // 鐢ㄦ埛鎵嬫満楠岃瘉鐮佺櫥鍏� - async loginByUsername(data: API.PhoneMesssageCodeLoginInput) { - let res = await accountServices.phoneMesssageCodeLogin( + async loginByUsername(data: API.SmsLoginCommand) { + let res = await authServices.smsLogin( { phoneNumber: data.phoneNumber, - code: data.code, + verifyCode: data.verifyCode, + type: AppLocalConfig.userType, + clientType: AppLocalConfig.clientType, }, { showLoading: false } ); diff --git a/apps/bMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue b/apps/bMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue index a4713e7..dd3316f 100644 --- a/apps/bMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue +++ b/apps/bMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue @@ -32,7 +32,6 @@ </template> <script setup lang="ts"> -import * as commonServices from '@12333/services/api/Common'; import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; import { FormValidator, Message } from '@12333/utils'; import { LargeButton } from '@/components'; @@ -41,6 +40,7 @@ import { useLoginedJump } from '@/hooks'; import { useUserStore } from '@/stores/modules/user'; import Taro from '@tarojs/taro'; +import * as authServices from '@12333/services/apiV2/auth'; defineOptions({ name: 'verificationCodeLoginForm', @@ -73,10 +73,9 @@ }); async function onGetCaptcha() { - await commonServices.sendVerificationCode( + await authServices.sendLoginOrRegisterVerifyCode( { phoneNumber: form.phoneNumber, - businessType: VerificationCodeBusinessType.PhoneMesssageCodeLogin, }, { showLoading: false } ); @@ -90,7 +89,7 @@ form.loading = true; await userStore.loginByUsername({ phoneNumber: form.phoneNumber, - code: form.verificationCode, + verifyCode: form.verificationCode, }); jump(); } diff --git a/apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue b/apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue index 8342306..b68561a 100644 --- a/apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue +++ b/apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue @@ -54,7 +54,6 @@ <script setup lang="ts"> import LoginPageLayout from '../components/LoginPageLayout/LoginPageLayout.vue'; import { Policy } from '@/components'; -import * as commonServices from '@12333/services/api/Common'; import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; import { FormValidator, Message } from '@12333/utils'; import { LargeButton } from '@/components'; @@ -62,7 +61,7 @@ import { VerificationCodeBusinessType } from '@12333/constants'; import Taro from '@tarojs/taro'; import { ResponseCode } from '@12333/constants'; -import * as accountServices from '@12333/services/api/Account'; +import * as authServices from '@12333/services/apiV2/auth'; defineOptions({ name: 'registerForm', @@ -89,24 +88,23 @@ }); async function onGetCaptcha() { - await commonServices.sendVerificationCode( + await authServices.sendLoginOrRegisterVerifyCode( { phoneNumber: form.phoneNumber, - businessType: VerificationCodeBusinessType.PhoneMesssageCodeRegister, }, { showLoading: false, - customErrorHandler(error) { - if (error?.response?.data?.error?.code === ResponseCode.RegisterExistsPhoneNumber) { - Message.confirm({ - message: '璇ユ墜鏈哄彿宸叉敞鍐岋紝璇峰幓鐧诲綍椤电櫥褰�', - confirmText: '鍘荤櫥褰�', - }).then(() => { - goLogin(); - }); - return true; - } - }, + // customErrorHandler(error) { + // if (error?.response?.data?.error?.code === ResponseCode.RegisterExistsPhoneNumber) { + // Message.confirm({ + // message: '璇ユ墜鏈哄彿宸叉敞鍐岋紝璇峰幓鐧诲綍椤电櫥褰�', + // confirmText: '鍘荤櫥褰�', + // }).then(() => { + // goLogin(); + // }); + // return true; + // } + // }, } ); } diff --git a/apps/bMiniApp/src/utils/request/index.ts b/apps/bMiniApp/src/utils/request/index.ts index 6f6fa4b..0a1d04c 100644 --- a/apps/bMiniApp/src/utils/request/index.ts +++ b/apps/bMiniApp/src/utils/request/index.ts @@ -220,7 +220,7 @@ const userStore = useUserStoreWithOut(); if (response.headers['x-access-token']) { - const tokenInfo: API.PasswordLoginCommandCallback = { + const tokenInfo: API.LoginCommandCallback = { accessToken: response.headers['access-token'], refreshToken: response.headers['x-access-token'], }; diff --git a/apps/bMiniApp/src/utils/storage/auth.ts b/apps/bMiniApp/src/utils/storage/auth.ts index d7ca87d..ecf237f 100644 --- a/apps/bMiniApp/src/utils/storage/auth.ts +++ b/apps/bMiniApp/src/utils/storage/auth.ts @@ -17,10 +17,10 @@ } export function getUserInfo() { - return storageLocal.getItem<API.PasswordLoginCommandCallback>(StorageKey.USER_INFO_KEY); + return storageLocal.getItem<API.LoginCommandCallback>(StorageKey.USER_INFO_KEY); } -export function setUserInfo(userInfo: API.PasswordLoginCommandCallback) { +export function setUserInfo(userInfo: API.LoginCommandCallback) { return storageLocal.setItem(StorageKey.USER_INFO_KEY, userInfo); } diff --git a/apps/cMiniApp/src/constants/app.ts b/apps/cMiniApp/src/constants/app.ts index cd671f7..755671c 100644 --- a/apps/cMiniApp/src/constants/app.ts +++ b/apps/cMiniApp/src/constants/app.ts @@ -1,6 +1,6 @@ import { EnumUserType, EnumClientType } from '@12333/constants'; export const AppLocalConfig = { - userType: EnumUserType.Enterprise, + userType: EnumUserType.Personal, clientType: EnumClientType.PcWeb, }; diff --git a/apps/cMiniApp/src/stores/modules/user.ts b/apps/cMiniApp/src/stores/modules/user.ts index 20364b5..d49e137 100644 --- a/apps/cMiniApp/src/stores/modules/user.ts +++ b/apps/cMiniApp/src/stores/modules/user.ts @@ -31,7 +31,7 @@ import { AppLocalConfig } from '@/constants'; interface UserState { - userInfo?: Nullable<API.PasswordLoginCommandCallback>; + userInfo?: Nullable<API.LoginCommandCallback>; token?: Nullable<string>; refreshToken?: Nullable<string>; userDetail?: Nullable<API.UserInfoV2>; @@ -114,11 +114,13 @@ }, // 鐢ㄦ埛鎵嬫満楠岃瘉鐮佺櫥鍏� - async loginByUsername(data: API.PhoneMesssageCodeLoginInput) { - let res = await accountServices.phoneMesssageCodeLogin( + async loginByUsername(data: API.SmsLoginCommand) { + let res = await authServices.smsLogin( { phoneNumber: data.phoneNumber, - code: data.code, + verifyCode: data.verifyCode, + type: AppLocalConfig.userType, + clientType: AppLocalConfig.clientType, }, { showLoading: false } ); @@ -146,7 +148,7 @@ return res; }, - async loginSuccess(res: API.PasswordLoginCommandCallback) { + async loginSuccess(res: API.LoginCommandCallback) { try { this.setUserInfoAction(res); this.setTokenAction(res); @@ -201,12 +203,12 @@ } catch (error) {} }, - setTokenAction(tokenInfo: API.PasswordLoginCommandCallback) { + setTokenAction(tokenInfo: API.LoginCommandCallback) { this.token = tokenInfo?.accessToken; this.refreshToken = tokenInfo.refreshToken ?? ''; }, - setUserInfoAction(info: API.PasswordLoginCommandCallback) { + setUserInfoAction(info: API.LoginCommandCallback) { this.userInfo = info; setUserInfo(info); }, diff --git a/apps/cMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue b/apps/cMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue index a4713e7..3e3704c 100644 --- a/apps/cMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue +++ b/apps/cMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue @@ -32,15 +32,14 @@ </template> <script setup lang="ts"> -import * as commonServices from '@12333/services/api/Common'; import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; import { FormValidator, Message } from '@12333/utils'; import { LargeButton } from '@/components'; import { ProFormCaptcha } from 'senin-mini/components'; -import { VerificationCodeBusinessType } from '@12333/constants'; import { useLoginedJump } from '@/hooks'; import { useUserStore } from '@/stores/modules/user'; import Taro from '@tarojs/taro'; +import * as authServices from '@12333/services/apiV2/auth'; defineOptions({ name: 'verificationCodeLoginForm', @@ -73,10 +72,9 @@ }); async function onGetCaptcha() { - await commonServices.sendVerificationCode( + await authServices.sendLoginOrRegisterVerifyCode( { phoneNumber: form.phoneNumber, - businessType: VerificationCodeBusinessType.PhoneMesssageCodeLogin, }, { showLoading: false } ); @@ -90,7 +88,7 @@ form.loading = true; await userStore.loginByUsername({ phoneNumber: form.phoneNumber, - code: form.verificationCode, + verifyCode: form.verificationCode, }); jump(); } diff --git a/apps/cMiniApp/src/subpackages/login/registerForm/registerForm.vue b/apps/cMiniApp/src/subpackages/login/registerForm/registerForm.vue index 8342306..b68561a 100644 --- a/apps/cMiniApp/src/subpackages/login/registerForm/registerForm.vue +++ b/apps/cMiniApp/src/subpackages/login/registerForm/registerForm.vue @@ -54,7 +54,6 @@ <script setup lang="ts"> import LoginPageLayout from '../components/LoginPageLayout/LoginPageLayout.vue'; import { Policy } from '@/components'; -import * as commonServices from '@12333/services/api/Common'; import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; import { FormValidator, Message } from '@12333/utils'; import { LargeButton } from '@/components'; @@ -62,7 +61,7 @@ import { VerificationCodeBusinessType } from '@12333/constants'; import Taro from '@tarojs/taro'; import { ResponseCode } from '@12333/constants'; -import * as accountServices from '@12333/services/api/Account'; +import * as authServices from '@12333/services/apiV2/auth'; defineOptions({ name: 'registerForm', @@ -89,24 +88,23 @@ }); async function onGetCaptcha() { - await commonServices.sendVerificationCode( + await authServices.sendLoginOrRegisterVerifyCode( { phoneNumber: form.phoneNumber, - businessType: VerificationCodeBusinessType.PhoneMesssageCodeRegister, }, { showLoading: false, - customErrorHandler(error) { - if (error?.response?.data?.error?.code === ResponseCode.RegisterExistsPhoneNumber) { - Message.confirm({ - message: '璇ユ墜鏈哄彿宸叉敞鍐岋紝璇峰幓鐧诲綍椤电櫥褰�', - confirmText: '鍘荤櫥褰�', - }).then(() => { - goLogin(); - }); - return true; - } - }, + // customErrorHandler(error) { + // if (error?.response?.data?.error?.code === ResponseCode.RegisterExistsPhoneNumber) { + // Message.confirm({ + // message: '璇ユ墜鏈哄彿宸叉敞鍐岋紝璇峰幓鐧诲綍椤电櫥褰�', + // confirmText: '鍘荤櫥褰�', + // }).then(() => { + // goLogin(); + // }); + // return true; + // } + // }, } ); } diff --git a/apps/cMiniApp/src/subpackages/task/components/CompanyDesc.vue b/apps/cMiniApp/src/subpackages/task/components/CompanyDesc.vue index 36f3e1b..de0bd65 100644 --- a/apps/cMiniApp/src/subpackages/task/components/CompanyDesc.vue +++ b/apps/cMiniApp/src/subpackages/task/components/CompanyDesc.vue @@ -9,7 +9,9 @@ <div class="taskDetail-company-info-text">宸茶璇� | {{ taskCount }}涓矖浣嶅湪鎷�</div> </div> <div class="taskDetail-company-info" v-else> - <div class="taskDetail-company-info-text danger">鏈璇�</div> + <div class="taskDetail-company-info-text"> + <span class="danger">鏈璇�</span> | {{ taskCount }}涓矖浣嶅湪鎷� + </div> </div> </div> </template> @@ -85,8 +87,9 @@ min-width: 0; @include ellipsis; - &.danger { + .danger { color: boleGetCssVar('color', 'danger'); + display: inline; } } } diff --git a/apps/cMiniApp/src/utils/request/index.ts b/apps/cMiniApp/src/utils/request/index.ts index 6f6fa4b..0a1d04c 100644 --- a/apps/cMiniApp/src/utils/request/index.ts +++ b/apps/cMiniApp/src/utils/request/index.ts @@ -220,7 +220,7 @@ const userStore = useUserStoreWithOut(); if (response.headers['x-access-token']) { - const tokenInfo: API.PasswordLoginCommandCallback = { + const tokenInfo: API.LoginCommandCallback = { accessToken: response.headers['access-token'], refreshToken: response.headers['x-access-token'], }; diff --git a/apps/cMiniApp/src/utils/storage/auth.ts b/apps/cMiniApp/src/utils/storage/auth.ts index d7ca87d..ecf237f 100644 --- a/apps/cMiniApp/src/utils/storage/auth.ts +++ b/apps/cMiniApp/src/utils/storage/auth.ts @@ -17,10 +17,10 @@ } export function getUserInfo() { - return storageLocal.getItem<API.PasswordLoginCommandCallback>(StorageKey.USER_INFO_KEY); + return storageLocal.getItem<API.LoginCommandCallback>(StorageKey.USER_INFO_KEY); } -export function setUserInfo(userInfo: API.PasswordLoginCommandCallback) { +export function setUserInfo(userInfo: API.LoginCommandCallback) { return storageLocal.setItem(StorageKey.USER_INFO_KEY, userInfo); } diff --git a/packages/services/apiV2/userResume.ts b/packages/services/apiV2/userResume.ts new file mode 100644 index 0000000..6ab9057 --- /dev/null +++ b/packages/services/apiV2/userResume.ts @@ -0,0 +1,223 @@ +/* eslint-disable */ +// @ts-ignore +import { request } from '@/utils/request'; + +/** 鍒犻櫎鐢ㄦ埛绠�鍘�-璧勬牸璇佷功 DELETE /api/user/userResume/deleteUserResumeCredential */ +export async function deleteUserResumeCredential( + body: API.DeleteUserResumeCredentialCommand, + options?: API.RequestConfig +) { + return request<number>('/api/user/userResume/deleteUserResumeCredential', { + method: 'DELETE', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鏌ヨ鐢ㄦ埛绠�鍘� GET /api/user/userResume/getUserResume */ +export async function getUserResume( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetUserResumeParams, + options?: API.RequestConfig +) { + return request<API.GetUserResumeQueryResult>('/api/user/userResume/getUserResume', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} + +/** 鏌ヨ鐢ㄦ埛绠�鍘�-璧勬牸璇佷功 GET /api/user/userResume/getUserResumeCredential */ +export async function getUserResumeCredential( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetUserResumeCredentialParams, + options?: API.RequestConfig +) { + return request<API.GetUserResumeCredentialQueryResult>( + '/api/user/userResume/getUserResumeCredential', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ鐢ㄦ埛绠�鍘�-璧勬牸璇佷功鍒楄〃 GET /api/user/userResume/getUserResumeCredentials */ +export async function getUserResumeCredentials( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetUserResumeCredentialsParams, + options?: API.RequestConfig +) { + return request<API.GetUserResumeCredentialsQueryResultItem[]>( + '/api/user/userResume/getUserResumeCredentials', + { + method: 'GET', + params: { + ...params, + request: undefined, + ...params['request'], + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ鐢ㄦ埛绠�鍘�-璇︾粏淇℃伅 GET /api/user/userResume/getUserResumeDetail */ +export async function getUserResumeDetail( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetUserResumeDetailParams, + options?: API.RequestConfig +) { + return request<API.GetUserResumeDetailQueryResult>('/api/user/userResume/getUserResumeDetail', { + method: 'GET', + params: { + ...params, + request: undefined, + ...params['request'], + }, + ...(options || {}), + }); +} + +/** 鏌ヨ鐢ㄦ埛绠�鍘�-姹傝亴鎰忓悜 GET /api/user/userResume/getUserResumeJobSeeking */ +export async function getUserResumeJobSeeking( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetUserResumeJobSeekingParams, + options?: API.RequestConfig +) { + return request<API.GetUserResumeJobSeekingQueryResult>( + '/api/user/userResume/getUserResumeJobSeeking', + { + method: 'GET', + params: { + ...params, + request: undefined, + ...params['request'], + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ鐢ㄦ埛绠�鍘�-涓汉淇℃伅 GET /api/user/userResume/getUserResumePersonal */ +export async function getUserResumePersonal( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetUserResumePersonalParams, + options?: API.RequestConfig +) { + return request<API.GetUserResumePersonalQueryResult>( + '/api/user/userResume/getUserResumePersonal', + { + method: 'GET', + params: { + ...params, + request: undefined, + ...params['request'], + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ鐢ㄦ埛绠�鍘�-宸ヤ綔缁忛獙 GET /api/user/userResume/getUserResumeWorkExperience */ +export async function getUserResumeWorkExperience( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetUserResumeWorkExperienceParams, + options?: API.RequestConfig +) { + return request<API.GetUserResumeWorkExperienceQueryResult>( + '/api/user/userResume/getUserResumeWorkExperience', + { + method: 'GET', + params: { + ...params, + request: undefined, + ...params['request'], + }, + ...(options || {}), + } + ); +} + +/** 淇濆瓨鐢ㄦ埛绠�鍘�-璧勬牸璇佷功 POST /api/user/userResume/saveUserResumeCredential */ +export async function saveUserResumeCredential( + body: API.SaveUserResumeCredentialCommand, + options?: API.RequestConfig +) { + return request<string>('/api/user/userResume/saveUserResumeCredential', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 淇濆瓨鐢ㄦ埛绠�鍘�-璇︾粏淇℃伅 POST /api/user/userResume/saveUserResumeDetail */ +export async function saveUserResumeDetail( + body: API.SaveUserResumeDetailCommand, + options?: API.RequestConfig +) { + return request<string>('/api/user/userResume/saveUserResumeDetail', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 淇濆瓨鐢ㄦ埛绠�鍘�-姹傝亴鎰忓悜 POST /api/user/userResume/saveUserResumeJobSeeking */ +export async function saveUserResumeJobSeeking( + body: API.SaveUserResumeJobSeekingCommand, + options?: API.RequestConfig +) { + return request<string>('/api/user/userResume/saveUserResumeJobSeeking', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 淇濆瓨鐢ㄦ埛绠�鍘�-涓汉淇℃伅 POST /api/user/userResume/saveUserResumePersonal */ +export async function saveUserResumePersonal( + body: API.SaveUserResumePersonalCommand, + options?: API.RequestConfig +) { + return request<string>('/api/user/userResume/saveUserResumePersonal', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 淇濆瓨鐢ㄦ埛绠�鍘�-宸ヤ綔缁忛獙 POST /api/user/userResume/saveUserResumeWorkExperience */ +export async function saveUserResumeWorkExperience( + body: API.SaveUserResumeWorkExperienceCommand, + options?: API.RequestConfig +) { + return request<string>('/api/user/userResume/saveUserResumeWorkExperience', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} diff --git a/types/api.d.ts b/types/api.d.ts index 98ee682..cd91077 100644 --- a/types/api.d.ts +++ b/types/api.d.ts @@ -4,6 +4,14 @@ showLoading?: boolean; mock?: boolean; customErrorHandler?: (error: any) => boolean; + /** + * 鏄惁鑾峰彇鍘熷鐨凙xiosResponse + */ + getResponse?: boolean; + /** + * 璺宠繃榛樿閿欒澶勭悊 + */ + skipErrorHandler?: boolean; } interface MyCertificationAuditDto { -- Gitblit v1.9.1