KindergartenAppletUI/api/index/index.js

115 lines
2.4 KiB
JavaScript
Raw Normal View History

2022-08-24 15:01:04 +08:00
import request from "../request.js"
2022-10-08 16:52:26 +08:00
export function getPreOrderById(data, data2) {
2022-08-24 15:01:04 +08:00
return request({
2023-04-03 15:16:06 +08:00
url: `/kindergarten/applet/kindergartenLogin?loginCode=${data}&phoneCode=${data2}`,
method: 'POST'
2022-08-24 15:01:04 +08:00
})
}
2023-04-19 11:28:12 +08:00
export function loginLogging(data) {
return request({
url: '/kindergartenApplet/actionLogRecord/loginLogging',
method: 'POST',
data: data
})
}
2023-08-04 14:09:59 +08:00
export function getKindergartenList(kindergartenName) {
return request({
url: `/system/studentManage/getKindergartenList?kindergartenName=${kindergartenName}`,
method: 'GET'
})
}
export function getClassInfo(kindergartenId,className) {
return request({
url: `/system/studentManage/getClassInfo?kindergartenId=${kindergartenId}&className=${className}`,
method: 'GET'
})
}
// 民族
export function typeInfo(dictType) {
return request({
url: '/system/studentManage/type/'+dictType,
method: 'GET'
})
}
export function updateStudent(data) {
return request({
url: '/system/studentManage/updateStudent',
method: 'POST',
data: data
})
}
// 修改
export function getStudent(studentId) {
return request({
url: `/system/studentManage/getStudent?studentId=${studentId}`,
method: 'GET'
})
}
2023-04-19 11:28:12 +08:00
export function prescriptionLogging(data) {
return request({
url: '/kindergartenApplet/actionLogRecord/prescriptionLogging',
method: 'POST',
data: data
})
}
export function prescriptionVideoLogging(data) {
return request({
url: '/kindergartenApplet/actionLogRecord/prescriptionVideoLogging',
method: 'POST',
data: data
})
}
export function getChildrenResultScore(data) {
return request({
url: '/kindergarten/applet/getChildrenResultScore',
method: 'POST',
data: data
})
}
//查看成绩
2022-08-24 15:01:04 +08:00
export function getStudentScore(data) {
return request({
2023-04-19 11:28:12 +08:00
url: '/kindergarten/applet/getStudentScoreInfo',
method: 'POST',
data: data
2022-10-08 16:52:26 +08:00
})
2022-08-24 15:01:04 +08:00
}
//绑定家长手机号
export function bindParent(data) {
return request({
url: `/kindergarten/applet/bindParentInfo`,
method: 'POST',
data
})
}
2023-04-19 11:28:12 +08:00
// 我的
export function getInfoByPhone(data) {
return request({
url: `/kindergarten/applet/getInfoByPhone?phone=${data}`,
method: 'GET'
2022-10-08 16:52:26 +08:00
})
}
2022-10-08 16:52:26 +08:00
2023-04-19 11:28:12 +08:00
export function getMotionPrescription(studentId, batchCode) {
2022-10-08 16:52:26 +08:00
return request({
2023-04-19 11:28:12 +08:00
url: `/kindergarten/applet/getMotionPrescription?studentId=${studentId}&batchCode=${batchCode}`,
2022-10-08 16:52:26 +08:00
method: 'GET'
})
}
2022-08-24 15:01:04 +08:00
// export function addConfirmOrder(data) {
//     return request({
//         url: ``,
//         method: "post",
//         data
//     })
// }