hdong:split tow system user creation service.
This commit is contained in:
parent
48e0ebbc64
commit
adcb07e9dc
|
|
@ -23,7 +23,6 @@ public class User
|
||||||
public bool Verified { get; set; }
|
public bool Verified { get; set; }
|
||||||
public string RegionCode { get; set; } = "CN";
|
public string RegionCode { get; set; } = "CN";
|
||||||
public string? AffiliateId { get; set; }
|
public string? AffiliateId { get; set; }
|
||||||
public string? ReferralCode { get; set; }
|
|
||||||
public string? EmployeeId { get; set; }
|
public string? EmployeeId { get; set; }
|
||||||
public bool IsDisabled { get; set; }
|
public bool IsDisabled { get; set; }
|
||||||
public IEnumerable<string> Permissions { get; set; } = [];
|
public IEnumerable<string> Permissions { get; set; } = [];
|
||||||
|
|
|
||||||
|
|
@ -243,7 +243,7 @@ public class UserController : ControllerBase
|
||||||
var file = fileStorage.GetUserAvatar();
|
var file = fileStorage.GetUserAvatar();
|
||||||
if (string.IsNullOrEmpty(file))
|
if (string.IsNullOrEmpty(file))
|
||||||
{
|
{
|
||||||
return NotFound();
|
return NoContent();
|
||||||
}
|
}
|
||||||
return BuildFileResult(file);
|
return BuildFileResult(file);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ public class UserCreationModel
|
||||||
public string Type { get; set; } = UserType.Client;
|
public string Type { get; set; } = UserType.Client;
|
||||||
public string Role { get; set; } = UserRole.User;
|
public string Role { get; set; } = UserRole.User;
|
||||||
public string RegionCode { get; set; } = "CN";
|
public string RegionCode { get; set; } = "CN";
|
||||||
public string? ReferralCode { get; set; }
|
|
||||||
public User ToUser()
|
public User ToUser()
|
||||||
{
|
{
|
||||||
return new User
|
return new User
|
||||||
|
|
@ -27,7 +26,6 @@ public class UserCreationModel
|
||||||
Role = Role,
|
Role = Role,
|
||||||
Type = Type,
|
Type = Type,
|
||||||
RegionCode = RegionCode,
|
RegionCode = RegionCode,
|
||||||
ReferralCode = ReferralCode
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue