hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | //! A file attached to a course note. The row carries metadata only (original |
| 2 | //! filename, MIME type, byte size); the bytes themselves live on disk under |
| 3 | //! [`crate::config::Config::files_path`], in a file named by this row's `file` |
| 4 | //! field — a server-generated UUID, so no user input ever shapes a disk path. |
| 5 | //! The web layer owns the blob I/O and its ordering (blob before row on |
| 6 | //! upload, row before blob on delete); persistence lives in |
| 7 | //! [`crate::db::course_note_file`]. `FileName` and `FileContentType` are |
| 8 | //! shared with [`crate::domain::note_file`] — same validation, no reason to |
| 9 | //! duplicate it. |
| 10 | |
| 11 | pub use crate; |
| 12 | |
| 13 | use crateCourseNoteId; |
| 14 | use cratenext_uuid; |
| 15 | |
| 16 | |
| 17 | |
| 18 | ; |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 |