zhengyiming
5 天以前 e063d2153f5d2c72178a13c2c35c3f8b97f2368a
fix: 任务详情
1个文件已添加
20个文件已修改
919 ■■■■ 已修改文件
apps/bMiniApp/project.config.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/stores/modules/user.ts 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/utils/request/index.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/utils/storage/auth.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/constants/app.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/stores/modules/user.ts 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/login/registerForm/registerForm.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/task/components/CompanyDesc.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/utils/request/index.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/utils/storage/auth.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/constants/apiEnum.ts 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/auth.ts 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/index.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/resource.ts 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/typings.d.ts 481 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/user.ts 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/userResume.ts 223 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
types/api.d.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/project.config.json
@@ -51,6 +51,6 @@
        "ignore": [],
        "include": []
    },
    "appid": "wxb9e0baf4f87aa0de",
    "appid": "wx3669dd12a0915f7d",
    "projectname": "bMiniApp"
}
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 }
      );
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();
      }
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;
      //   }
      // },
    }
  );
}
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'],
          };
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);
}
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,
};
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);
    },
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();
      }
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;
      //   }
      // },
    }
  );
}
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;
      }
    }
  }
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'],
          };
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);
}
packages/constants/apiEnum.ts
@@ -53,6 +53,30 @@
  Desc = 1,
}
/** 空闲时间 */
export enum EnumPersonalFreeTime {
  /**不限 */
  NoLimit = 10,
  /**寒暑假 */
  WinterSummerVacations = 20,
  /**节假日 */
  FestivalAndHoliday = 30,
  /**周六日 */
  Weekend = 40,
  /**工作日 */
  Weekday = 50,
}
/** 求职状态 */
export enum EnumPersonalJobSeekingStatus {
  /**积极找任务 */
  Active = 10,
  /**随便看看 */
  Whatever = 20,
  /**暂时不找任务 */
  Not = 30,
}
/** 实名通道 */
export enum EnumRealAccess {
  /**上上签 */
@@ -77,8 +101,10 @@
  Role = 5,
  /**用户信息 */
  User = 6,
  /**用户简历 */
  UserResume = 7,
  /**企业信息 */
  Enterprise = 7,
  Enterprise = 8,
}
/** 资源请求方式 */
packages/services/apiV2/auth.ts
@@ -2,6 +2,21 @@
// @ts-ignore
import { request } from '@/utils/request';
/** 绑定手机号 POST /api/user/auth/bindPhoneNumber */
export async function bindPhoneNumber(
  body: API.BindPhoneNumberCommand,
  options?: API.RequestConfig
) {
  return request<boolean>('/api/user/auth/bindPhoneNumber', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 获取阿里云OSS授权信息 GET /api/user/auth/getAliyunOSSAcs */
export async function getAliyunOSSAcs(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
@@ -89,3 +104,15 @@
    ...(options || {}),
  });
}
/** 微信小程序登录 POST /api/user/auth/wxmpLogin */
export async function wxmpLogin(body: API.WxmpLoginCommand, options?: API.RequestConfig) {
  return request<API.LoginCommandCallback>('/api/user/auth/wxmpLogin', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
packages/services/apiV2/index.ts
@@ -2,6 +2,7 @@
/* eslint-disable */
// API 更新时间:
// API 唯一标识:
import * as userResume from './userResume';
import * as resource from './resource';
import * as user from './user';
import * as dictionary from './dictionary';
@@ -11,6 +12,7 @@
import * as role from './role';
import * as menu from './menu';
export default {
  userResume,
  resource,
  user,
  dictionary,
packages/services/apiV2/resource.ts
@@ -31,3 +31,18 @@
    ...(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 || {}),
  });
}
packages/services/apiV2/typings.d.ts
@@ -105,9 +105,46 @@
    clientType?: EnumClientType;
  }
  interface APIgetUserResumeCredentialParams {
    /** Id */
    id?: string;
  }
  interface APIgetUserResumeCredentialsParams {
    /** 查询用户简历-资格证书列表 */
    request?: GetUserResumeCredentialsQuery;
  }
  interface APIgetUserResumeDetailParams {
    /** 查询用户简历-详细信息 */
    request?: GetUserResumeDetailQuery;
  }
  interface APIgetUserResumeJobSeekingParams {
    /** 查询用户简历-求职意向 */
    request?: GetUserResumeJobSeekingQuery;
  }
  interface APIgetUserResumeParams {
    /** 用户Id */
    userId?: string;
  }
  interface APIgetUserResumePersonalParams {
    /** 查询用户简历-个人信息 */
    request?: GetUserResumePersonalQuery;
  }
  interface APIgetUserResumeWorkExperienceParams {
    /** 查询用户简历-工作经验 */
    request?: GetUserResumeWorkExperienceQuery;
  }
  interface BindPhoneNumberCommand {
    /** 手机号码 */
    phoneNumber?: string;
    /** 验证码 */
    verifyCode?: string;
  }
  interface DeleteDictionaryCategoryCommand {
@@ -123,6 +160,10 @@
  }
  interface DeleteTaskInfoCommand {
    ids: string[];
  }
  interface DeleteUserResumeCredentialCommand {
    ids: string[];
  }
