public async Task <ErrData <bool> > PowerDeleteAsync(QueryData <SysPowerDeleteQuery> query) { var result = new ErrData <bool>(); var dt = DateTime.Now; var res = await _service.PowerDeleteAsync(query); if (res.HasErr) { result.SetInfo(false, res.ErrMsg, res.ErrCode); } else { result.SetInfo(true, "删除成功!", 200); } result.ExpandSeconds = (DateTime.Now - dt).TotalSeconds; return(result); }