feat: add user submission functionality

This commit is contained in:
2026-07-05 21:45:45 +03:30
parent afb5045cf0
commit 7b44542ce7
48 changed files with 1459 additions and 55 deletions
+9
View File
@@ -0,0 +1,9 @@
{
"fields": {
"resultRange": "Result Range"
},
"errors": {
"resultRangeOverlappingConstraint": "The specified score range has some overlaps with other records.",
"resultRangeMinMaxConstraint": "minScore value should be less than maxScore."
}
}
+16
View File
@@ -0,0 +1,16 @@
{
"fields": {
"testId": "Test's Id",
"questionId": "Question's Id",
"submission": "Submission",
"submissionId": "Submission's Id",
"choiceId": "Choice's Id"
},
"errors": {
"alreadyTookTest": "You already took this test.",
"choiceNumericConstraint": "You must send either choiceId or numericValue.",
"emptyNumericValue": "A numeric value should be provided as answer.",
"numericValueRange": "Numeric value is out of specified range.",
"emptyChoiceId": "Choice Id should be provided as answer."
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"fields": {
"resultRange": "بازه نتیجه"
},
"errors": {
"resultRangeOverlappingConstraint": "بازه امتیاز مشخص شده با بازه های دیگر تداخل دارد.",
"resultRangeMinMaxConstraint": "minScore باید کمتر از maxScore باشد."
}
}
+16
View File
@@ -0,0 +1,16 @@
{
"fields": {
"testId": "شناسه آزمون",
"questionId": "شناسه سوال",
"submission": "Submission",
"submissionId": "شناسه Submission",
"choiceId": "شناسه گزینه"
},
"errors": {
"alreadyTookTest": "قبلا این آزمون را انجام داده اید.",
"choiceNumericConstraint": "حتما باید یکی از فیلد های شناسه انتخاب و یا مقدار عددی فرستاده شود.",
"emptyNumericValue": "یک مقدار عددی باید به عنوان پاسخ سوال مشخص شود.",
"numericValueRange": "مقدار عددی خارج از بازه مشخص شده است.",
"emptyChoiceId": "شناسه گزینه باید به عنوان پاسخ مشخص شود."
}
}