partner_controller.go
560 字节
package controllers
import (
"github.com/linmadan/egglib-go/web/beego"
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01/pkg/application/partner/query"
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01/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)
}