package handler import ( "net/http" "github.com/gin-gonic/gin" ) // GetOrderList 获取订单列表 func GetOrderList(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ "code": 0, "msg": "success", "data": gin.H{ "list": []interface{}{}, "total": 0, }, }) } // GetOrderDetail 获取订单详情 func GetOrderDetail(c *gin.Context) { id := c.Param("id") c.JSON(http.StatusOK, gin.H{ "code": 0, "msg": "success", "data": gin.H{ "id": id, }, }) } // CancelOrder 取消订单 func CancelOrder(c *gin.Context) { id := c.Param("id") c.JSON(http.StatusOK, gin.H{ "code": 0, "msg": "success", "data": gin.H{ "id": id, }, }) }