Skip to content
Discussion options

You must be logged in to vote

Hello @fnoopv ! You can create your own Paginator DTO, just like database.PaginatorDTO and modify the json tags to your liking.

About DTO conversion, bear in mind that modifying the json names will change the behavior of typeutil.Convert(), so you should manually copy each field from the database.Paginator or use typeutil.Copy() instead.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fnoopv
Comment options

Answer selected by fnoopv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants