Merge pull request #62 from Qtoss-AI/hdongDev

hdong:split tow system user creation service.
This commit is contained in:
Haiping 2024-12-19 10:44:43 +00:00 committed by GitHub
commit dc529df643
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 4 deletions

View file

@ -23,7 +23,6 @@ public class User
public bool Verified { get; set; }
public string RegionCode { get; set; } = "CN";
public string? AffiliateId { get; set; }
public string? ReferralCode { get; set; }
public string? EmployeeId { get; set; }
public bool IsDisabled { get; set; }
public IEnumerable<string> Permissions { get; set; } = [];

View file

@ -243,7 +243,7 @@ public class UserController : ControllerBase
var file = fileStorage.GetUserAvatar();
if (string.IsNullOrEmpty(file))
{
return NotFound();
return NoContent();
}
return BuildFileResult(file);
}

View file

@ -13,7 +13,6 @@ public class UserCreationModel
public string Type { get; set; } = UserType.Client;
public string Role { get; set; } = UserRole.User;
public string RegionCode { get; set; } = "CN";
public string? ReferralCode { get; set; }
public User ToUser()
{
return new User
@ -27,7 +26,6 @@ public class UserCreationModel
Role = Role,
Type = Type,
RegionCode = RegionCode,
ReferralCode = ReferralCode
};
}
}