Files
isp-script-service/controller/script.go
T
2020-06-10 17:15:59 +03:00

23 lines
564 B
Go

package controller
import (
"isp-script-service/domain"
"isp-script-service/service"
)
var Script scriptController
type scriptController struct{}
func (c scriptController) ExecuteById(req domain.ExecuteByIdRequest) (*domain.ScriptResp, error) {
return service.Script.ExecuteById(req)
}
func (c scriptController) Execute(req domain.ExecuteRequest) *domain.ScriptResp {
return service.Script.Execute(req)
}
func (c scriptController) BatchExecuteById(req domain.BatchExecuteByIdsRequest) []domain.ScriptResp {
return service.Script.BatchExecuteById(req)
}