WIP add Agenda, pdf, puzzle objects
This commit is contained in:
parent
2866c12985
commit
369b789abb
12
Manager.Interfaces/DTO/SubSection/AgendaDTO.cs
Normal file
12
Manager.Interfaces/DTO/SubSection/AgendaDTO.cs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace Manager.Interfaces.DTO
|
||||||
|
{
|
||||||
|
public class AgendaDTO
|
||||||
|
{
|
||||||
|
//public string Title { get; set; } // Dictionary<string, object> with all languages
|
||||||
|
public string source { get; set; } // url to resource id (local) or on internet => JSON file
|
||||||
|
}
|
||||||
|
}
|
||||||
12
Manager.Interfaces/DTO/SubSection/PdfDTO.cs
Normal file
12
Manager.Interfaces/DTO/SubSection/PdfDTO.cs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace Manager.Interfaces.DTO
|
||||||
|
{
|
||||||
|
public class PdfDTO
|
||||||
|
{
|
||||||
|
//public string Title { get; set; } // Dictionary<string, object> with all languages
|
||||||
|
public string source { get; set; } // url to resource id (local) or on internet
|
||||||
|
}
|
||||||
|
}
|
||||||
14
Manager.Interfaces/DTO/SubSection/PuzzleDTO.cs
Normal file
14
Manager.Interfaces/DTO/SubSection/PuzzleDTO.cs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
using Manager.Interfaces.Models;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace Manager.Interfaces.DTO
|
||||||
|
{
|
||||||
|
public class PuzzleDTO
|
||||||
|
{
|
||||||
|
public List<TranslationDTO> messageDebut { get; set; }
|
||||||
|
public List<TranslationDTO> messageFin { get; set; }
|
||||||
|
public ImageDTO image { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -51,6 +51,8 @@ namespace Manager.Interfaces.Models
|
|||||||
Video,
|
Video,
|
||||||
ImageUrl,
|
ImageUrl,
|
||||||
VideoUrl,
|
VideoUrl,
|
||||||
Audio
|
Audio,
|
||||||
|
PDF,
|
||||||
|
JSON
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -115,6 +115,9 @@ namespace Manager.Interfaces.Models
|
|||||||
Web,
|
Web,
|
||||||
Menu,
|
Menu,
|
||||||
Quizz,
|
Quizz,
|
||||||
Article
|
Article,
|
||||||
|
PDF,
|
||||||
|
Puzzle,
|
||||||
|
Agenda
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -719,5 +719,35 @@ namespace ManagerService.Controllers
|
|||||||
{
|
{
|
||||||
return new ObjectResult("ArticleDTO") { StatusCode = 200 };
|
return new ObjectResult("ArticleDTO") { StatusCode = 200 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Useless, just to generate dto code
|
||||||
|
/// </summary>
|
||||||
|
[ProducesResponseType(typeof(PdfDTO), 200)]
|
||||||
|
[HttpGet("PdfDTO")]
|
||||||
|
public ObjectResult GetPdfDTO()
|
||||||
|
{
|
||||||
|
return new ObjectResult("PdfDTO") { StatusCode = 200 };
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Useless, just to generate dto code
|
||||||
|
/// </summary>
|
||||||
|
[ProducesResponseType(typeof(PuzzleDTO), 200)]
|
||||||
|
[HttpGet("PuzzleDTO")]
|
||||||
|
public ObjectResult GetPuzzleDTO()
|
||||||
|
{
|
||||||
|
return new ObjectResult("PuzzleDTO") { StatusCode = 200 };
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Useless, just to generate dto code
|
||||||
|
/// </summary>
|
||||||
|
[ProducesResponseType(typeof(AgendaDTO), 200)]
|
||||||
|
[HttpGet("AgendaDTO")]
|
||||||
|
public ObjectResult GetAgendaDTO()
|
||||||
|
{
|
||||||
|
return new ObjectResult("AgendaDTO") { StatusCode = 200 };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -133,7 +133,9 @@ namespace ManagerService
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
#if RELEASE
|
||||||
services.AddMqttClientHostedService();
|
services.AddMqttClientHostedService();
|
||||||
|
#endif
|
||||||
services.AddScoped(typeof(ProfileLogic));
|
services.AddScoped(typeof(ProfileLogic));
|
||||||
services.AddScoped<TokensService>();
|
services.AddScoped<TokensService>();
|
||||||
services.AddScoped<UserDatabaseService>();
|
services.AddScoped<UserDatabaseService>();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user