grtsinry43 c5ec5b1a0b
refactor: Integrate user auth for post interactions and enable post creation
This commit enhances the post detail and creation flows by integrating user authentication and activating the post creation functionality.

**Key Changes:**

*   **refactor(PostDetailViewModel):**
    *   The `loadPostDetail` function no longer requires `userId` as a parameter. It now retrieves the current user's ID directly from the JWT using `TokenManager`.
    *   When creating a new comment (`CreateCommentDto`), the current `commentDateTime` (using `java.util.Date`) is now included.

*   **feat(PostViewModel):**
    *   The previously stubbed `createPost` function has been fully implemented.
    *   It now makes sequential repository calls: first to `createPostMetadata` to get a new `postId`, and then to `createPostBody` with that ID.
    *   The UI state is updated to reflect success or failure throughout the creation process.
2025-10-08 00:33:29 +08:00
2025-10-05 01:20:02 +08:00
2025-10-05 01:20:02 +08:00
2025-10-05 01:20:02 +08:00
2025-10-05 01:20:02 +08:00
2025-10-05 01:20:02 +08:00
Description
No description provided
26 MiB
Languages
Kotlin 100%