private ApiResult DeleteFolder(Organization org, string folderPath) { var delParams = new DelParams { filespaceid = org.filespaceId, path = folderPath, recursive = "no" }; return(ExecuteRequest(Ticket, Method.DELETE, "/tcc/Del", delParams, typeof(ApiResult))); }
public async Task <ApiResult <string> > Delete([FromBody] DelParams delParams) { var model = _sysImgService.GetModelAsync(m => m.ID == delParams.ids); if (model != null) { var res = await _sysImgService.DeleteAsync(m => m.ID == delParams.ids); if (res.statusCode == 200) {//删除实际存在路径的图片 FileHelper.DeleteFile(model.Result.data.ImgBig); } return(res); } else { return(new ApiResult <string>() { statusCode = 401, msg = "图片不存在" }); } }
public async Task <ApiResult <string> > DeleteColumn([FromBody] DelParams delParams) { return(await _sysColumnService.DelAsync(delParams.ids)); }
public async Task <ApiResult <string> > DeleteSchool([FromBody] DelParams delParams) { return(await _adoSchoolService.DelAsync(delParams.ids)); }
public async Task <ApiResult <string> > Delete([FromBody] DelParams obj) { return(await _sysImgTypeService.DeleteAsync(obj.ids)); }
public async Task <ApiResult <string> > DeleteRole([FromBody] DelParams obj) { return(await _roleService.DelAsync(obj.ids)); }
public async Task <ApiResult <string> > DeleteArticle([FromBody] DelParams delParams) { return(await _adoArticleService.DelAsync(delParams.ids)); }
public async Task <ApiResult <string> > DeleteDownload([FromBody] DelParams delParams) { return(await _adoDownloadService.DelAsync(delParams.ids)); }
public async Task <ApiResult <string> > DeleteLog([FromBody] DelParams obj) { var list = UtilsHelper.StrToListString(obj.ids); return(await _logService.DeleteAsync(m => list.Contains(m.ID))); }
public async Task <ApiResult <string> > DeleteAdvLocation([FromBody] DelParams delParams) { return(await _adoAdvLocationService.DelAsync(delParams.ids)); }
public async Task <ApiResult <string> > DeleteOrganize([FromBody] DelParams delParams) { return(await _sysOrganizeService.DelAsync(delParams.ids)); }
public async Task <ApiResult <string> > DeleteComment([FromBody] DelParams delParams) { return(await _adoCommentService.DelAsync(delParams.ids)); }
public async Task <ApiResult <List <SysMenuDto> > > GetAuthorizaionMenu([FromBody] DelParams obj) { return(await _sysMenuService.GetMenuByRole(obj.ids)); }