refactor(service):去掉没有定义意义的工具函数。

This commit is contained in:
徐涛 2022-08-23 11:08:56 +08:00
parent c0e5ca8c33
commit 42680f04bf

View File

@ -10,14 +10,3 @@ func _postProcessSingle[T interface{}](instance *T, has bool, err error) (*T, er
return nil, nil
}
}
func _postProcessList[T interface{}](instance []*T, has bool, err error) ([]*T, error) {
if err != nil {
return nil, err
}
if has {
return instance, nil
} else {
return nil, nil
}
}