using XFEExtension.NetCore.ServerInteractive.Attributes; using XFEExtension.NetCore.ServerInteractive.Implements.Requester; namespace XFEExtension.NetCore.ServerInteractive.Utilities.Requester.Services; /// /// 日志请求服务(包含获取日志与清除日志) /// public partial class LogRequestService : StandardRequestServiceBase { /// /// 解析获取日志响应 /// [Response("log/get", Name = "get_log")] public object AnalyzeGetLogResponse() => Response; /// /// 构造获取日志请求体 /// [Request("log/get", Name = "get_log")] public object PostGetLogRequest() => new { session = Session, deviceInfo = DeviceInfo, startDateTime = Parameters[0], endDateTime = Parameters[1], }; /// /// 解析清除日志响应 /// [Response("log/clear", Name = "clear_log")] public object AnalyzeClearLogResponse() => true; /// /// 构造清除日志请求体 /// [Request("log/clear", Name = "clear_log")] public object PostClearLogRequest() => new { session = Session, deviceInfo = DeviceInfo }; }