init.go 664 B

123456789101112131415161718192021222324
  1. package promotion_controller
  2. import (
  3. "github.com/astaxie/beego/context"
  4. "fohow.com/apps"
  5. )
  6. var (
  7. //以下Action无需登录校验,exceptCheckUserLoginAction = []string{"*"} *代表全部不需要
  8. exceptCheckUserLoginAction = []string{""}
  9. exceptCheckWxUserLoginAction = []string{""}
  10. )
  11. type PromotionController struct {
  12. apps.BaseController
  13. }
  14. func (self *PromotionController) Init(ctx *context.Context, controllerName, actionName string, app interface{}) {
  15. self.BaseController.Init(ctx, controllerName, actionName, app)
  16. self.ExceptCheckUserLoginAction = exceptCheckUserLoginAction
  17. self.ExceptCheckWxUserLoginAction = exceptCheckWxUserLoginAction
  18. }