You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
318 B

  1. package app
  2. import (
  3. "log"
  4. "github.com/ouxuanserver/osmanthuswine/src/core"
  5. )
  6. type Ctltest struct {
  7. core.Controller
  8. }
  9. func (that *Ctltest) Prepare() {
  10. //该方法会在Method执行前调用,用户扩展类似校验登陆
  11. log.Println("Prepare")
  12. }
  13. func (that *Ctltest) Test() {
  14. that.DisplayByData("test")
  15. }