-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(export) - VTD-export - export data, fix parse number strategy
- Loading branch information
duyenthaind
committed
Sep 5, 2024
1 parent
54bbd6a
commit 686be32
Showing
11 changed files
with
125 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ bin/ | |
|
||
.idea | ||
log/ | ||
output/ |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package example.dto; | ||
|
||
/** | ||
* @author duyenthai | ||
*/ | ||
public class FetchPersonRequest { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package example.service; | ||
|
||
import com.vitadairy.libraries.importexport.dto.FetchRequest; | ||
import com.vitadairy.libraries.importexport.service.FetchDataService; | ||
import example.common.Person; | ||
import example.dto.FetchPersonRequest; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author duyenthai | ||
*/ | ||
public class FetchPersonService implements FetchDataService<Person, FetchPersonRequest> { | ||
@Override | ||
public List<Person> fetch(FetchRequest<FetchPersonRequest> request) { | ||
return List.of( | ||
new Person.Builder() | ||
.name("John") | ||
.age(20) | ||
.address("USA") | ||
.build(), | ||
new Person.Builder() | ||
.name("Alice") | ||
.age(25) | ||
.address("UK") | ||
.build(), | ||
new Person.Builder() | ||
.name("Bob") | ||
.age(30) | ||
.address("Canada") | ||
.build() | ||
); | ||
} | ||
} |