Files
wehub-resource-sync a21fa4e11b
Go / Build (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 12:30:21 +08:00

27 lines
617 B
Go

package controllers
import (
"github.com/phachon/mm-wiki/app/controllers"
)
type BaseController struct {
controllers.TemplateController
}
// view layout
func (this *BaseController) viewLayout(viewName, layout string) {
viewName = "system/" + viewName
layout = "system/layouts/" + layout
this.ViewLayout(viewName, layout)
}
// return json success
func (this *BaseController) jsonSuccess(message interface{}, data ...interface{}) {
this.JsonSuccess(message, data...)
}
// return json error
func (this *BaseController) jsonError(message interface{}, data ...interface{}) {
this.JsonError(message, data...)
}