terminal_controller.go 625 字节
package controllers

import (
	"github.com/linmadan/egglib-go/web/beego"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/application/terminal/command"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/application/terminal/service"
)

type TerminalController struct {
	beego.BaseController
}

func (controller *TerminalController) TerminalReport() {
	service := service.NewTerminalService(nil)
	terminalReportCommand := &command.TerminalReportCommand{}
	controller.Unmarshal(terminalReportCommand)
	data, err := service.TerminalReport(terminalReportCommand)
	controller.Response(data, err)
}