feat:更新训练场模块
This commit is contained in:
@@ -6,3 +6,16 @@ export const queryMistakeListApi = (): Promise<IMistake[]> =>
|
||||
url: '/study-api/mistake',
|
||||
method: 'get'
|
||||
})
|
||||
|
||||
export const addMistakeListApi = (data: IMistake[]): Promise<boolean> =>
|
||||
cloudService({
|
||||
url: '/study-api/mistake',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
|
||||
export const deleteMistakeApi = (id: number): Promise<boolean> =>
|
||||
cloudService({
|
||||
url: `/study-api/mistake/${id}`,
|
||||
method: 'delete'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user