Skip to content

Commit

Permalink
refactor: Change the page json serialization to small camel #65 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
afumu authored Aug 19, 2023
1 parent 8c00ac4 commit bb6423a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gplus/dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ func Init(db *gorm.DB) {
}

type Page[T any] struct {
Current int
Size int
Total int64
Records []*T
RecordsMap []T
Current int `json:"current"`
Size int `json:"size"`
Total int64 `json:"total"`
Records []*T `json:"records"`
RecordsMap []T `json:"recordsMap"`
}

type Dao[T any] struct{}
Expand Down

0 comments on commit bb6423a

Please sign in to comment.