public async Task <IActionResult> DeleteById(string id) { var res = await _sysLogService.Delete(id); if (res) { messageModel.response = true; } else { messageModel.response = false; messageModel.msg = "删除失败"; } return(new JsonResult(messageModel)); }
public async Task <ApiResult <string> > Delete([FromBody] List <long> ids) => await _sysLogService.Delete(ids);