models added, roles endpoints in media controller added

This commit is contained in:
2024-10-06 14:51:58 +02:00
Unverified
parent b86c021b9b
commit 6cae764d1d
19 changed files with 537 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
using System.Text.Json.Serialization;
using WatchIt.Database.Model.Person;
namespace WatchIt.Common.Model.Roles;
public interface ICreatorRoleMediaRequest
{
#region PROPERTIES
[JsonPropertyName("person_id")]
long PersonId { get; set; }
[JsonPropertyName("type_id")]
short TypeId { get; set; }
#endregion
#region PUBLIC METHODS
PersonCreatorRole CreateCreatorRole(long mediaId);
#endregion
}