|
|
@@ -1459,3 +1459,16 @@ export const getLeaderboardTop = () => {
|
|
|
export const getLeaderboardMyRank = () => {
|
|
|
return request('/api/leaderboard/my-rank', 'POST')
|
|
|
}
|
|
|
+
|
|
|
+// ===== 数学闯关(自己出题自己答) =====
|
|
|
+export const getMathQuizStart = (childId, age) => {
|
|
|
+ return request('/api/wisdom/math/start', 'POST', { childId, age })
|
|
|
+}
|
|
|
+
|
|
|
+export const verifyMathAnswer = (childId, expression, userAnswer) => {
|
|
|
+ return request('/api/wisdom/math/verify', 'POST', { childId, expression, userAnswer })
|
|
|
+}
|
|
|
+
|
|
|
+export const completeMathQuiz = (data) => {
|
|
|
+ return request('/api/wisdom/math/complete', 'POST', data)
|
|
|
+}
|