mirror of
https://github.com/aceld/kis-flow.git
synced 2025-02-02 15:28:38 +08:00
18 lines
391 B
Go
18 lines
391 B
Go
package kis
|
|
|
|
import (
|
|
"kis-flow/common"
|
|
"reflect"
|
|
)
|
|
|
|
type FaasSerialize interface {
|
|
DecodeParam(common.KisRowArr, reflect.Type) (reflect.Value, error)
|
|
EncodeParam(interface{}) (common.KisRowArr, error)
|
|
}
|
|
|
|
var serializeInterfaceType = reflect.TypeOf((*FaasSerialize)(nil)).Elem()
|
|
|
|
func isFaasSerialize(paramType reflect.Type) bool {
|
|
return paramType.Implements(serializeInterfaceType)
|
|
}
|