public async Task <IResponseEntity> UpdateAsync(ConfigEditRequest req)
        {
            if (req == null || req?.Id == "")
            {
                return(ResponseEntity.Error("更新的实体主键丢失"));
            }

            var entity = _mapper.Map <SysConfigEntity>(req);
            await _sysConfigRepository.UpdateAsync(entity);

            return(ResponseEntity.Ok("更新成功"));
        }
 public async Task <IResponseEntity> Update(ConfigEditRequest req)
 {
     return(await _sysConfigService.UpdateAsync(req));
 }