package api import "github.com/gin-gonic/gin" func GetUserID(c *gin.Context) string { raw, _ := c.Get("user_id") id, _ := raw.(string) return id }