update v0.0.2 twa sys
This commit is contained in:
@ -67,6 +67,12 @@ namespace TWASys_App.Controllers
|
||||
return await TypeStorageServerModel.GetAllTypeStorage();
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> GetStorage([FromForm] StorageModel model)
|
||||
{
|
||||
return await model.GetStorages();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> GetValidationDomain()
|
||||
{
|
||||
@ -85,6 +91,13 @@ namespace TWASys_App.Controllers
|
||||
return Json(await model.AddAsync());
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> UpdateStorageSize([FromForm] StorageModel model)
|
||||
{
|
||||
|
||||
return Json(await model.UpdateStorageSize());
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> GenerationAccessToken()
|
||||
{
|
||||
@ -116,6 +129,19 @@ namespace TWASys_App.Controllers
|
||||
});
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> CheckStorageInit()
|
||||
{
|
||||
await Task.Delay(1);
|
||||
var f = System.IO.File.Exists(System.IO.Path.GetFullPath("Json/dataServer.json"));
|
||||
return Json(new MessageHeader
|
||||
{
|
||||
ID= 61011,
|
||||
Message=f?"has":"no",
|
||||
Status=1
|
||||
});
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> GetSysInfo()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user