|
|
@@ -283,6 +283,31 @@ namespace DataVAPI.Controllers |
|
|
|
return JsonMsg<object>.Error(null, st, ex.Message); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 删除日志文件 |
|
|
|
/// </summary> |
|
|
|
/// <param name="DeviceName"></param> |
|
|
|
/// <param name="FileId"></param> |
|
|
|
/// <returns></returns> |
|
|
|
[HttpGet] |
|
|
|
public JsonMsg<object> DeleteLogFile(string DeviceName, string FileId) |
|
|
|
{ |
|
|
|
st = System.Reflection.MethodBase.GetCurrentMethod().Name; |
|
|
|
try |
|
|
|
{ |
|
|
|
if (string.IsNullOrEmpty(DeviceName)) |
|
|
|
{ |
|
|
|
return JsonMsg<object>.Error(null, st, "设备名称不能为空"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
return JsonMsg<object>.OK(Sample.DeleteFile(DeviceName, FileId), st); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
return JsonMsg<object>.Error(null, st, ex.Message); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |