Add meilisearch for user and event

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-26 02:16:23 +08:00
parent 3dbcc00a2d
commit 6681ffccdf
19 changed files with 229 additions and 15 deletions

View File

@@ -12,14 +12,16 @@ func Info(c *gin.Context) {
data := new(data.User)
userId, ok := c.Get("user_id")
if !ok {
c.JSON(403, gin.H{
c.JSON(404, gin.H{
"status": "user not found",
})
return
}
// Get user from database
err := data.GetByUserId(userId.(uuid.UUID))
if err != nil {
c.JSON(403, gin.H{
c.JSON(404, gin.H{
"status": "user not found",
})
return