feat: extend default Profile with sample ProfileObjects
- Added two sample `ProfileObject` instances to the static `Default` Profile - Includes object metadata like ObjStateId, ObjectId, headlines, and sublines - Enhances the default response of `GET /api/profile` for testing/demo purposes
This commit is contained in:
parent
07e16f8aca
commit
a78c117a47
@ -12,7 +12,7 @@ namespace WorkFlow.API.Controllers;
|
|||||||
[Authorize]
|
[Authorize]
|
||||||
public class ProfileController : ControllerBase
|
public class ProfileController : ControllerBase
|
||||||
{
|
{
|
||||||
public static readonly Profile Default = new ()
|
public static readonly Profile Default = new()
|
||||||
{
|
{
|
||||||
Id = 1,
|
Id = 1,
|
||||||
TypeId = 1,
|
TypeId = 1,
|
||||||
@ -20,7 +20,30 @@ public class ProfileController : ControllerBase
|
|||||||
Subtitle = "Freigabe in Rolle Verantwortlich",
|
Subtitle = "Freigabe in Rolle Verantwortlich",
|
||||||
CountObj = 2,
|
CountObj = 2,
|
||||||
ForeColor = "Yellow",
|
ForeColor = "Yellow",
|
||||||
BackColor = "Black"
|
BackColor = "Black",
|
||||||
|
Objects = new ProfileObject[]
|
||||||
|
{
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
ObjStateId = 3,
|
||||||
|
ObjectId = 21601,
|
||||||
|
Headline1 = "Aveco Holding",
|
||||||
|
Headline2 = "Digital Data",
|
||||||
|
Subline1 = null,
|
||||||
|
Subline2 = "25 4711",
|
||||||
|
CmdCheckIn = ""
|
||||||
|
},
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
ObjStateId = 4,
|
||||||
|
ObjectId = 21600,
|
||||||
|
Headline1 = "Aveco",
|
||||||
|
Headline2 = "Hammer AF",
|
||||||
|
Subline1 = null,
|
||||||
|
Subline2 = "456875",
|
||||||
|
CmdCheckIn = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private readonly ILogger<ProfileController> _logger;
|
private readonly ILogger<ProfileController> _logger;
|
||||||
|
|||||||
@ -3,10 +3,16 @@
|
|||||||
public class ProfileObject
|
public class ProfileObject
|
||||||
{
|
{
|
||||||
public int? ObjStateId { get; set; }
|
public int? ObjStateId { get; set; }
|
||||||
|
|
||||||
public int? ObjectId { get; set; }
|
public int? ObjectId { get; set; }
|
||||||
|
|
||||||
public string? Headline1 { get; set; }
|
public string? Headline1 { get; set; }
|
||||||
|
|
||||||
public string? Headline2 { get; set; }
|
public string? Headline2 { get; set; }
|
||||||
|
|
||||||
public string? Subline1 { get; set; }
|
public string? Subline1 { get; set; }
|
||||||
|
|
||||||
public string? Subline2 { get; set; }
|
public string? Subline2 { get; set; }
|
||||||
|
|
||||||
public string? CmdCheckIn { get; set; }
|
public string? CmdCheckIn { get; set; }
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user