This commit is contained in:
jyuesong
2022-01-13 18:31:00 +08:00
parent 3ef05709ea
commit 6555031948
4 changed files with 44 additions and 7 deletions

View File

@@ -51,4 +51,12 @@ class Api {
static Future<HttpResponse<NullResponse>> delTask(String cron) async {
return await Http.delete<NullResponse>(Url.ADD_TASK, [cron]);
}
static Future<HttpResponse<NullResponse>> pinTask(String cron) async {
return await Http.put<NullResponse>(Url.PIN_TASK, [cron]);
}
static Future<HttpResponse<NullResponse>> unpinTask(String cron) async {
return await Http.put<NullResponse>(Url.UNPIN_TASK, [cron]);
}
}