package monthly_report

import (
	"github.com/gin-gonic/gin"

	srvv1 "github.com/pingcap-inc/security/internal/alert-server/service/v1"
	"github.com/pingcap-inc/security/internal/alert-server/store"
)

type MonthlyReportController struct {
	srv srvv1.Service
}

func NewMonthlyReportController(store store.Factory) *MonthlyReportController {
	return &MonthlyReportController{
		srv: srvv1.NewService(store),
	}
}

func (m *MonthlyReportController) GetMonthlyReport(c *gin.Context) {
	m.srv.MonthlyReport().GetMonthlyReport(c)
}
