新增加系统配置文件

This commit is contained in:
izory
2021-09-29 15:57:56 +08:00
parent 2b263fb64d
commit 2b10934e09
15 changed files with 378 additions and 75 deletions

View File

@@ -79,9 +79,7 @@ namespace ZR.Admin.WebApi.Controllers.System
throw new CustomException(ResultCode.PARAM_ERROR, "请求参数错误");
}
//从 Dto 映射到 实体
var user = userDto.Adapt<SysUser>();
user.Update_by = User.Identity.Name;
user.Update_time = DateTime.Now;
var user = userDto.Adapt<SysUser>().ToUpdate(HttpContext);
int result = UserService.ChangeUser(user);
return ToResponse(result);