幼教产品B2B生态平台小程序端
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.

128 lines
4.3 KiB

12 months ago
import request from '@/apis/request.js'
const { get, post } = request
export const login = (data) => {
12 months ago
return post('nakadai/kindergarten/platformTeamAccount/weChatAppletCallbackByKindergarten', data)
}
export const kindergartenWeChatApplication = (data) => {
return post('nakadai/kindergarten/platformTeamAccount/kindergartenWeChatApplication', data)
}
11 months ago
export const loginWithPhoneNumber = (data) => {
return post('nakadai/kindergarten/platformTeamAccount/loginWithPhoneNumber', data)
}
12 months ago
export const realNameAuthentication = (data) => {
11 months ago
return post(`nakadai/users/autonym/realNameAuthentication`, data)
12 months ago
}
export const faceAuthentication = (data) => {
11 months ago
return post(`nakadai/users/autonym/faceAuthentication?imgFile=${data.imgFile}&side=${data.side}`)
12 months ago
}
12 months ago
export const authenticationOrNot = () => {
11 months ago
return post(`nakadai/users/autonym/authenticationOrNot`)
12 months ago
}
12 months ago
export const businessLicensePictureVerification = (imgFile) => {
11 months ago
return post(`nakadai/users/autonym/businessLicensePictureVerification?imgFile=${imgFile}`)
12 months ago
}
export const creditCodeAuthentication = (data) => {
11 months ago
return post(`nakadai/users/autonym/creditCodeAuthentication`, data)
12 months ago
}
12 months ago
export const organizationCertification = (data) => {
11 months ago
return post(`nakadai/users/autonym/organizationCertification`, data)
12 months ago
}
export const updateTeamInfo = (data) => {
return post(`nakadai/kindergarten/platformTeamAccount/updateTeamInfo`, data)
}
export const queryTeamInfo = (data) => {
return get(`nakadai/kindergarten/platformTeamAccount/queryTeamInfo`, data)
}
export const viewUserDetails = (data) => {
return get(`users/users/userAccount/viewUserDetails`, data)
}
export const enterpriseCertificationStatus = (openId) => {
11 months ago
return post(`nakadai/enterprise/certification/enterpriseCertificationStatus?openId=${openId}`)
12 months ago
}
export const saveCertification = (data) => {
11 months ago
return post(`nakadai/enterprise/certification/save`, data)
12 months ago
}
12 months ago
12 months ago
export const queryProvince = () => {
return get('nakadai/nakadai/province/queryProvince')
}
export const queryCity = (data) => {
return get('nakadai/nakadai/city/queryCity', data)
}
12 months ago
export const updateAvatars = data => {
11 months ago
return post(`users/users/user/updateAvatars?openId=${data.openId}&url=${data.url}&userName=${data.userName}&platformId=7`)
12 months ago
}
12 months ago
export const sendPhoneOrEmailCode = (data) => {
return post('users/users/userAccount/sendPhoneOrEmailCode', data)
}
12 months ago
export const userBinding = (data) => {
return post('users/users/user/userBinding', 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 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 = 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)
}
export const updateUserAvatars = `http://39.108.250.202:9000/users/users/userAccount/updateUserAvatars`