admin_api_base_controller.go 942B

123456789101112131415161718192021222324252627282930
  1. package admin_api_controllers
  2. import (
  3. "Xcx_New/controllers"
  4. )
  5. type AdminBaseAPIController struct {
  6. controllers.BaseAPIController
  7. }
  8. func (this *AdminBaseAPIController) ErrorLog(format string, a ...interface{}) {
  9. //beego.Error(fmt.Sprintf("[管理员后台] %v", fmt.Sprintf(format, a...)))
  10. }
  11. func (this *AdminBaseAPIController) WarnLog(format string, a ...interface{}) {
  12. //beego.Warn(fmt.Sprintf("[管理员后台] %v", fmt.Sprintf(format, a...)))
  13. }
  14. func (this *AdminBaseAPIController) InfoLog(format string, a ...interface{}) {
  15. //beego.Info(fmt.Sprintf("[管理员后台] %v", fmt.Sprintf(format, a...)))
  16. }
  17. func (this *AdminBaseAPIController) DebugLog(format string, a ...interface{}) {
  18. //beego.Debug(fmt.Sprintf("[管理员后台] %v", fmt.Sprintf(format, a...)))
  19. }
  20. func (this *AdminBaseAPIController) TraceLog(format string, a ...interface{}) {
  21. //beego.Trace(fmt.Sprintf("[管理员后台] %v", fmt.Sprintf(format, a...)))
  22. }