-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Добавить в классы записи лога и ссылки записи лога путь и призн…
…аки основной записи ссылки, добавить команду управления основнной ссылкой записи лога
- Loading branch information
1 parent
8663347
commit bcec70a
Showing
3 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using Npgsql; | ||
using NpgsqlTypes; | ||
|
||
namespace ManDI.command.logging.message.upd | ||
{ | ||
/// <summary> | ||
/// Команда обновляет запись журнала | ||
/// </summary> | ||
public class log_set_main_link : IParametersFunction | ||
{ | ||
/// <summary> | ||
/// Идентификатор записи | ||
/// </summary> | ||
public long iid_log { get; set; } | ||
|
||
/// <summary> | ||
/// Идентификатор новой основной ссылки записи лога | ||
/// </summary> | ||
public long iid_log_link { get; set; } | ||
|
||
|
||
|
||
/// <summary> | ||
/// Список параметров функции | ||
/// </summary> | ||
public IEnumerable<NpgsqlParameter> Parameters | ||
{ | ||
get | ||
{ | ||
NpgsqlParameter Parameter; | ||
List<NpgsqlParameter> ListParameter = new List<NpgsqlParameter>(); | ||
|
||
Parameter = new NpgsqlParameter("iid_log", NpgsqlDbType.Bigint); | ||
Parameter.Value = iid_log; | ||
ListParameter.Add(Parameter); | ||
|
||
Parameter = new NpgsqlParameter("iid_log_link", NpgsqlDbType.Bigint); | ||
Parameter.Value = iid_log_link; | ||
ListParameter.Add(Parameter); | ||
|
||
return ListParameter; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Наименование функции API | ||
/// </summary> | ||
public string NameFunction | ||
{ | ||
get | ||
{ | ||
return "log_set_main_link"; | ||
} | ||
} | ||
|
||
public string? Condition { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters