hezarfen_backend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | //! Course-note workflows: the create/read/list/update/delete paths the |
| 2 | //! course-notes surface drives. The queries live in |
| 3 | //! [`crate::db::course_note`]; blob unlinking and the AI re-index stay in the |
| 4 | //! web layer. |
| 5 | |
| 6 | use crateDatabase; |
| 7 | use cratecourse_note; |
| 8 | use crateCourseId; |
| 9 | use crate; |
| 10 | use crateCourseNoteFile; |
| 11 | use crateUserId; |
| 12 | use crateAppError; |
| 13 | |
| 14 | pub async |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | pub async |
| 25 | |
| 26 | |
| 27 | |
| 28 | pub async |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | /// Only what the request carried is written: an omitted field (`None`) is |
| 38 | /// not stored at all, so a concurrent edit of the other field survives. |
| 39 | pub async |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | /// Delete the note and cascade its attachment rows; the returned files are |
| 49 | /// exactly whose blobs the caller may unlink. |
| 50 | pub async |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 |