职站学生端小程序版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
4.0 KiB

2 weeks ago
import Config from '@/config/request.js'
import request from '@/apis/request.js'
const { get, post } = request
export const studentWeChatAppletCallback = (data) => {
return post('users/users/user/studentWeChatAppletCallback', data)
}
export const studentBinding = (data) => {
return post('users/users/user/studentBinding', data)
}
export const weChatToken = (data) => {
return post('users/users/user/weChatToken', data)
}
export const checkUserNameOrWorkNumber = (data) => {
return post('users/users/batchProcessing/checkUserNameOrWorkNumber', data)
2 weeks ago
}
export const updateUserNameOrWorkNumber = (data) => {
return post(`users/users/batchProcessing/updateUserNameOrWorkNumber?userName=${data.userName}&workNumber=${data.workNumber}`)
}
export const captcha = Config.baseURL + `users/users/user/captcha`
2 weeks ago
export const queryProvince = () => {
return get('nakadai/nakadai/province/queryProvince')
}
export const queryCity = (data) => {
return get('nakadai/nakadai/city/queryCity', data)
}
export const querySchool = () => {
return get('nakadai/nakadai/school/querySchool')
}
export const courseDiscipline = () => {
return get('nakadai/nakadai/subject/courseDiscipline')
}
export const courseProfessionalClass = data => {
return get('nakadai/nakadai/subject/courseProfessionalClass', data)
}
export const courseProfessional = data => {
return get('nakadai/nakadai/subject/courseProfessional', data)
}
2 weeks ago
export const updateAvatars = url => {
return post(`users/users/user/updateAvatars?url=` + url)
}
export const userBinding = (data) => {
return post('users/users/user/userBinding', data)
}
export const sendPhoneOrEmailCode = (data) => {
return post('users/users/userAccount/sendPhoneOrEmailCode', data)
}
export const examinePassword = (data) => {
return post('users/users/userAccount/examinePassword', data)
}
export const getUserRolesPermissionMenu = (data) => {
return get('users/users/user-role/getUserRolesPermissionMenu', data)
}
export const updatePersonCenter = (data) => {
return post('users/users/userAccount/updatePersonCenter', data)
}
export const queryUserInfoDetails = () => {
return get('users/users/userAccount/queryUserInfoDetails')
}
export const deleteProfile = id => {
return post(`users/users/userInfo/deleteProfile?personalFileIds=` + id)
}
export const searchAllAccountsByPhone = data => {
return get('users/users/user/searchAllAccountsByPhone', data)
}
export const switchAccounts = (data) => {
return post('users/users/user/switchAccounts', data)
}
2 weeks ago
export const updateMyEmail = (data) => {
return post('nakadai/nakadai/partner-team/updateMyEmail', data)
}
export const mailCodeSend = (data) => {
return post('nakadai/nakadai/partner-team/mailCodeSend', data)
}
export const changeAccount = account => {
return post(`users/users/applets/mine/changeAccount?account=${account}`)
}
export const changePhoneNumber = (phone, code) => {
return post(`users/users/applets/mine/changePhoneNumber?phone=${phone}&code=${code}`)
}
export const checkIfAnAccountExists = account => {
return post(`users/users/applets/mine/checkIfAnAccountExists?account=${account}`)
}
export const checkIfThePhoneNumberExists = phone => {
return post(`users/users/applets/mine/checkIfThePhoneNumberExists?phone=${phone}`)
}
export const queryPartnerAccount = data => {
return post(`nakadai/nakadai/partnerAccount/queryPartnerAccount?phone=${data.phone}&openId=${data.openId}&douYinOpenId=${data.douYinOpenId}`)
}
export const getSessionKey = data => {
return post(`users/users/user/getSessionKey`, data)
}
export const partnerAccountApplication = data => {
return post(`nakadai/nakadai/partnerAccount/partnerAccountApplication`, data)
}
export const loginByOpenid = openid => {
return post(`users/users/user/loginByOpenid?openid=${openid}`)
}
export const checkWorkNumOrAccount = account => {
return post(`occupationlab/occupationlab/architecture/checkWorkNumOrAccount?platformId=4&type=0&account=` + account)
}
export const updateUserAvatars = `http://39.108.250.202:9000/users/users/userAccount/updateUserAvatars`