feat(dal, templateMatcher): изменена логика работы Shortcodes сервиса в сторону самостоятельной дозагрузки данных из БД, в Template сервис добавлен метод атомарного резервирования шаблона для TemplateMatcher
This commit is contained in:
@@ -521,6 +521,10 @@
|
||||
public const string GetAll = Base + "/shortcodes/";
|
||||
}
|
||||
|
||||
public static class ShortcodeApply
|
||||
{
|
||||
public const string Apply = Base + "/shortcodes/apply";
|
||||
}
|
||||
public static class RegionalEkPtkGroup
|
||||
{
|
||||
public const string GetAll = Base + "/regional-ek-ptk-groups/";
|
||||
|
||||
8
PARR.API/Contracts/V1/Requests/ShortcodeApplyRequest.cs
Normal file
8
PARR.API/Contracts/V1/Requests/ShortcodeApplyRequest.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace PARR.API.Contracts.V1.Requests
|
||||
{
|
||||
public class ShortcodeApplyRequest
|
||||
{
|
||||
public Guid TemplateId { get; set; }
|
||||
public required string Content { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class ShortcodeApplyResponse
|
||||
{
|
||||
public required string Content { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user