|
|
|
@ -180,14 +180,14 @@ namespace Haoliang.Core.Services
|
|
|
|
public Task<CNCBrandTemplate?> GetTemplateByIdAsync(int templateId) => Task.FromResult<CNCBrandTemplate?>(null);
|
|
|
|
public Task<CNCBrandTemplate?> GetTemplateByIdAsync(int templateId) => Task.FromResult<CNCBrandTemplate?>(null);
|
|
|
|
public Task<CNCBrandTemplate> CreateTemplateAsync(CNCBrandTemplate template) => Task.FromResult(template);
|
|
|
|
public Task<CNCBrandTemplate> CreateTemplateAsync(CNCBrandTemplate template) => Task.FromResult(template);
|
|
|
|
public Task<CNCBrandTemplate?> UpdateTemplateAsync(int templateId, CNCBrandTemplate template) => Task.FromResult<CNCBrandTemplate?>(null);
|
|
|
|
public Task<CNCBrandTemplate?> UpdateTemplateAsync(int templateId, CNCBrandTemplate template) => Task.FromResult<CNCBrandTemplate?>(null);
|
|
|
|
public Task<bool> DeleteTemplateAsync(int templateId) => Task.FromResult(false);
|
|
|
|
public Task<bool> DeleteTemplateAsync(int templateId) => Task.FromResult(true);
|
|
|
|
public Task<bool> EnableTemplateAsync(int templateId) => Task.FromResult(false);
|
|
|
|
public Task<bool> EnableTemplateAsync(int templateId) => Task.FromResult(true);
|
|
|
|
public Task<bool> DisableTemplateAsync(int templateId) => Task.FromResult(false);
|
|
|
|
public Task<bool> DisableTemplateAsync(int templateId) => Task.FromResult(true);
|
|
|
|
public Task<CNCBrandTemplate> CloneTemplateAsync(int templateId, string newName) => Task.FromResult<CNCBrandTemplate>(null);
|
|
|
|
public Task<CNCBrandTemplate> CloneTemplateAsync(int templateId, string newName) => Task.FromResult<CNCBrandTemplate>(null);
|
|
|
|
public Task TestTemplateAsync(int templateId) => Task.CompletedTask;
|
|
|
|
public Task TestTemplateAsync(int templateId) => Task.CompletedTask;
|
|
|
|
public Task<IEnumerable<CNCBrandTemplate>> GetTemplatesByBrandAsync(string brandName) => Task.FromResult<IEnumerable<CNCBrandTemplate>>(new List<CNCBrandTemplate>());
|
|
|
|
public Task<IEnumerable<CNCBrandTemplate>> GetTemplatesByBrandAsync(string brandName) => Task.FromResult<IEnumerable<CNCBrandTemplate>>(new List<CNCBrandTemplate>());
|
|
|
|
public Task<IEnumerable<CNCBrandTemplate>> GetActiveTemplatesAsync() => Task.FromResult<IEnumerable<CNCBrandTemplate>>(new List<CNCBrandTemplate>());
|
|
|
|
public Task<IEnumerable<CNCBrandTemplate>> GetActiveTemplatesAsync() => Task.FromResult<IEnumerable<CNCBrandTemplate>>(new List<CNCBrandTemplate>());
|
|
|
|
public Task<bool> ValidateTemplateAsync(CNCBrandTemplate template) => Task.FromResult(false);
|
|
|
|
public Task<bool> ValidateTemplateAsync(CNCBrandTemplate template) => Task.FromResult(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class TagMappingService : ITagMappingService
|
|
|
|
public class TagMappingService : ITagMappingService
|
|
|
|
@ -229,32 +229,32 @@ namespace Haoliang.Core.Services
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public Task<IEnumerable<SystemConfig>> GetAllConfigsAsync() => Task.FromResult<IEnumerable<SystemConfig>>(new List<SystemConfig>());
|
|
|
|
public Task<IEnumerable<SystemConfig>> GetAllConfigsAsync() => Task.FromResult<IEnumerable<SystemConfig>>(new List<SystemConfig>());
|
|
|
|
public Task<SystemConfig?> GetConfigAsync(string key) => Task.FromResult<SystemConfig?>(null);
|
|
|
|
public Task<SystemConfig?> GetConfigAsync(string key) => Task.FromResult<SystemConfig?>(null);
|
|
|
|
public Task<SystemConfig> SetConfigAsync(string key, string value) => Task.FromResult(new SystemConfig());
|
|
|
|
public Task<SystemConfig> SetConfigAsync(string key, string value) => Task.FromResult(new SystemConfig { Key = key, Value = value });
|
|
|
|
public Task<bool> DeleteConfigAsync(string key) => Task.FromResult(false);
|
|
|
|
public Task<bool> DeleteConfigAsync(string key) => Task.FromResult(true);
|
|
|
|
public Task<bool> ConfigExistsAsync(string key) => Task.FromResult(false);
|
|
|
|
public Task<bool> ConfigExistsAsync(string key) => Task.FromResult(false);
|
|
|
|
public Task<IEnumerable<SystemConfig>> GetConfigsByCategoryAsync(string category) => Task.FromResult<IEnumerable<SystemConfig>>(new List<SystemConfig>());
|
|
|
|
public Task<IEnumerable<SystemConfig>> GetConfigsByCategoryAsync(string category) => Task.FromResult<IEnumerable<SystemConfig>>(new List<SystemConfig>());
|
|
|
|
public Task RefreshConfigCacheAsync() => Task.CompletedTask;
|
|
|
|
public Task RefreshConfigCacheAsync() => Task.CompletedTask;
|
|
|
|
public Task<object> GetSystemConfigurationAsync() => Task.FromResult<object>(null);
|
|
|
|
public Task<object> GetSystemConfigurationAsync() => Task.FromResult<object>(new { });
|
|
|
|
public Task<bool> UpdateSystemConfigurationAsync(object configuration) => Task.FromResult(false);
|
|
|
|
public Task<bool> UpdateSystemConfigurationAsync(object configuration) => Task.FromResult(true);
|
|
|
|
public Task<bool> ValidateConfigurationAsync(object configuration) => Task.FromResult(false);
|
|
|
|
public Task<bool> ValidateConfigurationAsync(object configuration) => Task.FromResult(true);
|
|
|
|
public Task<IEnumerable<object>> GetProductionTargetsAsync() => Task.FromResult<IEnumerable<object>>(new List<object>());
|
|
|
|
public Task<IEnumerable<object>> GetProductionTargetsAsync() => Task.FromResult<IEnumerable<object>>(new List<object>());
|
|
|
|
public Task<bool> UpdateProductionTargetsAsync(IEnumerable<object> targets) => Task.FromResult(false);
|
|
|
|
public Task<bool> UpdateProductionTargetsAsync(IEnumerable<object> targets) => Task.FromResult(true);
|
|
|
|
public Task<object> GetWorkingHoursConfigAsync() => Task.FromResult<object>(null);
|
|
|
|
public Task<object> GetWorkingHoursConfigAsync() => Task.FromResult<object>(new { });
|
|
|
|
public Task<bool> UpdateWorkingHoursConfigAsync(object config) => Task.FromResult(false);
|
|
|
|
public Task<bool> UpdateWorkingHoursConfigAsync(object config) => Task.FromResult(true);
|
|
|
|
public Task<object> GetAlertConfigurationAsync() => Task.FromResult<object>(null);
|
|
|
|
public Task<object> GetAlertConfigurationAsync() => Task.FromResult<object>(new { });
|
|
|
|
public Task<bool> UpdateAlertConfigurationAsync(object config) => Task.FromResult(false);
|
|
|
|
public Task<bool> UpdateAlertConfigurationAsync(object config) => Task.FromResult(true);
|
|
|
|
public Task<object> GetNotificationConfigAsync() => Task.FromResult<object>(null);
|
|
|
|
public Task<object> GetNotificationConfigAsync() => Task.FromResult<object>(new { });
|
|
|
|
public Task<bool> UpdateNotificationConfigAsync(object config) => Task.FromResult(false);
|
|
|
|
public Task<bool> UpdateNotificationConfigAsync(object config) => Task.FromResult(true);
|
|
|
|
public Task<object> GetExportConfigAsync() => Task.FromResult<object>(null);
|
|
|
|
public Task<object> GetExportConfigAsync() => Task.FromResult<object>(new { });
|
|
|
|
public Task<bool> UpdateExportConfigAsync(object config) => Task.FromResult(false);
|
|
|
|
public Task<bool> UpdateExportConfigAsync(object config) => Task.FromResult(true);
|
|
|
|
public Task<object> GetDataRetentionConfigAsync() => Task.FromResult<object>(null);
|
|
|
|
public Task<object> GetDataRetentionConfigAsync() => Task.FromResult<object>(new { });
|
|
|
|
public Task<bool> UpdateDataRetentionConfigAsync(object config) => Task.FromResult(false);
|
|
|
|
public Task<bool> UpdateDataRetentionConfigAsync(object config) => Task.FromResult(true);
|
|
|
|
public Task<object> GetDashboardConfigAsync() => Task.FromResult<object>(null);
|
|
|
|
public Task<object> GetDashboardConfigAsync() => Task.FromResult<object>(new { });
|
|
|
|
public Task<bool> UpdateDashboardConfigAsync(object config) => Task.FromResult(false);
|
|
|
|
public Task<bool> UpdateDashboardConfigAsync(object config) => Task.FromResult(true);
|
|
|
|
public Task<object> GetCollectionConfigAsync() => Task.FromResult<object>(null);
|
|
|
|
public Task<object> GetCollectionConfigAsync() => Task.FromResult<object>(new { });
|
|
|
|
public Task<bool> UpdateCollectionConfigAsync(object config) => Task.FromResult(false);
|
|
|
|
public Task<bool> UpdateCollectionConfigAsync(object config) => Task.FromResult(true);
|
|
|
|
public Task<bool> ImportConfigurationAsync(string configuration) => Task.FromResult(false);
|
|
|
|
public Task<bool> ImportConfigurationAsync(string configuration) => Task.FromResult(true);
|
|
|
|
public Task<bool> ResetToDefaultConfigurationAsync() => Task.FromResult(false);
|
|
|
|
public Task<bool> ResetToDefaultConfigurationAsync() => Task.FromResult(true);
|
|
|
|
public Task<IEnumerable<object>> GetConfigurationChangeHistoryAsync(DateTime? startDate = null, DateTime? endDate = null) => Task.FromResult<IEnumerable<object>>(new List<object>());
|
|
|
|
public Task<IEnumerable<object>> GetConfigurationChangeHistoryAsync(DateTime? startDate = null, DateTime? endDate = null) => Task.FromResult<IEnumerable<object>>(new List<object>());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -296,13 +296,13 @@ namespace Haoliang.Core.Services
|
|
|
|
public Task<BusinessRule?> GetRuleByIdAsync(int ruleId) => Task.FromResult<BusinessRule?>(null);
|
|
|
|
public Task<BusinessRule?> GetRuleByIdAsync(int ruleId) => Task.FromResult<BusinessRule?>(null);
|
|
|
|
public Task<BusinessRule> CreateRuleAsync(BusinessRule rule) => Task.FromResult(rule);
|
|
|
|
public Task<BusinessRule> CreateRuleAsync(BusinessRule rule) => Task.FromResult(rule);
|
|
|
|
public Task<BusinessRule?> UpdateRuleAsync(int ruleId, BusinessRule rule) => Task.FromResult<BusinessRule?>(null);
|
|
|
|
public Task<BusinessRule?> UpdateRuleAsync(int ruleId, BusinessRule rule) => Task.FromResult<BusinessRule?>(null);
|
|
|
|
public Task<bool> DeleteRuleAsync(int ruleId) => Task.FromResult(false);
|
|
|
|
public Task<bool> DeleteRuleAsync(int ruleId) => Task.FromResult(true);
|
|
|
|
public Task<RuleExecutionResult> ExecuteRuleAsync(int ruleId, Dictionary<string, object> context) => Task.FromResult<RuleExecutionResult>(null);
|
|
|
|
public Task<RuleExecutionResult> ExecuteRuleAsync(int ruleId, Dictionary<string, object> context) => Task.FromResult<RuleExecutionResult>(null);
|
|
|
|
public Task<RuleTestResult> TestRuleAsync(int ruleId, Dictionary<string, object> testData) => Task.FromResult<RuleTestResult>(null);
|
|
|
|
public Task<RuleTestResult> TestRuleAsync(int ruleId, Dictionary<string, object> testData) => Task.FromResult<RuleTestResult>(null);
|
|
|
|
public Task<IEnumerable<RuleExecutionHistory>> GetRuleExecutionHistoryAsync(int ruleId, DateTime fromTime, DateTime toTime) => Task.FromResult<IEnumerable<RuleExecutionHistory>>(new List<RuleExecutionHistory>());
|
|
|
|
public Task<IEnumerable<RuleExecutionHistory>> GetRuleExecutionHistoryAsync(int ruleId, DateTime fromTime, DateTime toTime) => Task.FromResult<IEnumerable<RuleExecutionHistory>>(new List<RuleExecutionHistory>());
|
|
|
|
public Task<BusinessRule> CreateOrUpdateRuleAsync(BusinessRule rule) => Task.FromResult(rule);
|
|
|
|
public Task<BusinessRule> CreateOrUpdateRuleAsync(BusinessRule rule) => Task.FromResult(rule);
|
|
|
|
public Task<IEnumerable<BusinessRule>> GetStatisticsRulesAsync() => Task.FromResult<IEnumerable<BusinessRule>>(new List<BusinessRule>());
|
|
|
|
public Task<IEnumerable<BusinessRule>> GetStatisticsRulesAsync() => Task.FromResult<IEnumerable<BusinessRule>>(new List<BusinessRule>());
|
|
|
|
public Task<bool> UpdateStatisticsRulesAsync(IEnumerable<BusinessRule> rules) => Task.FromResult(false);
|
|
|
|
public Task<bool> UpdateStatisticsRulesAsync(IEnumerable<BusinessRule> rules) => Task.FromResult(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|