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