This commit is contained in:
2026-04-10 16:12:51 +03:30
parent 20fd3842b6
commit 883573004c
143 changed files with 1380 additions and 2332 deletions
+22 -1
View File
@@ -600,5 +600,26 @@
"status_code": 200,
"description": "Task status failure",
"file": "json/mock_data/tasks/status/get_200_failure.json"
},
{
"method": "GET",
"path": "/api/pest-detection/risk-summary/",
"status_code": 200,
"description": "Pest and disease risk summary success",
"file": "json/ai/pest-detection/risk-summary/get_200_success.json"
},
{
"method": "GET",
"path": "/api/weather-forecast/card/",
"status_code": 200,
"description": "Farm weather card data",
"file": "json/ai/weather-forecast/card/get_200_success.json"
},
{
"method": "GET",
"path": "/api/yield-harvest/summary/",
"status_code": 200,
"description": "Yield prediction card, chart and harvest prediction card",
"file": "json/ai/yield-harvest/summary/get_200_success.json"
}
]
]
@@ -0,0 +1,47 @@
{
"status": "success",
"service": "ai",
"path": "/pest-detection/risk-summary",
"result": {
"disease_risk": {
"id": "disease_risk",
"title": "ریسک بیماری",
"subtitle": "۷ روز اخیر",
"stats": "پایین",
"avatarColor": "success",
"avatarIcon": "tabler-bug",
"chipText": "5%",
"chipColor": "success",
"details": {
"risk_level": "low",
"risk_percentage": 5,
"detected_diseases": [],
"last_assessed_at": "2025-07-10T06:00:00Z",
"recommendation": "شرایط فعلی مناسب است. پایش هفتگی توصیه می‌شود."
}
},
"pest_risk": {
"id": "pest_risk",
"title": "ریسک آفات",
"subtitle": "پیش‌بینی هوشمند",
"stats": "15%",
"avatarColor": "warning",
"avatarIcon": "tabler-bug-off",
"chipText": "تحت نظر",
"chipColor": "warning",
"details": {
"risk_level": "moderate",
"risk_percentage": 15,
"detected_pests": [
{
"name": "شپشک",
"confidence": 0.72,
"affected_area_percent": 8
}
],
"last_assessed_at": "2025-07-10T06:00:00Z",
"recommendation": "بازرسی مزرعه هر ۳ روز یک بار انجام شود. در صورت افزایش، اسپری روغن نیم توصیه می‌شود."
}
}
}
}
@@ -0,0 +1,17 @@
{
"status": "success",
"service": "ai",
"path": "/weather-forecast/card",
"result": {
"condition": "صاف",
"temperature": 24,
"unit": "°C",
"humidity": 45,
"windSpeed": 12,
"windUnit": "km/h",
"chartData": {
"labels": ["۶ صبح", "۹ صبح", "۱۲ ظهر", "۳ بعدازظهر", "۶ عصر", "۹ شب", "۱۲ شب"],
"series": [[18, 22, 26, 28, 25, 20, 18]]
}
}
}
@@ -0,0 +1,51 @@
{
"status": "success",
"service": "ai",
"path": "/yield-harvest/summary",
"result": {
"yield_prediction_card": {
"id": "yield_prediction",
"title": "پیش‌بینی عملکرد",
"subtitle": "این فصل",
"stats": "42 تن",
"avatarColor": "secondary",
"avatarIcon": "tabler-chart-bar",
"chipText": "+8%",
"chipColor": "success"
},
"yield_prediction_chart": {
"categories": [
"ژانویه", "فوریه", "مارس", "آوریل", "می", "ژوئن",
"ژوئیه", "آگوست", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"
],
"series": [
{"name": "امسال", "data": [35, 38, 40, 42, 45, 48, 50, 48, 46, 44, 42, 42]},
{"name": "سال گذشته", "data": [32, 34, 36, 38, 40, 42, 44, 42, 40, 38, 36, 38]}
],
"summary": [
{
"title": "عملکرد پیش‌بینی‌شده",
"subtitle": "این فصل",
"amount": "42 تن",
"avatarColor": "primary",
"avatarIcon": "tabler-chart-bar"
},
{
"title": "تاریخ برداشت",
"subtitle": "حدود ۱۵ اکتبر",
"amount": "+8%",
"avatarColor": "success",
"avatarIcon": "tabler-calendar"
}
]
},
"harvest_prediction_card": {
"date": "2025-10-15",
"dateFormatted": "۱۵ اکتبر ۲۰۲۵",
"daysUntil": 58,
"description": "بر اساس تجمع GDD فعلی و پیش‌بینی آب و هوا. بازه بهینه برداشت: ۱۲ تا ۱۸ اکتبر.",
"optimalWindowStart": "2025-10-12",
"optimalWindowEnd": "2025-10-18"
}
}
}