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.

84 lines
2.5 KiB

import request from '@/apis/request.js'
const { get, post } = request
export const login = (data) => {
2 years ago
return post('users/users/user/weChatAppletCallbackByPartner', data)
}
export const queryProvince = () => {
return get('nakadai/nakadai/province/queryProvince')
}
export const queryCity = (data) => {
return get('nakadai/nakadai/city/queryCity', data)
}
2 years ago
export const updateAvatars = url => {
return post(`users/users/user/updateAvatars?url=` + url)
}
export const userBinding = (data) => {
return post('users/users/user/userBinding', data)
3 years ago
}
export const examinePassword = (data) => {
return post('users/users/userAccount/examinePassword', data)
}
3 years ago
export const getUserRolesPermissionMenu = (data) => {
2 years ago
return get('users/users/user-role/getUserRolesPermissionMenu', data)
3 years ago
}
export const updatePersonCenter = (data) => {
return post('users/users/userAccount/updatePersonCenter', data)
}
export const queryUserInfoDetails = () => {
return get('users/users/userAccount/queryUserInfoDetails')
}
2 years ago
export const updateMyEmail = (data) => {
2 years ago
return post('nakadai/nakadai/partner-team/updateMyEmail', data)
}
2 years ago
export const mailCodeSend = (data) => {
2 years ago
return post('nakadai/nakadai/partner-team/mailCodeSend', data)
}
3 years ago
export const changeAccount = account => {
2 years ago
return post(`users/users/applets/mine/changeAccount?account=${account}`)
3 years ago
}
3 years ago
export const changePhoneNumber = (phone, code) => {
2 years ago
return post(`users/users/applets/mine/changePhoneNumber?phone=${phone}&code=${code}`)
3 years ago
}
export const checkIfAnAccountExists = account => {
2 years ago
return post(`users/users/applets/mine/checkIfAnAccountExists?account=${account}`)
3 years ago
}
2 years ago
export const checkIfThePhoneNumberExists = phone => {
2 years ago
return post(`users/users/applets/mine/checkIfThePhoneNumberExists?phone=${phone}`)
2 years ago
}
export const queryPartnerAccount = phone => {
return post(`nakadai/nakadai/partnerAccount/queryPartnerAccount?phone=${phone}`)
}
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)
}
3 years ago
export const updateUserAvatars = `http://39.108.250.202:9000/users/users/userAccount/updateUserAvatars`