首页课程分类选择

This commit is contained in:
禺狨
2023-05-08 16:57:54 +08:00
parent dec09df6b7
commit 453bf9d8c8
7 changed files with 185 additions and 10 deletions

View File

@@ -13,9 +13,13 @@ export function password(oldPassword: string, newPassword: string) {
}
// 学员课程
export function courses(depId: number) {
export function coursesCategories() {
return client.get("/api/v1/category/all", {});
}
export function courses(depId: number, categoryId: number) {
return client.get("/api/v1/user/courses", {
dep_id: depId,
category_id: categoryId,
});
}