添加用户改为返回实体类

This commit is contained in:
不做码农
2023-08-15 09:39:11 +08:00
parent ff4e857128
commit d1108700e0
3 changed files with 6 additions and 7 deletions

View File

@@ -93,9 +93,10 @@ namespace ZR.Admin.WebApi.Controllers.System
}
user.Create_by = HttpContext.GetName();
user.Create_time = DateTime.Now;
user.Password = NETCore.Encrypt.EncryptProvider.Md5(user.Password);
return ToResponse(UserService.InsertUser(user));
return SUCCESS(UserService.InsertUser(user));
}
/// <summary>