Init
This commit is contained in:
commit
f90fdc0598
99 changed files with 15260 additions and 0 deletions
16
api/types.go
Normal file
16
api/types.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"cafe/hub"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type Api struct {
|
||||
Router *gin.Engine
|
||||
Hub hub.Hub
|
||||
}
|
||||
|
||||
type errorResponse struct {
|
||||
Error string `json:"error" validate:"required"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue