controller.go 390 B

123456789101112131415161718
  1. // Copyright 2019 github.com. All rights reserved.
  2. // Use of this source code is governed by github.com.
  3. package v1
  4. import jsoniter "github.com/json-iterator/go"
  5. // 替换encoding/json包
  6. var json = jsoniter.ConfigCompatibleWithStandardLibrary
  7. // Controller
  8. type Controller struct {
  9. }
  10. // NewController return a new controller
  11. func NewController() *Controller {
  12. return &Controller{}
  13. }