partner_controller.go 576 字节
package controllers

import (
	"github.com/linmadan/egglib-go/web/beego"
	"gitlab.fjmaimaimai.com/mmm-go-pp/partner01-gateway/pkg/application/partner/query"
	"gitlab.fjmaimaimai.com/mmm-go-pp/partner01-gateway/pkg/application/partner/service"
)

type PartnerController struct {
	beego.BaseController
}

func (controller *PartnerController) PartnerCategories() {
	partnerService := service.NewPartnerService(nil)
	partnerCategoriesQuery := &query.PartnerCategoriesQuery{}
	data, err := partnerService.PartnerCategories(partnerCategoriesQuery)
	controller.Response(data, err)
}