cooperation_statistics_controller.go 738 字节
package controllers

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationStatistics/query"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationStatistics/service"
)

type CooperationStatisticsController struct {
	BaseController
}

func (controller *CooperationStatisticsController) CooperationStatistics() {
	cooperationStatisticsService := service.CooperationStatisticsService{}
	searchCooperationProjectQuery := &query.CooperationStatisticsQuery{}
	controller.Unmarshal(searchCooperationProjectQuery)
	data, err := cooperationStatisticsService.CooperationContractStatistics(searchCooperationProjectQuery)
	controller.Response(data, err)
}