How to customize the json tag of PaginatorDTO #240
-
example: |
Beta Was this translation helpful? Give feedback.
Answered by
System-Glitch
Feb 28, 2025
Replies: 1 comment 1 reply
-
Hello @fnoopv ! You can create your own Paginator DTO, just like About DTO conversion, bear in mind that modifying the json names will change the behavior of |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fnoopv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 thedatabase.Paginator
or usetypeutil.Copy()
instead.