public async Task <ActionResult <ColumnViewDTO> > DeleteColumn([FromQuery] int id)
        {
            Guid userId = GetUserId();
            var  column = await _columnService.Delete(id, userId);

            return(Ok(column));
        }
Example #2
0
        public async Task <HandleResult> Delete([FromBody] JArray form)
        {
            if (form == null || form.Count <= 0)
            {
                return(HandleResult.Error("请选择要删除的数据"));
            }

            var deleteModels = form.Select(temp => new Column {
                Id = temp.ToInt()
            }).ToList();

            //todo 需要延期删除无用的数据,栏目内容、栏目字段
            return(await _service.Delete(deleteModels));
        }