package handler import ( "net/http" "github.com/gin-gonic/gin" ) // GetWishTree 获取许愿树 func GetWishTree(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ "code": 0, "msg": "success", "data": gin.H{ "tree": gin.H{ "id": 1, "name": "许愿树", "wishes": []interface{}{}, }, }, }) } // CreateWish 创建许愿 func CreateWish(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ "code": 0, "msg": "success", "data": gin.H{ "id": 1, }, }) } // GetWishList 获取许愿列表 func GetWishList(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ "code": 0, "msg": "success", "data": gin.H{ "list": []interface{}{}, "total": 0, }, }) } // DeleteWish 删除许愿 func DeleteWish(c *gin.Context) { id := c.Param("id") c.JSON(http.StatusOK, gin.H{ "code": 0, "msg": "success", "data": gin.H{ "id": id, }, }) }