statistics.go 457B

12345678910111213141516171819
  1. package statistics
  2. import (
  3. "spaceofcheng/services/controllers"
  4. "spaceofcheng/services/service/statistics"
  5. )
  6. // StatisticsController 商品
  7. type StatisticsController struct {
  8. serv *statistics.StatisticsServ
  9. controllers.BaseController
  10. }
  11. // Constructor 初始化 Controller
  12. // @Title Constructor
  13. // @Description 初始化 Controller, 系统自动调用
  14. func (c *StatisticsController) Constructor() {
  15. c.serv = statistics.NewStatisticsServ(c.Context)
  16. }