73 lines
2.5 KiB
C#
73 lines
2.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using _0_Framework.Application;
|
|
|
|
namespace CompanyManagment.App.Contracts.CameraBugReport
|
|
{
|
|
public interface ICameraBugReportApplication
|
|
{
|
|
Task<OperationResult> CreateAsync(CreateCameraBugReportCommand command);
|
|
Task<OperationResult> EditAsync(EditCameraBugReportCommand command);
|
|
Task<OperationResult> DeleteAsync(string id);
|
|
Task<List<CameraBugReportViewModel>> GetAllAsync(CameraBugReportSearchModel searchModel);
|
|
Task<CameraBugReportDetailViewModel> GetDetailsAsync(string id);
|
|
Task<bool> IsExistAsync(string id);
|
|
|
|
// Keep sync methods for backward compatibility but they delegate to async
|
|
OperationResult Create(CreateCameraBugReportCommand command);
|
|
OperationResult Edit(EditCameraBugReportCommand command);
|
|
OperationResult Delete(long id);
|
|
List<CameraBugReportViewModel> GetAll(CameraBugReportSearchModel searchModel);
|
|
CameraBugReportDetailViewModel GetDetails(long id);
|
|
bool IsExist(long id);
|
|
}
|
|
|
|
public class CameraBugReportSearchModel
|
|
{
|
|
public CameraBugReportType? Type { get; set; }
|
|
public CameraBugPriority? Priority { get; set; }
|
|
public CameraBugReportStatus? Status { get; set; }
|
|
public string SearchTerm { get; set; }
|
|
public int PageNumber { get; set; } = 1;
|
|
public int PageSize { get; set; } = 10;
|
|
}
|
|
}
|
|
|
|
/// </summary>
|
|
/// وضعیت گزارش خرابی دوربین
|
|
/// <summary>
|
|
public enum CameraBugReportStatus
|
|
{
|
|
Reopened = 5, // مجدداً باز شده
|
|
Closed = 4, // بسته شده
|
|
Fixed = 3, // رفع شده
|
|
InProgress = 2, // در حال بررسی
|
|
Open = 1, // باز
|
|
}
|
|
|
|
/// </summary>
|
|
/// اولویت گزارش خرابی دوربین
|
|
/// <summary>
|
|
public enum CameraBugPriority
|
|
{
|
|
Low = 4, // پایین
|
|
Medium = 3, // متوسط
|
|
High = 2, // بالا
|
|
Critical = 1, // بحرانی
|
|
}
|
|
|
|
/// </summary>
|
|
/// انواع گزارش خرابی دوربین
|
|
/// <summary>
|
|
public enum CameraBugReportType
|
|
{
|
|
Other = 8, // سایر
|
|
CrashOnCapture = 7, // کرش هنگام عکسبرداری
|
|
LightingIssue = 6, // مشکل روشنایی
|
|
FocusIssue = 5, // مشکل فوکوس
|
|
PerformanceIssue = 4, // مشکل عملکردی
|
|
FaceRecognitionFailed = 3, // شناسایی چهره ناموفق
|
|
BlurryImage = 2, // تصویر مبهم
|
|
CameraNotWorking = 1, // دوربین کار نمیکند
|
|
} |