feat: 添加工单请求接口

This commit is contained in:
lixiangwuxian
2024-10-24 19:19:11 +08:00
parent 5997c37576
commit 37161b4147
5 changed files with 61 additions and 7 deletions

View File

@@ -0,0 +1,15 @@
package ticket
import (
"net/http"
"github.com/gin-gonic/gin"
)
func TicketHandler(c *gin.Context) {
tickets, err := getAllTicket()
if err != nil {
c.AbortWithError(http.StatusInternalServerError, err)
}
c.JSON(200, tickets)
}