public ActionResult AdminDelete(int[] ids) { if (_sysAdminService.Delete(m => ids.Contains(m.Id) && !m.IsAdmin) > 0) { return(JsonSuccess("")); } return(JsonError("操作失败")); }
public async Task <ApiResult <string> > Delete([FromBody] List <string> ids) => await _adminService.Delete(ids);