This commit is contained in:
2025-03-03 23:33:55 +08:00
parent e04605c03e
commit 9ed8dda14c
4 changed files with 45 additions and 16 deletions

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
}