123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- import request from '@/config/axios'
- // 获取人才信息
- export const getBaseInfo = async (params) => {
- return await request.get({
- url: '/app-api/menduner/system/person/get',
- params
- })
- }
- // 发送验证码
- export const sendSmsCode = async (data) => {
- return await request.post({
- url: '/app-api/menduner/system/auth/send-sms-code',
- data
- })
- }
- // 个人注册并登录
- export const userRegister = async (data) => {
- return await request.post({
- url: '/app-api/menduner/system/auth/register',
- data
- })
- }
- // 验证码登录
- export const smsLogin = async (data) => {
- return await request.post({
- url: '/app-api/menduner/system/auth/sms-login',
- data
- })
- }
- // 切换登录
- export const switchLoginOfEnterprise = async (data) => {
- return await request.post({
- tokenIndex: 2, // 使用求职token
- url: '/app-api/menduner/system/recruit/enterprise/auth/switch-login',
- data
- })
- }
- // 企业-验证码登录
- export const smsLoginOfEnterprise = async (data) => {
- return await request.post({
- url: '/app-api/menduner/system/recruit/enterprise/auth/sms-login',
- data
- })
- }
- // 企业-密码登录
- export const passwordLoginOfEnterprise = async (data) => {
- return await request.post({
- url: '/app-api/menduner/system/recruit/enterprise/auth/login',
- data
- })
- }
- // 密码登录
- export const passwordLogin = async (data) => {
- return await request.post({
- url: '/app-api/menduner/system/auth/login',
- data
- })
- }
- // 根据邮箱获取企业注册申请
- export const getEnterpriseRegisterApply = async (email) => {
- return await request.get({
- url: '/app-api/menduner/system/enterprise-register/by/email?email=' + email
- })
- }
- // 退出登录
- export const logout = async () => {
- return await request.post({
- url: '/app-api/menduner/system/auth/logout'
- })
- }
- // 根据令牌退出登录
- export const logoutToken = async (token) => {
- return await request.post({
- url: `/app-api/menduner/system/recruit/enterprise/auth/logout-token?token=${token}`
- })
- }
- // 修改密码
- export const updatePassword = async (data) => {
- return await request.put({
- url: '/app-api/menduner/system/mde-user/update-password',
- data
- })
- }
- // 重置密码
- export const resetPassword = async (data) => {
- return await request.put({
- url: '/app-api/menduner/system/mde-user/reset-password',
- data
- })
- }
- // 字典
- export const getDictData = async (params) => {
- return await request.get({
- url: '/app-api/system/dict-data/type',
- params
- })
- }
- // 点击访问职位埋点
- export const getPositionTreeClick = async (data) => {
- return await request.post({
- url: '/app-api/menduner/system/position/click',
- data
- })
- }
- // 获取职位列表
- export const getPositionData = async (params) => {
- return request.get({
- url: '/app-api/menduner/system/position/list',
- params
- })
- }
- // 获取热门职位
- export const getHotPositionList = async (params) => {
- return await request.get({
- url: '/app-api/menduner/system/position/hot',
- params
- })
- }
- // 获得职位信息
- export const getPositionTreeData = async (params) => {
- return await request.get({
- url: '/app-api/menduner/system/position/get/tree',
- params
- })
- }
- // 获取区域树形
- export const getAreaTreeData = async () => {
- return await request.get({
- url: '/app-api/menduner/system/area/get/tree'
- })
- }
- // 获取行业树形
- export const getIndustryTreeData = async (params) => {
- return await request.get({
- url: '/app-api/menduner/system/industry/get/tree',
- params
- })
- }
- // 获取行业列表
- export const getIndustryListData = async (params) => {
- return await request.get({
- url: '/app-api/menduner/system/industry/list',
- params
- })
- }
- // 获取地区列表
- export const getAreaListData = async (params) => {
- return await request.get({
- url: '/app-api/menduner/system/area/list',
- params
- })
- }
- // 获取-技能列表
- export const getSkillList = async () => {
- return await request.get({
- url: '/app-api/menduner/system/skill/list'
- })
- }
- // 获取地区获取地区map
- export const getAreaMapData = async (params) => {
- return await request.get({
- url: '/app-api/menduner/system/area/map',
- params
- })
- }
- // 公司检索-获取热门地区
- export const getHotArea = async () => {
- return await request.get({
- url: '/app-api/menduner/system/area/get/hot'
- })
- }
- // 上传文件
- export const uploadFile = async (data) => {
- return await request.upload({ url: '/app-api/infra/file/upload', data })
- }
- // 获取当前登录的企业用户信息
- export const getEnterprisingUserInfo = async (params) => {
- return await request.get({
- url: '/app-api/menduner/system/recruit/user/get',
- params
- })
- }
- // 招聘端-刷新令牌token
- export const enterpriseRefreshToken = async (refreshToken) => {
- return await request.post({
- url: `/app-api/menduner/system/recruit/enterprise/auth/refresh-token?refreshToken=${refreshToken}`
- })
- }
- // 求职端-刷新令牌token
- export const userRefreshToken = async (refreshToken) => {
- return await request.post({
- url: `/app-api/menduner/system/auth/refresh-token?refreshToken=${refreshToken}`
- })
- }
- // 招聘端-企业账户信息(积分&余额)
- export const getEnterpriseUserAccount = async () => {
- return await request.get({
- // url: '/app-api/menduner/system/recruit/user/get/account'
- tokenIndex: 1, // 使用招聘token
- url: '/app-api/pay/currency/get' // 获取货币账户
- })
- }
- // 求职端-用户账户信息(积分&余额)
- export const getUserAccount = async () => {
- return await request.get({
- url: '/app-api/menduner/system/mde-user/get/account'
- })
- }
- // 获取聊天秘钥信息
- export const getChatKey = async (data) => {
- return await request.post({
- url: '/app-api/im/user/get',
- data
- })
- }
- // 同步最近会话
- export const getConversationSync = async (data) => {
- return await request.post({
- url: '/app-api/im/conversation/sync',
- data
- })
- }
- // 同步最近会话
- export const getMessageSync = async (data) => {
- return await request.post({
- url: '/app-api/im/im/channel/messagesync',
- data
- })
- }
- // 设置最近会话未读数量
- export const setUnread = async (data) => {
- return await request.post({
- url: '/app-api/im/conversations/setUnread',
- data
- })
- }
- // 设置最近会话未读数量
- export const deleteConversation = async (data) => {
- return await request.post({
- url: '/app-api/im/conversation/delete',
- data
- })
- }
- // 获取type类型聊天记录
- export const getMessageType = async (data) => {
- return await request.post({
- url: '/app-api/im/im/history/messages',
- data
- })
- }
- // 求职端-根据邀请人id获取面试邀约列表
- export const getInterviewInviteListByInviteUserId = async (inviteUserId) => {
- return await request.get({
- url: `/app-api/menduner/system/interview-invite/get/list/by/${inviteUserId}`
- })
- }
- // 获得指定应用的开启的支付渠道编码列表
- export const getEnableCodeList = async (params) => {
- return await request.get({
- url: '/app-api/pay/channel/get-enable-code-list',
- params
- })
- }
- // 获取待支付的订单
- export const getUnpaidOrder = async (params) => {
- return await request.get({
- url: '/app-api/menduner/system/recruit/trade/order/get/unpaid',
- params
- })
- }
- // 提交支付订单
- export const payOrderSubmit = async (data) => {
- return await request.post({
- // url: '/app-api/menduner/system/recruit/pay/order/submit',
- url: '/app-api/pay/order/submit',
- data
- })
- }
- // 获得支付订单
- export const getOrderPayStatus = async (params) => {
- return await request.get({
- url: '/app-api/pay/order/get',
- params
- })
- }
- // 获取账户余额
- export const getAccountBalance = async () => {
- return await request.get({
- url: '/app-api/pay/wallet/get'
- })
- }
- // 企业营业执照图片识别文字
- export const getBusinessLicenseOCR = async (url) => {
- return await request.post({
- url: '/app-api/menduner/system/recruit/enterprise/business/ocr?url=' + url
- })
- }
- // 社交授权的跳转
- export const socialAuthRedirect = async (params) => {
- return await request.get({
- url: '/app-api/menduner/system/auth/social-auth-redirect',
- params
- })
- }
|