statistics_company.go 1.5 KB
package service

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/command"
)

// 企业端统计
type CompanyStatisticsService struct {
}

// IndexStatistics  TODO:首页统计 (入口页面统计数据)
func (srv CompanyStatisticsService) IndexStatistics(userMenusCommand *command.IndexStatisticsCommand) (interface{}, error) {
	//creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(
	//	userMenusCommand.Operator)
	//resultMenu, err := creationUserGateway.UserAccessMenus(allied_creation_user.ReqUserAccessMenus{
	//	UserId: int(userMenusCommand.Operator.UserId),
	//})
	//if err != nil {
	//	return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
	//}
	return map[string]interface{}{}, nil
}

// CooperationPersonStatistics  TODO:共创人员统计(共创人员明细)
func (srv CompanyStatisticsService) CooperationPersonStatistics(userMenusCommand *command.CooperationPersonStatisticsCommand) (interface{}, error) {
	return map[string]interface{}{}, nil
}

// GoodsStatistics  TODO:产品统计排行榜 年月榜
func (srv CompanyStatisticsService) GoodsStatistics(userMenusCommand *command.GoodsStatisticsCommand) (interface{}, error) {
	return map[string]interface{}{}, nil
}

// CooperationDividendsStatistics TODO:共创分红支出统计
func (srv CompanyStatisticsService) CooperationDividendsStatistics(userMenusCommand *command.CooperationDividendsStatisticsCommand) (interface{}, error) {
	return map[string]interface{}{}, nil
}