123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465 |
- import request from "@/utils/request"
- // 刷新令牌
- export const refreshToken = (refreshToken) => {
- return request({
- url: '/app-api/menduner/system/auth/refresh-token',
- method: "POST",
- params: {
- refreshToken
- },
- custom: {
- showLoading: false,
- showError: false
- }
- })
- }
- // 发送手机验证码
- export const sendSmsCode = (data) => {
- return request({
- url: '/app-api/menduner/system/auth/send-sms-code',
- method: "POST",
- data,
- custom: {
- loadingMsg: '发送中',
- showSuccess: true,
- successMsg: '发送成功'
- }
- })
- }
- // 短信登录
- export const smsLogin = (data) => {
- return request({
- url: '/app-api/menduner/system/auth/sms-login',
- method: 'POST',
- data,
- custom: {
- showLoading: false
- }
- })
- }
- // 微信小程序的一键登录
- export const weChatLogin = (data) => {
- return request({
- url: '/app-api/menduner/system/auth/weixin-mini-app-login',
- method: 'POST',
- data,
- custom: {
- showLoading: false
- }
- })
- }
- // 短信登录
- export const userRegister = (data) => {
- return request({
- url: '/app-api/menduner/system/auth/register',
- method: 'POST',
- data,
- custom: {
- showLoading: false
- }
- })
- }
- // 密码登录
- export const passwordLogin = (data) => {
- return request({
- url: '/app-api/menduner/system/auth/login',
- method: 'POST',
- data,
- custom: {
- showLoading: false
- }
- })
- }
- // 二维码扫码用户注册并登录
- export const shareUserRegister = (data) => {
- return request({
- url: '/app-api/menduner/system/auth/register',
- method: 'POST',
- data,
- custom: {
- showLoading: false
- }
- })
- }
- // 招聘端-退出登录
- export const logout = (token) => {
- return request({
- url: `/app-api/menduner/system/recruit/enterprise/auth/logout-token?token=${token}`,
- method: 'POST',
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 个人端-退出登录
- export const userLogout = () => {
- return request({
- url: `/app-api/menduner/system/auth/logout`,
- method: 'POST',
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 字典
- export const getDictData = (params) => {
- return request({
- url: '/app-api/system/dict-data/type',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 获取行业列表
- export const getIndustryListData = (params) => {
- return request({
- url: '/app-api/menduner/system/industry/list',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 获取技能列表
- export const getSkillList = () => {
- return request({
- url: '/app-api/menduner/system/skill/list',
- method: 'GET',
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 获取行业树形
- export const getIndustryTreeData = (params) => {
- return request({
- url: '/app-api/menduner/system/industry/get/tree',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 获取地区列表
- export const getAreaListData = (params) => {
- return request({
- url: '/app-api/menduner/system/area/list',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 获取地区获取地区map
- export const getAreaMapData = (params) => {
- return request({
- url: '/app-api/menduner/system/area/map',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 获得职位类型
- export const getPositionTreeData = (params) => {
- return request({
- url: '/app-api/menduner/system/position/get/tree',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 获取职位列表
- export const getPositionData = (params) => {
- return request({
- url: '/app-api/menduner/system/position/list',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 获取区域树形
- export const getAreaTreeData = () => {
- return request({
- url: '/app-api/menduner/system/area/get/tree',
- method: 'GET',
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 同步最近会话
- export const getConversationSync = async (data) => {
- return request({
- url: '/app-api/im/conversation/sync',
- method: 'POST',
- data,
- custom: {
- openEncryption: true,
- showLoading: false,
- auth: true
- }
- })
- }
- // 获取聊天秘钥信息
- export const getChatKey = async (data) => {
- return request({
- url: '/app-api/im/user/get',
- method: 'POST',
- data,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 同步最近会话
- export const getMessageSync = async (data) => {
- return request({
- url: '/app-api/im/im/channel/messagesync',
- method: 'POST',
- data,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 设置最近会话未读数量
- export const setUnread = async (data) => {
- return request({
- url: '/app-api/im/conversations/setUnread',
- method: 'POST',
- data,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 设置最近会话未读数量
- export const deleteConversation = async (data) => {
- return request({
- url: '/app-api/im/conversation/delete',
- method: 'POST',
- data,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 获取type类型聊天记录
- export const getMessageType = async (data) => {
- return request({
- url: '/app-api/im/im/history/messages',
- method: 'POST',
- data,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 求职端-根据邀请人id获取面试邀约列表
- export const getInterviewInviteListByInviteUserId = async (inviteUserId) => {
- return request({
- url: `/app-api/menduner/system/interview-invite/get/list/by/${inviteUserId}`,
- method: 'GET',
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 内容管理-广告
- export const getWebContent = async () => {
- return request({
- url: `/app-api/menduner/system/web-content/get?id=1`,
- method: 'GET',
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 联系我们
- // 提交猎寻服务
- export const huntSubmit = async (data) => {
- return request({
- url: '/admin-api/menduner/system/hunt/submit',
- method: 'POST',
- data,
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 获得微信小程订阅模板列表
- // export const getSubscribeTemplateList = async () => {
- // return request({
- // url: `/app-api/menduner/system/social-user/get-subscribe-template-list`,
- // method: 'GET',
- // custom: {
- // showLoading: false,
- // auth: false
- // }
- // })
- // }
- // 求职端交易订单 创建
- export const orderCreated = async (data) => {
- return request({
- // url: '/app-api/menduner/system/trade/order/create',
- url: '/app-api/menduner/system/trade/order/wx-program/create',
- method: 'POST',
- data,
- custom: {
- openEncryption: true,
- showLoading: false,
- auth: true
- }
- })
- }
- // 求职端交易订单 创建
- export const getOrder = async (params) => {
- return request({
- url: '/app-api/menduner/system/trade/order/get/unpaid',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 获得社交用户
- export const getSocialUser = async (type) => {
- return request({
- url: `/app-api/menduner/system/social-user/get?type=${type}`,
- method: 'GET',
- // params,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 获得支付订单 (轮巡支付状态)
- export const getOrderPayStatus = async (params) => {
- return request({
- url: '/app-api/pay/order/get',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 获得指定应用的开启的支付渠道编码列表
- export const getEnableCodeList = async (params) => {
- return request({
- url: '/app-api/pay/channel/get-enable-code-list',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 提交支付订单
- export const payOrderSubmit = async (data) => {
- return request({
- url: '/app-api/pay/order/submit',
- method: 'POST',
- data,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 社交绑定,使用 code 授权码
- export const socialUserBind = async (data) => {
- return request({
- url: '/app-api/menduner/system/social-user/bind',
- method: 'POST',
- data: {...data, application: 'recruit_application'}, // 增加一个application参数,招聘端的值如上,不填默认null后台自动认为是求职端小程序
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 企业营业执照图片识别文字
- export const getBusinessLicenseOCR = async (url) => {
- return request({
- url: '/app-api/menduner/system/recruit/enterprise/business/ocr?url=' + url,
- method: 'POST',
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
|