refactor(User): Aktualisierung des User-Modells.

This commit is contained in:
tekh 2025-07-22 14:15:35 +02:00
parent 06303ec2b5
commit de360968dc
3 changed files with 15 additions and 3 deletions

View File

@ -8,6 +8,8 @@ export interface User {
language?: string; language?: string;
comment?: string; comment?: string;
deleted?: boolean; deleted?: boolean;
deletedWhen?: Date;
deletedWho?: string;
dateFormat?: string; dateFormat?: string;
addedWho?: string; addedWho?: string;
addedWhen?: Date; addedWhen?: Date;
@ -70,7 +72,7 @@ export interface UserRep {
repUser?: User repUser?: User
user?: User, user?: User,
repGroup?: Group, repGroup?: Group,
group?: Group, group?: Group,
} }
export interface DirGroup { export interface DirGroup {

View File

@ -9,6 +9,8 @@ namespace DigitalData.UserManager.API.Controllers;
[Authorize] [Authorize]
[Obsolete("Use MediatR")] [Obsolete("Use MediatR")]
[Route("api/[controller]")]
[ApiController]
public class UserController : BaseAuthController<IUserService, UserCreateDto, UserReadDto, UserUpdateDto, User> public class UserController : BaseAuthController<IUserService, UserCreateDto, UserReadDto, UserUpdateDto, User>
{ {
public UserController(ILogger<UserController> logger, IUserService service) : base(logger, service, service) public UserController(ILogger<UserController> logger, IUserService service) : base(logger, service, service)

View File

@ -106,7 +106,11 @@ namespace DigitalData.UserManager.Domain.Entities
public int UserIdFkIntEcm { get; set; } public int UserIdFkIntEcm { get; set; }
[Column("DELETED_WHEN")] [Column("DELETED_WHEN")]
public DateTime DeletedWhen { get; set; } public DateTime
#if NET7_0_OR_GREATER
?
#endif
DeletedWhen { get; set; }
[Column("DELETED_WHO")] [Column("DELETED_WHO")]
[StringLength(50)] [StringLength(50)]
@ -114,6 +118,10 @@ namespace DigitalData.UserManager.Domain.Entities
#if NET7_0_OR_GREATER #if NET7_0_OR_GREATER
required required
#endif #endif
string DeletedWho { get; set; } string
#if NET7_0_OR_GREATER
?
# endif
DeletedWho { get; set; }
} }
} }