@@ -173,6 +214,28 @@
    Desc = 1,
  }
  enum EnumPersonalFreeTime {
    /**不限 */
    NoLimit = 10,
    /**寒暑假 */
    WinterSummerVacations = 20,
    /**节假日 */
    FestivalAndHoliday = 30,
    /**周六日 */
    Weekend = 40,
    /**工作日 */
    Weekday = 50,
  }
  enum EnumPersonalJobSeekingStatus {
    /**积极找任务 */
    Active = 10,
    /**随便看看 */
    Whatever = 20,
    /**暂时不找任务 */
    Not = 30,
  }
  enum EnumRealAccess {
    /**上上签 */
    BestSign = 10,
@@ -195,8 +258,10 @@
    Role = 5,
    /**用户信息 */
    User = 6,
    /**用户简历 */
    UserResume = 7,
    /**企业信息 */
    Enterprise = 7,
    Enterprise = 8,
  }
  enum EnumResourceMethod {
@@ -295,6 +360,25 @@
    Enterprise = 20,
    /**运营 */
    Operation = 100,
  }
  interface FriendlyResultBoolean {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    /** 数据 */
    data?: boolean;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultGetAliyunOSSAcsQueryResult {
@@ -441,6 +525,78 @@
    timestamp?: number;
  }
  interface FriendlyResultGetUserResumeCredentialQueryResult {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    data?: GetUserResumeCredentialQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultGetUserResumeDetailQueryResult {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    data?: GetUserResumeDetailQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultGetUserResumeJobSeekingQueryResult {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    data?: GetUserResumeJobSeekingQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultGetUserResumePersonalQueryResult {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    data?: GetUserResumePersonalQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultGetUserResumeQueryResult {
    /** 跟踪Id */
    traceId?: string;
@@ -449,6 +605,24 @@
    /** 错误码 */
    errorCode?: string;
    data?: GetUserResumeQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultGetUserResumeWorkExperienceQueryResult {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    data?: GetUserResumeWorkExperienceQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
@@ -582,6 +756,25 @@
    errorCode?: string;
    /** 数据 */
    data?: GetUserInfoRolesQueryResultItem[];
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultListGetUserResumeCredentialsQueryResultItem {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    /** 数据 */
    data?: GetUserResumeCredentialsQueryResultItem[];
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
@@ -859,6 +1052,8 @@
    contactEmail?: string;
    /** 账号 */
    userName?: string;
    /** 在招岗位数量 */
    taskCount?: number;
  }
  interface GetEnterpriseSmsSettingQueryResult {
@@ -1227,24 +1422,14 @@
    status?: EnumTaskStatus;
    releaseStatus?: EnumTaskReleaseStatus;
    recommendStatus?: EnumTaskRecommendStatus;
    checkReceiveStatus?: EnumTaskCheckReceiveStatus;
  }
  interface GetTaskInfosQueryResult {
    pageModel?: PagedListQueryResultPageModel;
    /** 数据 */
    data?: GetTaskInfosQueryResultItem[];
    count?: GetTaskInfosQueryResultCount;
  }
  interface GetTaskInfosQueryResultCount {
    /** 待安排数量 */
    waitAssignCount?: number;
    /** 已安排数量 */
    completedAssignCount?: number;
    /** 发布中数量 */
    inProcessReleaseCount?: number;
    /** 已停止数量 */
    stoppedReleaseCount?: number;
    objectData?: GetTaskInfosQueryResultObjectData;
  }
  interface GetTaskInfosQueryResultItem {
@@ -1294,6 +1479,17 @@
    createdTime?: string;
  }
  interface GetTaskInfosQueryResultObjectData {
    /** 待安排数量 */
    waitAssignCount?: number;
    /** 已安排数量 */
    completedAssignCount?: number;
    /** 发布中数量 */
    inProcessReleaseCount?: number;
    /** 已停止数量 */
    stoppedReleaseCount?: number;
  }
  interface GetUserInfoRolesQueryResultItem {
    /** 角色Id */
    id?: string;
@@ -1305,7 +1501,184 @@
    isChecked?: boolean;
  }
  type GetUserResumeQueryResult = Record<string, any>;
  interface GetUserResumeCredentialQueryResult {
    /** 资格证书Id */
    id?: string;
    /** 证书类型编号 */
    typeCode?: string;
    /** 证书类型 */
    typeContent?: string;
    /** 证书编号 */
    code?: string;
    /** 永久证书 */
    isForever?: boolean;
    /** 开始日期 */
    startDate?: string;
    /** 结束日期 */
    endDate?: string;
    /** 发证单位 */
    issueUnit?: string;
    /** 证书正面照片 */
    img?: string;
    /** 证书反面照片 */
    backImg?: string;
  }
  type GetUserResumeCredentialsQuery = Record<string, any>;
  interface GetUserResumeCredentialsQueryResultItem {
    /** 资格证书Id */
    id?: string;
    /** 证书类型编号 */
    typeCode?: string;
    /** 证书类型 */
    typeContent?: string;
  }
  type GetUserResumeDetailQuery = Record<string, any>;
  interface GetUserResumeDetailQueryResult {
    /** 身高 */
    height?: number;
    /** 体重 */
    weight?: number;
    /** 生活照 */
    photos?: string[];
  }
  type GetUserResumeJobSeekingQuery = Record<string, any>;
  interface GetUserResumeJobSeekingQueryResult {
    /** 用户信息期望岗位 */
    userExpectJobs?: GetUserResumeJobSeekingQueryResultExpectJob[];
    freeTime?: EnumPersonalFreeTime;
    jobSeekingStatus?: EnumPersonalJobSeekingStatus;
  }
  interface GetUserResumeJobSeekingQueryResultExpectJob {
    /** 期望岗位上级编号 */
    expectJobParentCode?: string;
    /** 期望岗位编号 */
    expectJobCode?: string;
    /** 期望岗位 */
    expectJobContent?: string;
  }
  type GetUserResumePersonalQuery = Record<string, any>;
  interface GetUserResumePersonalQueryResult {
    /** 头像 */
    avatar?: string;
    /** 姓名 */
    name?: string;
    /** 身份证号 */
    identity?: string;
    /** 身份编号 */
    personalIdentityCode?: string;
    /** 身份 */
    personalIdentityContent?: string;
    /** 学历编号 */
    educationalBackgroundCode?: string;
    /** 学历 */
    educationalBackgroundContent?: string;
    /** 常驻省份编号 */
    provinceCode?: string;
    /** 常驻省份 */
    provinceContent?: string;
    /** 常驻城市编号 */
    cityCode?: string;
    /** 常驻城市 */
    cityContent?: string;
  }
  interface GetUserResumeQueryResult {
    /** 用户Id */
    id?: string;
    /** 头像 */
    avatar?: string;
    /** 姓名 */
    name?: string;
    /** 手机号 */
    phoneNumber?: string;
    /** 身份证号 */
    identity?: string;
    gender?: EnumUserGender;
    /** 年龄 */
    age?: number;
    /** 是否实名 */
    isReal?: boolean;
    /** 上岗次数 */
    taskCount?: number;
    /** 常驻省份编号 */
    provinceCode?: string;
    /** 常驻省份 */
    provinceContent?: string;
    /** 常驻城市编号 */
    cityCode?: string;
    /** 常驻城市 */
    cityContent?: string;
    /** 身份编号 */
    personalIdentityCode?: string;
    /** 身份 */
    personalIdentityContent?: string;
    /** 学历编号 */
    educationalBackgroundCode?: string;
    /** 学历 */
    educationalBackgroundContent?: string;
    /** 用户信息期望岗位 */
    userExpectJobs?: GetUserResumeQueryResultExpectJob[];
    freeTime?: EnumPersonalFreeTime;
    jobSeekingStatus?: EnumPersonalJobSeekingStatus;
    /** 用户信息资格证书 */
    userCredentials?: GetUserResumeQueryResultCredential[];
    /** 工作资历 */
    workSeniority?: string;
    /** 工作经验 */
    workExperience?: string;
    /** 身高 */
    height?: number;
    /** 体重 */
    weight?: number;
    /** 生活照 */
    photoImgs?: string[];
  }
  interface GetUserResumeQueryResultCredential {
    /** 证书类型编号 */
    typeCode?: string;
    /** 证书类型 */
    typeContent?: string;
    /** 证书编号 */
    code?: string;
    /** 永久证书 */
    isForever?: boolean;
    /** 开始日期 */
    startDate?: string;
    /** 结束日期 */
    endDate?: string;
    /** 发证单位 */
    issueUnit?: string;
    /** 证书正面照片 */
    img?: string;
    /** 证书反面照片 */
    backImg?: string;
  }
  interface GetUserResumeQueryResultExpectJob {
    /** 期望岗位编号 */
    personalIdentityCode?: string;
    /** 期望岗位 */
    personalIdentityContent?: string;
  }
  type GetUserResumeWorkExperienceQuery = Record<string, any>;
  interface GetUserResumeWorkExperienceQueryResult {
    /** 工作资历 */
    workSeniority?: string;
    /** 工作经验 */
    workExperience?: string;
  }
  interface LoginCommandCallback {
    /** 用户访问令牌 */
@@ -1595,6 +1968,15 @@
    resources?: GetRoleQueryResultResource[];
  }
  interface SaveScheduleJobDetailCommand {
    /** 资源Id */
    resourceId?: string;
    /** 请求数据 */
    body?: string;
    /** Cron表达式 */
    cron?: string;
  }
  interface SaveTaskInfoCommand {
    /** Id */
    id?: string;
@@ -1629,6 +2011,67 @@
    beginTime: string;
    /** 任务结束时间 */
    endTime: string;
  }
  interface SaveUserResumeCredentialCommand {
    /** Id */
    id?: string;
    /** 证书类型编号 */
    typeCode: string;
    /** 证书编号 */
    code?: string;
    /** 永久证书 */
    isForever?: boolean;
    /** 开始日期 */
    startDate: string;
    /** 结束日期 */
    endDate: string;
    /** 发证单位 */
    issueUnit?: string;
    /** 证书正面照片 */
    img: string;
    /** 证书反面照片 */
    backImg?: string;
  }
  interface SaveUserResumeDetailCommand {
    /** 身高 */
    height?: number;
    /** 体重 */
    weight?: number;
    /** 生活照 */
    photos?: string[];
  }
  interface SaveUserResumeJobSeekingCommand {
    /** 用户信息期望岗位 */
    userExpectJobs: string[];
    freeTime: EnumPersonalFreeTime;
    jobSeekingStatus: EnumPersonalJobSeekingStatus;
  }
  interface SaveUserResumePersonalCommand {
    /** 头像 */
    avatar?: string;
    /** 姓名 */
    name?: string;
    /** 身份证号 */
    identity: string;
    /** 身份编号 */
    personalIdentityCode: string;
    /** 学历编号 */
    educationalBackgroundCode: string;
    /** 常驻省份编号 */
    provinceCode: string;
    /** 常驻城市编号 */
    cityCode: string;
  }
  interface SaveUserResumeWorkExperienceCommand {
    /** 工作资历 */
    workSeniority?: string;
    /** 工作经验 */
    workExperience?: string;
  }
  interface SelectOptionGuidGetDictionaryCategorySelectQueryOption {
@@ -1730,12 +2173,18 @@
  interface SmsLoginCommand {
    /** 手机号码 */
    phoneNumber: string;
    phoneNumber?: string;
    /** 验证码 */
    verifyCode: string;
    verifyCode?: string;
    type?: EnumUserType;
    clientType?: EnumClientType;
  }
  type SyncHumanResourcesAreaDictionaryDataCommand = Record<string, any>;
  interface WxmpLoginCommand {
    /** 用户登录凭证 */
    code: string;
    type?: EnumUserType;
  }
}
packages/services/apiV2/user.ts
@@ -35,21 +35,6 @@
  });
}
/** 查询用户简历 GET /api/user/user/getUserResume */
export async function getUserResume(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetUserResumeParams,
  options?: API.RequestConfig
) {
  return request<API.GetUserResumeQueryResult>('/api/user/user/getUserResume', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
/** 设置用户信息角色 PUT /api/user/user/setUserInfoRoles */
export async function setUserInfoRoles(
  body: API.SetUserInfoRolesCommand,
packages/services/apiV2/userResume.ts
New file
@@ -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(
  // 叠加生成的Param类型 (非body参数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(
  // 叠加生成的Param类型 (非body参数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(
  // 叠加生成的Param类型 (非body参数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(
  // 叠加生成的Param类型 (非body参数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(
  // 叠加生成的Param类型 (非body参数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(
  // 叠加生成的Param类型 (非body参数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(
  // 叠加生成的Param类型 (非body参数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 || {}),
  });
}
types/api.d.ts
@@ -4,6 +4,14 @@
    showLoading?: boolean;
    mock?: boolean;
    customErrorHandler?: (error: any) => boolean;
    /**
     * 是否获取原始的AxiosResponse
     */
    getResponse?: boolean;
    /**
     * 跳过默认错误处理
     */
    skipErrorHandler?: boolean;
  }
  interface MyCertificationAuditDto {