undertaker_feedback_controller.go 701 字节
package web_client

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/web/undertakerFeedback/command"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/web/undertakerFeedback/service"
)

type UndertakerFeedbackController struct {
	baseController
}

//SearchFeedback ...
func (controller *UndertakerFeedbackController) SearchFeedback() {
	svr := service.UndertakerFeedbackService{}
	cmd := &command.SearchFeedbackCommand{}
	err := controller.Unmarshal(cmd)
	if err != nil {
		controller.Response(nil, err)
		return
	}
	cmd.Operator = controller.GetOperator()
	data, err := svr.SearchFeedback(cmd)
	controller.Response(data, err)
}