2023-10-27 09:51:58 +00:00
|
|
|
package entity
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"online-order/ent"
|
|
|
|
)
|
|
|
|
|
|
|
|
type RouterBase struct {
|
|
|
|
Database *ent.Client
|
|
|
|
OpenApp *gin.RouterGroup
|
|
|
|
}
|
|
|
|
|
2023-10-31 16:31:06 +00:00
|
|
|
type RouterActiveBusiness struct {
|
|
|
|
ActiveBusiness ActiveBusiness
|
|
|
|
}
|
|
|
|
|
2023-10-27 09:51:58 +00:00
|
|
|
type Routers struct {
|
|
|
|
RouterBase
|
2023-10-31 16:31:06 +00:00
|
|
|
RouterActiveBusiness
|
2023-10-27 09:51:58 +00:00
|
|
|
RestrictedApp *gin.RouterGroup
|
|
|
|
}
|