hezarfen_backend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | //! The drawn-answer workflows: the doors the web layer takes for every |
| 2 | //! answer-image read and write. The blob I/O and its disk ordering stay in |
| 3 | //! the web layer; the row transactions live in [`crate::db::answer_image`]. |
| 4 | |
| 5 | use crateDatabase; |
| 6 | use cratedb; |
| 7 | use crateAnswerImage; |
| 8 | use crateExamId; |
| 9 | use crateExamQuestionId; |
| 10 | use crateUserId; |
| 11 | use crateAppError; |
| 12 | |
| 13 | /// Create or replace the student's drawing for the question, handing back |
| 14 | /// what it stored plus the blob name it replaced, for the caller to take |
| 15 | /// off disk. |
| 16 | pub async |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | /// The student's drawing for one question in one sitting, if any. |
| 24 | pub async |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | /// Drop one drawing — the returned row names the blob to unlink. |
| 34 | pub async |
| 35 | |
| 36 | |
| 37 | |
| 38 | /// One student's answer drawings for a single sitting. |
| 39 | pub async |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 |