hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | //! The sitting answer sheet's workflows: the doors the web layer takes for |
| 2 | //! every answer read and write (the gate chain itself lives in |
| 3 | //! [`crate::service::exam_attempt`], which funnels every save through |
| 4 | //! [`save`]). The queries live in [`crate::db::exam_answer`]. |
| 5 | |
| 6 | use crateDatabase; |
| 7 | use cratedb; |
| 8 | use crateExamId; |
| 9 | use crateExamAnswer; |
| 10 | use crate; |
| 11 | use crateUserId; |
| 12 | use crateAppError; |
| 13 | |
| 14 | /// Save (or overwrite) one answer — the payload validation and the atomic |
| 15 | /// exam-row-touching upsert. The caller has already checked that the attempt |
| 16 | /// is in progress. |
| 17 | pub async |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | /// One student's stored answer for a question in sitting `seq`, if any. |
| 29 | pub async |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | /// Drop one student's answer to a single question in sitting `seq`. |
| 39 | pub async |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | /// One student's answers for a single sitting (`seq`) across an exam. |
| 49 | pub async |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | /// Every answer of an exam — the live monitor aggregates these per student. |
| 59 | pub async |
| 60 | |
| 61 | |
| 62 | |
| 63 | /// The distinct sittings a student has any answer for at `exam`, ascending |
| 64 | /// — the index a history view lists attempts from. |
| 65 | pub async |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 |