MSP-1021 get rid of unnecessary
This commit is contained in:
1 parent
1b87824eaf
commit
92943009b1
3 files changed
-45
No files matched your search
@@ -1,5 +0,0 @@
|
||||
package codes
|
||||
|
||||
const (
|
||||
CreateScriptFromConfigError = 900
|
||||
)
|
||||
@@ -1,12 +0,0 @@
|
||||
package conf
|
||||
|
||||
import (
|
||||
"github.com/integration-system/isp-lib/v2/config"
|
||||
"github.com/integration-system/isp-lib/v2/structure"
|
||||
)
|
||||
|
||||
type Configuration struct {
|
||||
config.CommonLocalConfig
|
||||
GrpcOuterAddress structure.AddressConfiguration `valid:"required~Required" json:"grpcOuterAddress"`
|
||||
GrpcInnerAddress structure.AddressConfiguration `valid:"required~Required" json:"grpcInnerAddress"`
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
package helper
|
||||
|
||||
import (
|
||||
"isp-script-service/controller"
|
||||
"isp-script-service/domain"
|
||||
)
|
||||
|
||||
type ScriptHandlers struct {
|
||||
ExecuteById func(request domain.ExecuteByIdRequest) (*domain.ScriptResp, error) `method:"execute_by_id" group:"script"`
|
||||
Execute func(request domain.ExecuteRequest) *domain.ScriptResp `method:"execute" group:"script"`
|
||||
BatchExecute func(request []domain.ExecuteByIdRequest) []domain.ScriptResp `method:"batch_execute" group:"script"`
|
||||
BatchExecuteByIds func(request domain.BatchExecuteByIdsRequest) []domain.ScriptResp `method:"batch_execute_by_ids" group:"script"`
|
||||
}
|
||||
|
||||
func GetTaskHandler() *ScriptHandlers {
|
||||
return &ScriptHandlers{
|
||||
ExecuteById: controller.Script.ExecuteById,
|
||||
Execute: controller.Script.Execute,
|
||||
BatchExecute: controller.Script.BatchExecute,
|
||||
BatchExecuteByIds: controller.Script.BatchExecuteById,
|
||||
}
|
||||
}
|
||||
|
||||
func GetAllHandlers() []interface{} {
|
||||
return []interface{}{
|
||||
GetTaskHandler(),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user