coldgust commented on issue #3616:
URL: 
https://github.com/apache/incubator-devlake/issues/3616#issuecomment-1462475310

   It seems that most extractors just need to json-deserialize `row.Data` 
field, such as `backend/plugins/github/tasks/account_extractor.go`.
   
   
   I want to define like this
   ```go
   type ApiExtractorArgs[T any] struct {
        RawDataSubTaskArgs
        Params    interface{}
        Extract   func(data *T, row *RawData) ([]interface{}, errors.Error)
        BatchSize int
   }
   ```
   It still pass `*RawData` parameter, and the user dicide to whether 
json-deserialize `row.Input`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to