Documentation ¶
Index ¶
- Constants
- Variables
- func AutoBackendPrefix()
- func Customer(c echo.Context) *dbschema.OfficialCustomer
- func FrontendURLFunc(c echo.Context) error
- func FrontendURLFuncMW() echo.MiddlewareFunc
- func InitWebServer()
- func MakeRouteRewriter() (cfg middleware.RewriteConfig, err error)
- func ResetRouteRewrite() error
- func SetPrefix(prefix string)
- func URLFor(purl string) string
Constants ¶
View Source
const ( DefaultTemplateDir = `./template/frontend` // 前台模板路径默认值 DefaultAssetsDir = `./public/assets/frontend` // 前台素材路径默认值 DefaultAssetsURLPath = `/public/assets/frontend` // 前台素材网址路径默认值 RouteDefaultExtension = `.html` // 前台网页扩展名默认值 )
Variables ¶
View Source
var ( IRegister = route.IRegister MakeHandler = route.MakeHandler WithMeta = route.MetaHandler WithMetaAndRequest = route.MetaHandlerWithRequest WithRequest = route.HandlerWithRequest Pre = route.Pre Use = route.Use UseToGroup = route.UseToGroup Register = route.Register RegisterToGroup = route.RegisterToGroup Host = route.Host Apply = route.Apply Prefix = route.Prefix )
View Source
var MinCustomerID = 1000
View Source
var Notify = notice.NewUserNotices(false, nil)
View Source
var TmplCustomParser func(tmpl string, content []byte) []byte
Functions ¶
func AutoBackendPrefix ¶
func AutoBackendPrefix()
func FrontendURLFunc ¶
func FrontendURLFuncMW ¶
func FrontendURLFuncMW() echo.MiddlewareFunc
func InitWebServer ¶
func InitWebServer()
func MakeRouteRewriter ¶
func MakeRouteRewriter() (cfg middleware.RewriteConfig, err error)
func ResetRouteRewrite ¶
func ResetRouteRewrite() error
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.