I wanna know how to transfer the Task to internal.Task? #13
-
Hi,Mario.I'm the beginner. I add a function to list all tasks, but i can't return [ ]internal.Task just return [ ]Task, so what can I do for transfering them? thx. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @RyanChengStar I assume you mean something like this? but instead returning all the records. I'd do something similar to that method I hope that helps |
Beta Was this translation helpful? Give feedback.
Hello @RyanChengStar
I assume you mean something like this? but instead returning all the records.
I'd do something similar to that method
TaskHandler.search
where the internal type is converted into the one in therest
package, so this means in therest
package the interface typeTaskService
would define a new method calledAll
(or similar) that is implemented bypostgres.Task
which returns all the values from the datastore, this method would called by a new methodTaskHandler.all
in therest
package.I hope that helps