Skip to content

Commit 9228fb0

Browse files
authored
Merge pull request #984 from jackchenjc/issue-983
fix: Add JSON Tag for Count Field in CountResponse
2 parents d73d440 + 6429393 commit 9228fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dtos/common/count.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package common
33
// CountResponse defines the Response Content for GET count DTO.
44
type CountResponse struct {
55
BaseResponse `json:",inline"`
6-
Count uint32
6+
Count uint32 `json:"count"`
77
}
88

99
// NewCountResponse creates new CountResponse with all fields set appropriately

0 commit comments

Comments
 (0)