From 83a43c957729ffdec7ca8eb4f8ebd62a1c6b4abc Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 15 八月 2025 15:23:05 +0800
Subject: [PATCH] fix: bug
---
packages/services/apiV2/ocrUtils.ts | 18 ++
apps/cMiniApp/src/subpackages/curriculum/mineCertificateAddOrEdit/InnerPage.vue | 2
packages/services/apiV2/resource.ts | 15 -
packages/constants/task.ts | 3
apps/cMiniApp/src/pages/task/InnerPage.vue | 5
apps/cMiniApp/src/subpackages/mine/mineHire/InnerPage.vue | 1
packages/services/apiV2/user.ts | 15 +
packages/hooks/task.ts | 2
packages/components/src/Card/TaskCard.vue | 3
packages/services/apiV2/index.ts | 4
packages/services/apiV2/fileUtils.ts | 52 ++++++
apps/bMiniApp/src/subpackages/task/batchTaskList/InnerPage.vue | 3
apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue | 4
packages/services/apiV2/task.ts | 15 -
packages/services/apiV2/typings.d.ts | 233 ++++++++++++++++++++++++++--
packages/components/src/Calendar/Calendar.vue | 14 +
packages/constants/apiEnum.ts | 64 ++++++-
apps/cMiniApp/src/pages/mine/index.vue | 4
18 files changed, 392 insertions(+), 65 deletions(-)
diff --git a/apps/bMiniApp/src/subpackages/task/batchTaskList/InnerPage.vue b/apps/bMiniApp/src/subpackages/task/batchTaskList/InnerPage.vue
index 1967585..c9a1d61 100644
--- a/apps/bMiniApp/src/subpackages/task/batchTaskList/InnerPage.vue
+++ b/apps/bMiniApp/src/subpackages/task/batchTaskList/InnerPage.vue
@@ -15,6 +15,9 @@
:age="item.age"
:avatar="item.avatar"
:educationalBackgroundContent="item.educationalBackgroundContent"
+ :personalIdentityContent="item.personalIdentityContent"
+ :workExperience="item.workExperience"
+ :workSeniority="item.workSeniority"
:taskCount="item.taskCount"
:showFooterLeft="false"
>
diff --git a/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue b/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue
index 6019fdc..9fae94e 100644
--- a/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue
+++ b/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue
@@ -182,7 +182,7 @@
const { userDetail } = useUser();
const { findAreaNameFromCode } = useAllAreaList();
const router = Taro.useRouter();
-const taskId = router.params?.taskId ?? '';
+const taskId = router.params?.id ?? '';
const isEdit = !!taskId;
const isCopy = router.params?.isCopy === 'true';
console.log('isCopy: ', router.params?.isCopy);
@@ -272,7 +272,7 @@
message: '璇烽�夋嫨缁撴潫鏃ユ湡',
validator(value) {
if (!value) return Promise.reject('璇烽�夋嫨缁撴潫鏃ユ湡');
- if (!dayjs(value).isAfter(dayjs(form.beginTime)))
+ if (dayjs(value).isBefore(dayjs(form.beginTime)))
return Promise.reject('缁撴潫鏃ユ湡闇�澶т簬寮�濮嬫棩鏈�');
return Promise.resolve(true);
},
diff --git a/apps/cMiniApp/src/pages/mine/index.vue b/apps/cMiniApp/src/pages/mine/index.vue
index 7bddbbd..37cfe96 100644
--- a/apps/cMiniApp/src/pages/mine/index.vue
+++ b/apps/cMiniApp/src/pages/mine/index.vue
@@ -132,7 +132,9 @@
const bgHeight = computed(() => 133 + systemStore.navHeight);
Taro.useDidShow(() => {
- updateUserInfo();
+ if (isLogin.value) {
+ updateUserInfo();
+ }
});
function goLogin() {
diff --git a/apps/cMiniApp/src/pages/task/InnerPage.vue b/apps/cMiniApp/src/pages/task/InnerPage.vue
index 842cac1..3f5639d 100644
--- a/apps/cMiniApp/src/pages/task/InnerPage.vue
+++ b/apps/cMiniApp/src/pages/task/InnerPage.vue
@@ -51,7 +51,10 @@
url: `${RouterPath.taskSubmitCheck}?id=${item.id}&date=${queryState.date}`,
});
}
- if (Number(queryState.checkReceiveStatus) === EnumTaskCheckReceiveStatus.Completed) {
+ if (
+ Number(queryState.checkReceiveStatus) === EnumTaskCheckReceiveStatus.WaitCheckReceive ||
+ Number(queryState.checkReceiveStatus) === EnumTaskCheckReceiveStatus.Completed
+ ) {
Taro.navigateTo({
url: `${RouterPath.taskCheckDetail}?id=${item.id}`,
});
diff --git a/apps/cMiniApp/src/subpackages/curriculum/mineCertificateAddOrEdit/InnerPage.vue b/apps/cMiniApp/src/subpackages/curriculum/mineCertificateAddOrEdit/InnerPage.vue
index 4b22776..45e67c9 100644
--- a/apps/cMiniApp/src/subpackages/curriculum/mineCertificateAddOrEdit/InnerPage.vue
+++ b/apps/cMiniApp/src/subpackages/curriculum/mineCertificateAddOrEdit/InnerPage.vue
@@ -9,7 +9,7 @@
/>
</nut-form-item>
<nut-form-item label="璇佷功缂栧彿:" class="bole-form-item" prop="code">
- <nut-input v-model="form.code" type="text" placeholder="璇疯緭鍏�"> </nut-input>
+ <nut-input v-model="form.code" type="number" placeholder="璇疯緭鍏�"> </nut-input>
</nut-form-item>
<nut-form-item
label="姘镐箙璇佷功:"
diff --git a/apps/cMiniApp/src/subpackages/mine/mineHire/InnerPage.vue b/apps/cMiniApp/src/subpackages/mine/mineHire/InnerPage.vue
index d8bd3f9..95d9666 100644
--- a/apps/cMiniApp/src/subpackages/mine/mineHire/InnerPage.vue
+++ b/apps/cMiniApp/src/subpackages/mine/mineHire/InnerPage.vue
@@ -9,6 +9,7 @@
title-scroll
>
<ProTabPane :title="`鍏ㄩ儴`" :pane-key="0"></ProTabPane>
+ <ProTabPane :title="`寰呭紑濮媊" :pane-key="GetPersonalHireTaskInfosQueryStatus.Wait"></ProTabPane>
<ProTabPane
:title="`杩涜涓璥"
:pane-key="GetPersonalHireTaskInfosQueryStatus.InProcess"
diff --git a/packages/components/src/Calendar/Calendar.vue b/packages/components/src/Calendar/Calendar.vue
index c973d70..acb8468 100644
--- a/packages/components/src/Calendar/Calendar.vue
+++ b/packages/components/src/Calendar/Calendar.vue
@@ -1,7 +1,12 @@
<template>
<div class="bole-calendar-wrapper">
<div :class="['bole-calendar-inner', { isCollapse }]">
- <nut-calendar-card v-model="model" class="bole-calendar"></nut-calendar-card>
+ <nut-calendar-card
+ v-model="model"
+ class="bole-calendar"
+ ref="calendar"
+ @change="handleChange"
+ ></nut-calendar-card>
</div>
<div :class="['bole-calendar-arrow', { active: !isCollapse }]" @click="toggle">
<DownArrow :size="12" :class="['bole-calendar-arrow-icon']" />
@@ -12,6 +17,7 @@
<script setup lang="ts">
import { DownArrow } from '@nutui/icons-vue-taro';
import { useToggle } from 'senin-mini/hooks';
+import { ref, watch } from 'vue';
defineOptions({
name: 'Calendar',
@@ -23,6 +29,12 @@
const model = defineModel<Date | Date[]>();
const { isCollapse, toggle } = useToggle(true);
+
+const calendar = ref();
+function handleChange(value) {
+ console.log('value: ', value);
+ console.log('calendar: ', calendar.value);
+}
</script>
<style lang="scss">
diff --git a/packages/components/src/Card/TaskCard.vue b/packages/components/src/Card/TaskCard.vue
index e45fad3..edbd5fb 100644
--- a/packages/components/src/Card/TaskCard.vue
+++ b/packages/components/src/Card/TaskCard.vue
@@ -41,6 +41,7 @@
v-if="releaseStatus === EnumTaskReleaseStatus.InProcess"
type="primary"
@click="emit('apply', props.id)"
+ :disabled="!!hireStatus"
>鎶ュ悕</nut-button
>
</slot>
@@ -63,6 +64,7 @@
EnumUserGenderText,
EnumSettlementCycleText,
BillingMethodEnumUnit,
+ EnumTaskUserHireStatus,
} from '@12333/constants';
import TaskPrice from './TaskPrice.vue';
import { CommonTaskCardProps } from './card';
@@ -119,6 +121,7 @@
recommendStatus?: EnumTaskRecommendStatus;
/** 鍒涘缓鏃堕棿 */
createdTime?: string;
+ hireStatus?: EnumTaskUserHireStatus;
};
const props = withDefaults(defineProps<Props>(), {
diff --git a/packages/constants/apiEnum.ts b/packages/constants/apiEnum.ts
index 01db867..6003214 100644
--- a/packages/constants/apiEnum.ts
+++ b/packages/constants/apiEnum.ts
@@ -21,6 +21,20 @@
Wxmp = 20,
}
+/** 鏁版嵁鏉ユ簮 */
+export enum EnumDataSource {
+ /**818 */
+ HumanResources = 10,
+}
+
+/** 浼佷笟瀹炲悕鏂瑰紡 */
+export enum EnumEnterpriseRealMethod {
+ /**浼佷笟涓夎绱� */
+ Identity3 = 10,
+ /**浼佷笟鍥涜绱� */
+ Identity4 = 20,
+}
+
/** 鑿滃崟绫诲瀷 */
export enum EnumMenuType {
/**鑿滃崟 */
@@ -45,12 +59,26 @@
NeedPower = 30,
}
+/** 鏂囧瓧璇嗗埆閫氶亾 */
+export enum EnumOcrAccess {
+ /**鐧惧害 */
+ Baidu = 10,
+}
+
/** 鍒嗛〉鍒楄〃鎺掑簭 */
export enum EnumPagedListOrder {
/**鍗囧簭 */
Asc = 0,
/**闄嶅簭 */
Desc = 1,
+}
+
+/** 鏀粯閫氶亾 */
+export enum EnumPayAccess {
+ /**骞冲畨閾惰 */
+ PingAnBank = 10,
+ /**鏀粯瀹� */
+ Alipay = 20,
}
/** 绌洪棽鏃堕棿 */
@@ -77,6 +105,16 @@
Not = 30,
}
+/** 涓汉瀹炲悕鏂瑰紡 */
+export enum EnumPersonalRealMethod {
+ /**涓汉鎵嬫満鍙蜂笁瑕佺礌 */
+ Identity3 = 10,
+ /**閾惰鍗″瑕佺礌 */
+ Identity4 = 20,
+ /**鍒疯劯璁よ瘉 */
+ Face = 30,
+}
+
/** 瀹炲悕閫氶亾 */
export enum EnumRealAccess {
/**涓婁笂绛� */
@@ -95,22 +133,26 @@
TaskUser = 2,
/**浠诲姟楠屾敹 */
TaskCheckReceive = 3,
+ /**鏂囧瓧璇嗗埆 */
+ FileUtils = 4,
+ /**鏂囧瓧璇嗗埆 */
+ OcrUtils = 5,
/**鐢ㄦ埛璁よ瘉 */
- Auth = 4,
+ Auth = 6,
/**鐢ㄦ埛鑿滃崟 */
- Menu = 5,
+ Menu = 7,
/**鐢ㄦ埛璧勬簮 */
- Resource = 6,
+ Resource = 8,
/**鐢ㄦ埛瑙掕壊 */
- Role = 7,
+ Role = 9,
/**鐢ㄦ埛淇℃伅 */
- User = 8,
+ User = 10,
/**鐢ㄦ埛绠�鍘� */
- UserResume = 9,
+ UserResume = 11,
/**浼佷笟淇℃伅 */
- Enterprise = 10,
+ Enterprise = 12,
/**鐏靛伐淇℃伅 */
- EnterpriseEmployee = 11,
+ EnterpriseEmployee = 13,
}
/** 璧勬簮璇锋眰鏂瑰紡 */
@@ -285,6 +327,8 @@
/** 鎴戠殑宸插綍鐢ㄥ垎椤靛垪琛�-鐘舵�� */
export enum GetPersonalHireTaskInfosQueryStatus {
+ /**寰呭紑濮� */
+ Wait = 1,
/**杩涜涓� */
InProcess = 10,
/**宸插畬鎴� */
@@ -301,8 +345,10 @@
/** 鎴戠殑褰曠敤鍒楄〃-璇︽儏-鎸夐挳绫诲瀷 */
export enum GetTaskInfoQueryResultHireButton {
+ /**寰呭紑濮� */
+ Wait = 1,
/**鐢宠楠屾敹 */
- ApplyCheckReceive = 1,
+ ApplyCheckReceive = 5,
/**杩涜涓� */
InProcess = 10,
/**宸插畬鎴� */
diff --git a/packages/constants/task.ts b/packages/constants/task.ts
index ab19a55..4a5dd65 100644
--- a/packages/constants/task.ts
+++ b/packages/constants/task.ts
@@ -81,17 +81,20 @@
};
export const GetPersonalHireTaskInfosQueryStatusText = {
+ [GetPersonalHireTaskInfosQueryStatus.Wait]: '寰呭紑濮�',
[GetPersonalHireTaskInfosQueryStatus.InProcess]: '杩涜涓�',
[GetPersonalHireTaskInfosQueryStatus.Completed]: '宸插畬鎴�',
};
export const GetPersonalHireTaskInfosQueryStatusColor = {
+ [GetPersonalHireTaskInfosQueryStatus.Wait]: '#9FA4AC',
[GetPersonalHireTaskInfosQueryStatus.InProcess]: '#2A9E1B',
[GetPersonalHireTaskInfosQueryStatus.Completed]: '#9FA4AC',
};
export const GetTaskInfoQueryResultHireButtonText = {
[GetTaskInfoQueryResultHireButton.ApplyCheckReceive]: '鐢宠楠屾敹',
+ [GetTaskInfoQueryResultHireButton.Wait]: '寰呭紑濮�',
[GetTaskInfoQueryResultHireButton.InProcess]: '杩涜涓�',
[GetTaskInfoQueryResultHireButton.Completed]: '宸插畬鎴�',
};
diff --git a/packages/hooks/task.ts b/packages/hooks/task.ts
index a29fbb1..474681a 100644
--- a/packages/hooks/task.ts
+++ b/packages/hooks/task.ts
@@ -161,7 +161,7 @@
rows: 20,
page: pageParam,
},
- id: id,
+ taskInfoId: id,
};
return taskCheckReceiveServices.getCheckReceiveTaskUserSubmits(params, {
diff --git a/packages/services/apiV2/fileUtils.ts b/packages/services/apiV2/fileUtils.ts
new file mode 100644
index 0000000..425fac0
--- /dev/null
+++ b/packages/services/apiV2/fileUtils.ts
@@ -0,0 +1,52 @@
+/* eslint-disable */
+// @ts-ignore
+import { request } from '@/utils/request';
+
+/** 鑾峰彇鏂囦欢鍦板潃 GET /api/common/fileUtils/getFileUrl */
+export async function getFileUrl(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetFileUrlParams,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/common/fileUtils/getFileUrl', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
+
+/** 涓婁紶鏂囦欢 POST /api/common/fileUtils/uploadFile */
+export async function uploadFile(
+ body: {
+ /** 鍦烘櫙 */
+ Scene?: string;
+ },
+ File?: File,
+ options?: API.RequestConfig
+) {
+ const formData = new FormData();
+
+ if (File) {
+ formData.append('File', File);
+ }
+
+ Object.keys(body).forEach((ele) => {
+ const item = (body as any)[ele];
+
+ if (item !== undefined && item !== null) {
+ formData.append(
+ ele,
+ typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item
+ );
+ }
+ });
+
+ return request<API.UploadFileCommandResult>('/api/common/fileUtils/uploadFile', {
+ method: 'POST',
+ data: formData,
+ requestType: 'form',
+ ...(options || {}),
+ });
+}
diff --git a/packages/services/apiV2/index.ts b/packages/services/apiV2/index.ts
index 9cabf40..38f65d3 100644
--- a/packages/services/apiV2/index.ts
+++ b/packages/services/apiV2/index.ts
@@ -7,6 +7,7 @@
import * as role from './role';
import * as enterprise from './enterprise';
import * as task from './task';
+import * as ocrUtils from './ocrUtils';
import * as dictionary from './dictionary';
import * as userResume from './userResume';
import * as auth from './auth';
@@ -14,12 +15,14 @@
import * as resource from './resource';
import * as taskUser from './taskUser';
import * as menu from './menu';
+import * as fileUtils from './fileUtils';
export default {
enterpriseEmployee,
user,
role,
enterprise,
task,
+ ocrUtils,
dictionary,
userResume,
auth,
@@ -27,4 +30,5 @@
resource,
taskUser,
menu,
+ fileUtils,
};
diff --git a/packages/services/apiV2/ocrUtils.ts b/packages/services/apiV2/ocrUtils.ts
new file mode 100644
index 0000000..4601bae
--- /dev/null
+++ b/packages/services/apiV2/ocrUtils.ts
@@ -0,0 +1,18 @@
+/* eslint-disable */
+// @ts-ignore
+import { request } from '@/utils/request';
+
+/** 鏂囧瓧璇嗗埆钀ヤ笟鎵х収 GET /api/common/ocrUtils/getLicenseOcr */
+export async function getLicenseOcr(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetLicenseOcrParams,
+ options?: API.RequestConfig
+) {
+ return request<API.GetLicenseOcrCommandResult>('/api/common/ocrUtils/getLicenseOcr', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
diff --git a/packages/services/apiV2/resource.ts b/packages/services/apiV2/resource.ts
index 5e25fe0..dc3ef94 100644
--- a/packages/services/apiV2/resource.ts
+++ b/packages/services/apiV2/resource.ts
@@ -31,18 +31,3 @@
...(options || {}),
});
}
-
-/** 淇濆瓨浠诲姟璋冨害-浣滀笟 POST /api/user/resource/saveScheduleJobDetail */
-export async function saveScheduleJobDetail(
- body: API.SaveScheduleJobDetailCommand,
- options?: API.RequestConfig
-) {
- return request<boolean>('/api/user/resource/saveScheduleJobDetail', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json-patch+json',
- },
- data: body,
- ...(options || {}),
- });
-}
diff --git a/packages/services/apiV2/task.ts b/packages/services/apiV2/task.ts
index 8f85a31..9488ff3 100644
--- a/packages/services/apiV2/task.ts
+++ b/packages/services/apiV2/task.ts
@@ -2,21 +2,6 @@
// @ts-ignore
import { request } from '@/utils/request';
-/** 鎸夋棩鏈熶慨璁换鍔$姸鎬� POST /api/flexjob/task/autoTaskStatusByDate */
-export async function autoTaskStatusByDate(
- body: API.AutoTaskStatusByDateCommand,
- options?: API.RequestConfig
-) {
- return request<number>('/api/flexjob/task/autoTaskStatusByDate', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json-patch+json',
- },
- data: body,
- ...(options || {}),
- });
-}
-
/** 鍒犻櫎浠诲姟 DELETE /api/flexjob/task/deleteTaskInfo */
export async function deleteTaskInfo(body: API.DeleteTaskInfoCommand, options?: API.RequestConfig) {
return request<number>('/api/flexjob/task/deleteTaskInfo', {
diff --git a/packages/services/apiV2/typings.d.ts b/packages/services/apiV2/typings.d.ts
index e2b61f5..5a77d50 100644
--- a/packages/services/apiV2/typings.d.ts
+++ b/packages/services/apiV2/typings.d.ts
@@ -83,6 +83,22 @@
id?: string;
}
+ interface APIgetFileUrlParams {
+ /** 鍦板潃 */
+ url?: string;
+ }
+
+ interface APIgetLicenseOcrParams {
+ /** 閫氶亾 */
+ access?: EnumOcrAccess;
+ /** 鍦烘櫙 */
+ scene?: string;
+ /** 閾炬帴鍦板潃 */
+ url?: string;
+ /** 鏄惁涓轰簯瀛樺偍鐩稿鍦板潃 */
+ isOssUrl?: boolean;
+ }
+
interface APIgetMenuParams {
/** Id */
id?: string;
@@ -189,7 +205,24 @@
ids?: string[];
}
- type AutoTaskStatusByDateCommand = Record<string, any>;
+ interface BaiduOcrBusinessLicenseResultModel {
+ /** 浼佷笟鍏ㄧО */
+ enterpriseName?: string;
+ /** 缁熶竴绀句細淇$敤浠g爜 */
+ societyCreditCode?: string;
+ /** 娉曚汉濮撳悕 */
+ legalPerson?: string;
+ /** 浼佷笟绫诲瀷 */
+ enterpriseType?: string;
+ /** 娉ㄥ唽璧勬湰 */
+ registeredCapital?: string;
+ /** 鎴愮珛鏃ユ湡 */
+ establishmentDate?: string;
+ /** 浼佷笟鍦板潃 */
+ address?: string;
+ /** 缁忚惀鑼冨洿 */
+ mainBusiness?: string;
+ }
interface BindWxmpUserInfoCommand {
/** 璁块棶浠ょ墝 */
@@ -292,6 +325,18 @@
Wxmp = 20,
}
+ enum EnumDataSource {
+ /**818 */
+ HumanResources = 10,
+ }
+
+ enum EnumEnterpriseRealMethod {
+ /**浼佷笟涓夎绱� */
+ Identity3 = 10,
+ /**浼佷笟鍥涜绱� */
+ Identity4 = 20,
+ }
+
enum EnumMenuType {
/**鑿滃崟 */
Menu = 10,
@@ -314,11 +359,23 @@
NeedPower = 30,
}
+ enum EnumOcrAccess {
+ /**鐧惧害 */
+ Baidu = 10,
+ }
+
enum EnumPagedListOrder {
/**鍗囧簭 */
Asc = 0,
/**闄嶅簭 */
Desc = 1,
+ }
+
+ enum EnumPayAccess {
+ /**骞冲畨閾惰 */
+ PingAnBank = 10,
+ /**鏀粯瀹� */
+ Alipay = 20,
}
enum EnumPersonalFreeTime {
@@ -343,6 +400,15 @@
Not = 30,
}
+ enum EnumPersonalRealMethod {
+ /**涓汉鎵嬫満鍙蜂笁瑕佺礌 */
+ Identity3 = 10,
+ /**閾惰鍗″瑕佺礌 */
+ Identity4 = 20,
+ /**鍒疯劯璁よ瘉 */
+ Face = 30,
+ }
+
enum EnumRealAccess {
/**涓婁笂绛� */
BestSign = 10,
@@ -359,22 +425,26 @@
TaskUser = 2,
/**浠诲姟楠屾敹 */
TaskCheckReceive = 3,
+ /**鏂囧瓧璇嗗埆 */
+ FileUtils = 4,
+ /**鏂囧瓧璇嗗埆 */
+ OcrUtils = 5,
/**鐢ㄦ埛璁よ瘉 */
- Auth = 4,
+ Auth = 6,
/**鐢ㄦ埛鑿滃崟 */
- Menu = 5,
+ Menu = 7,
/**鐢ㄦ埛璧勬簮 */
- Resource = 6,
+ Resource = 8,
/**鐢ㄦ埛瑙掕壊 */
- Role = 7,
+ Role = 9,
/**鐢ㄦ埛淇℃伅 */
- User = 8,
+ User = 10,
/**鐢ㄦ埛绠�鍘� */
- UserResume = 9,
+ UserResume = 11,
/**浼佷笟淇℃伅 */
- Enterprise = 10,
+ Enterprise = 12,
/**鐏靛伐淇℃伅 */
- EnterpriseEmployee = 11,
+ EnterpriseEmployee = 13,
}
enum EnumResourceMethod {
@@ -752,6 +822,24 @@
/** 閿欒鐮� */
errorCode?: string;
data?: GetEnterpriseSmsSettingQueryResult;
+ /** 鎵ц鎴愬姛 */
+ success?: boolean;
+ /** 閿欒淇℃伅 */
+ msg?: any;
+ /** 闄勫姞鏁版嵁 */
+ extras?: any;
+ /** 鏃堕棿鎴� */
+ timestamp?: number;
+ }
+
+ interface FriendlyResultGetLicenseOcrCommandResult {
+ /** 璺熻釜Id */
+ traceId?: string;
+ /** 鐘舵�佺爜 */
+ code?: number;
+ /** 閿欒鐮� */
+ errorCode?: string;
+ data?: GetLicenseOcrCommandResult;
/** 鎵ц鎴愬姛 */
success?: boolean;
/** 閿欒淇℃伅 */
@@ -1458,6 +1546,24 @@
timestamp?: number;
}
+ interface FriendlyResultUploadFileCommandResult {
+ /** 璺熻釜Id */
+ traceId?: string;
+ /** 鐘舵�佺爜 */
+ code?: number;
+ /** 閿欒鐮� */
+ errorCode?: string;
+ data?: UploadFileCommandResult;
+ /** 鎵ц鎴愬姛 */
+ success?: boolean;
+ /** 閿欒淇℃伅 */
+ msg?: any;
+ /** 闄勫姞鏁版嵁 */
+ extras?: any;
+ /** 鏃堕棿鎴� */
+ timestamp?: number;
+ }
+
type GetAliyunOSSAcsQuery = Record<string, any>;
interface GetAliyunOSSAcsQueryResult {
@@ -2031,6 +2137,12 @@
isConfigured?: boolean;
}
+ interface GetLicenseOcrCommandResult {
+ /** 鍦板潃 */
+ url?: string;
+ model?: BaiduOcrBusinessLicenseResultModel;
+ }
+
interface GetMenuQueryResult {
/** Id */
id?: string;
@@ -2318,6 +2430,8 @@
}
enum GetPersonalHireTaskInfosQueryStatus {
+ /**寰呭紑濮� */
+ Wait = 1,
/**杩涜涓� */
InProcess = 10,
/**宸插畬鎴� */
@@ -2610,8 +2724,10 @@
}
enum GetTaskInfoQueryResultHireButton {
+ /**寰呭紑濮� */
+ Wait = 1,
/**鐢宠楠屾敹 */
- ApplyCheckReceive = 1,
+ ApplyCheckReceive = 5,
/**杩涜涓� */
InProcess = 10,
/**宸插畬鎴� */
@@ -2692,6 +2808,7 @@
checkReceiveStatus?: EnumTaskCheckReceiveStatus;
settlementStatus?: EnumTaskSettlementStatus;
recommendStatus?: EnumTaskRecommendStatus;
+ hireStatus?: EnumTaskUserHireStatus;
/** 鍙戝竷鏃堕棿 */
createdTime?: string;
}
@@ -3021,6 +3138,7 @@
workExperience?: string;
/** 鍒涘缓鏃堕棿 */
createdTime?: string;
+ hireStatus?: EnumTaskUserHireStatus;
}
type GetUserResumeWorkExperienceQuery = Record<string, any>;
@@ -3360,15 +3478,6 @@
resources?: GetRoleQueryResultResource[];
}
- interface SaveScheduleJobDetailCommand {
- /** 璧勬簮Id */
- resourceId?: string;
- /** 璇锋眰鏁版嵁 */
- body?: string;
- /** Cron琛ㄨ揪寮� */
- cron?: string;
- }
-
interface SaveTaskInfoCommand {
/** 浠诲姟鍚嶇О */
name: string;
@@ -3591,6 +3700,87 @@
files?: string[];
}
+ interface SyncEnterpriseUserCommand {
+ dataSource?: EnumDataSource;
+ /** 鏁版嵁鏉ユ簮Id */
+ dataSourceId?: string;
+ /** 瀵嗙爜 */
+ password?: string;
+ /** 濮撳悕 */
+ name?: string;
+ /** 鐢ㄦ埛鍚� */
+ userName?: string;
+ /** 鎵嬫満鍙� */
+ phoneNumber?: string;
+ status?: EnumUserStatus;
+ enterprise?: SyncEnterpriseUserCommandEnterprise;
+ }
+
+ interface SyncEnterpriseUserCommandEnterprise {
+ /** 浼佷笟鍏ㄧО */
+ enterpriseName: string;
+ /** 缁熶竴绀句細淇$敤浠g爜 */
+ societyCreditCode: string;
+ /** 钀ヤ笟鎵х収鐓х墖 */
+ licenseImage?: string;
+ /** 娉曚汉濮撳悕 */
+ legalPerson?: string;
+ /** 娉曚汉韬唤璇佸彿 */
+ legalIdentity?: string;
+ /** 鎵�鍦ㄧ渷浠界紪鍙� */
+ provinceCode?: string;
+ /** 鎵�鍦ㄥ煄甯傜紪鍙� */
+ cityCode?: string;
+ /** 鑱旂郴浜� */
+ contacts?: string;
+ /** 鑱旂郴鐢佃瘽 */
+ contactPhoneNumber?: string;
+ /** 鑱旂郴閭 */
+ contactEmail?: string;
+ payAccess?: EnumPayAccess;
+ /** 寮�鎴锋�昏 */
+ bankName?: string;
+ /** 寮�鎴锋敮琛� */
+ bankBranchName?: string;
+ /** 閾惰璐︽埛 */
+ bankCard?: string;
+ /** 鏄惁宸叉牎楠岄摱琛岃处鎴� */
+ isCheckedBankCard?: boolean;
+ realAccess?: EnumRealAccess;
+ /** 瀹炲悕璐圭敤 */
+ realVerifyCost?: number;
+ /** 绛剧害璐圭敤 */
+ signCost?: number;
+ /** 涓�鍙d环 */
+ mergeSignCost?: number;
+ /** 鏄惁瀹炲悕 */
+ isReal?: boolean;
+ enterpriseAuth?: SyncEnterpriseUserCommandEnterpriseAuth;
+ }
+
+ interface SyncEnterpriseUserCommandEnterpriseAuth {
+ enterpriseRealMethod?: EnumEnterpriseRealMethod;
+ personalRealMethod?: EnumPersonalRealMethod;
+ /** 娉曚汉鎴栫粡鍔炰汉濮撳悕 */
+ name?: string;
+ /** 娉曚汉鎴栫粡鍔炰汉韬唤璇佸彿 */
+ identity?: string;
+ /** 娉曚汉鎴栫粡鍔炰汉韬唤璇佷汉鍍忛潰 */
+ identityImg?: string;
+ /** 娉曚汉鎴栫粡鍔炰汉韬唤璇佸浗寰介潰 */
+ identityBackImg?: string;
+ /** 娉曚汉鎴栫粡鍔炰汉閾惰鍗″彿 */
+ bankCard?: string;
+ /** 娉曚汉鎴栫粡鍔炰汉閾惰鍗$収鐗� */
+ bankCardImg?: string;
+ /** 娉曚汉鎴栫粡鍔炰汉鎵嬫満鍙� */
+ phoneNumber?: string;
+ /** 鏄惁濮旀墭缁忓姙浜� */
+ proxy?: boolean;
+ /** 浼佷笟鎺堟潈涔� */
+ proxyPowerAttorneyUrl?: string;
+ }
+
type SyncHumanResourcesAreaDictionaryDataCommand = Record<string, any>;
interface UpdatePhoneNumberVerifyCodeCommand {
@@ -3598,6 +3788,11 @@
phoneNumber: string;
}
+ interface UploadFileCommandResult {
+ /** 鍦板潃 */
+ url?: string;
+ }
+
interface WxmpLoginCommand {
/** 鐢ㄦ埛鐧诲綍鍑瘉 */
code: string;
diff --git a/packages/services/apiV2/user.ts b/packages/services/apiV2/user.ts
index 83fdcbf..44bca4f 100644
--- a/packages/services/apiV2/user.ts
+++ b/packages/services/apiV2/user.ts
@@ -97,3 +97,18 @@
...(options || {}),
});
}
+
+/** 鍚屾浼佷笟鐢ㄦ埛 POST /api/user/user/syncEnterpriseUser */
+export async function syncEnterpriseUser(
+ body: API.SyncEnterpriseUserCommand,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/user/user/syncEnterpriseUser', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
--
Gitblit v1.9.1