mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
Refactor message loading API and add message query support
Reworked message loading endpoints and services to support flexible message querying with 'before' and 'after' parameters via a new MessageQuery contract. Updated controller actions, service interfaces, and implementations to use the new query model, and improved error handling. Added integration tests for ChatLoadController and introduced IUserPresenceService interface. Minor fixes and help text improvements in console client commands.
This commit is contained in:
@@ -39,16 +39,14 @@ public class HelpCommand : ICommand
|
||||
else
|
||||
{
|
||||
_logger.Info("Чтобы получить подробную информацию, напишите /help {command}");
|
||||
}
|
||||
|
||||
foreach (var command in commands)
|
||||
{
|
||||
var name = command.GetType().GetCustomAttribute<CommandRouteAttribute>()?.Path.Replace("/", "").ToLower()
|
||||
?? command.GetType().Name.Replace("Command", "").ToLower();
|
||||
foreach (var command in commands)
|
||||
{
|
||||
var name = command.GetType().GetCustomAttribute<CommandRouteAttribute>()?.Path.Replace("/", "").ToLower()
|
||||
?? command.GetType().Name.Replace("Command", "").ToLower();
|
||||
|
||||
_logger.Log($"{name} - {command.ShortHelp()}");
|
||||
_logger.Log($"{name} - {command.ShortHelp()}");
|
||||
}
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ public class SendMessageCommand : IInteractiveCommand
|
||||
|
||||
public string LongHelp()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return "Отпарвка тестовых сообщений не существующему юзеру 2";
|
||||
}
|
||||
|
||||
public string ShortHelp()
|
||||
|
||||
Reference in New Issue
Block a user