Add knowledge item and innovation CRUD with search/filtering, published-only visibility for non-staff, admin publish/update, challenge dictionary, problem aggregation with trends (admin only) and canonical embedding text preparation for matchmaking.
28 lines
844 B
C#
28 lines
844 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace TarninaHub.Application.Dtos;
|
|
|
|
public sealed record InnovationRequest(
|
|
[Required, StringLength(200, MinimumLength = 3)] string Title,
|
|
[StringLength(2000)] string? Summary,
|
|
[StringLength(8000)] string? Description,
|
|
[Required] string ChallengeId,
|
|
[Required] string Stage,
|
|
string? Cost,
|
|
IReadOnlyDictionary<string, object?>? Contact,
|
|
IReadOnlyList<IReadOnlyDictionary<string, object?>>? Media,
|
|
bool Published);
|
|
|
|
public sealed record InnovationResponse(
|
|
string Id,
|
|
string Title,
|
|
string Summary,
|
|
string Description,
|
|
string ChallengeId,
|
|
string Stage,
|
|
string? Cost,
|
|
IReadOnlyDictionary<string, object?>? Contact,
|
|
IReadOnlyList<IReadOnlyDictionary<string, object?>> Media,
|
|
bool Published,
|
|
DateTimeOffset? UpdatedAt);
|