feat: add Flutter mobile clients and staff delivery API
This commit is contained in:
@@ -62,13 +62,23 @@ func registerStaffClient(serviceKey string, engine *gin.Engine) {
|
||||
protected := engine.Group(basePath)
|
||||
protected.Use(sdkmiddleware.JwtAuth(true), clientcommon.RequireClient("service_app"))
|
||||
protected.GET("/auth/profile", stafflogic.Profile)
|
||||
protected.GET("/preflight", stafflogic.Preflight)
|
||||
protected.PUT("/auth/password", stafflogic.ChangePassword)
|
||||
protected.POST("/attendance", stafflogic.Attendance)
|
||||
protected.GET("/tickets", stafflogic.ListTickets)
|
||||
protected.GET("/tickets/:identity", stafflogic.GetTicket)
|
||||
protected.POST("/tickets/:identity/start", stafflogic.StartTicket)
|
||||
protected.POST("/tickets/:identity/exception", stafflogic.ExceptionTicket)
|
||||
protected.POST("/tickets/:identity/recover", stafflogic.RecoverTicket)
|
||||
protected.POST("/tickets/:identity/submit-result", stafflogic.SubmitTicketResult)
|
||||
protected.GET("/delivery/orders", stafflogic.ListDeliveryOrders)
|
||||
protected.GET("/delivery/orders/:identity", stafflogic.GetDeliveryOrder)
|
||||
protected.POST("/delivery/orders/:identity/start", stafflogic.StartDeliveryOrder)
|
||||
protected.POST("/delivery/orders/:identity/tracks", stafflogic.AppendDeliveryTracks)
|
||||
protected.POST("/delivery/orders/:identity/arrive", stafflogic.ArriveDeliveryOrder)
|
||||
protected.POST("/delivery/orders/:identity/exception", stafflogic.ExceptionDeliveryOrder)
|
||||
protected.POST("/delivery/orders/:identity/recover", stafflogic.RecoverDeliveryOrder)
|
||||
protected.POST("/delivery/orders/:identity/submit-receipt", stafflogic.SubmitDeliveryReceipt)
|
||||
registerClientWalletRoutes(protected, "service_app")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user