hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | //! Message workflows. Every persistence step here is a single atomic |
| 2 | //! record write ([`crate::db::message`]) whose rule rides in its own |
| 3 | //! `WHERE` clause, so there is no multi-call lock to hold and no policy of |
| 4 | //! its own — the handler validates the DTO, gates on the row it just read, |
| 5 | //! and sequences these calls. They live in the service so the web layer |
| 6 | //! never names the db layer. |
| 7 | |
| 8 | use crateDatabase; |
| 9 | use cratemessage; |
| 10 | use crate |
| 11 | |
| 12 | ; |
| 13 | use crateUserId; |
| 14 | use crateAppError; |
| 15 | |
| 16 | pub async |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | pub async |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | pub async |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | pub async |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | pub async |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | pub async |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 |