This commit is contained in:
xuyue committed 2025-03-03 23:33:55 +08:00
1 parent e04605c03e
commit 9ed8dda14c
4 files changed
+45 -16

No files matched your search

+3 -3
View File
@@ -60,16 +60,16 @@ export class Tutorial {
return res.data
}
static async create(payload: TutorialIn) {
static async createOrUpdate(payload: TutorialIn) {
const res = await http.post("/tutorial/", payload)
return res.data
}
static async remove(display: string) {
static async remove(display: number) {
await http.delete(`/tutorial/${display}`)
}
static async get(display: string) {
static async get(display: number) {
const res = await http.get(`/tutorial/${display}`)
return res.data
}