1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package controllers
-
- import (
- "XT_New/service"
- "github.com/astaxie/beego"
- )
-
- type BaseController struct {
- beego.Controller
- }
-
- func (this *BaseController) GetAdminUserInfo() *service.AdminUserInfo {
- userInfo := this.GetSession("admin_user_info")
- if userInfo == nil {
- return nil
- } else {
- return userInfo.(*service.AdminUserInfo)
- }
- }
-
- func (this *BaseController) ErrorLog(format string, a ...interface{}) {
-
- }
-
- func (this *BaseController) WarnLog(format string, a ...interface{}) {
-
- }
-
- func (this *BaseController) InfoLog(format string, a ...interface{}) {
-
- }
-
- func (this *BaseController) DebugLog(format string, a ...interface{}) {
-
- }
-
- func (this *BaseController) TraceLog(format string, a ...interface{}) {
-
- }
-
|