digitization_controller.go 702 字节
package controllers

import (
	"github.com/linmadan/egglib-go/web/beego"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/application/factory"
	service_gateway "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/digitization_server"
)

type DigitizationController struct {
	beego.BaseController
}

func (controller *DigitizationController) GetDigitization() {
	var byteBankServiceGateway service_gateway.DigitizationServiceGateway
	value, err := factory.CreateFontServiceGateway(map[string]interface{}{})
	if err == nil {
		byteBankServiceGateway = value
	}
	data, err := byteBankServiceGateway.GetBusiness()
	controller.Response(data, err)
}