Skip to content

Commit 6429393

Browse files
committed
fix: Add JSON Tag for Count Field in CountResponse
fixes #983 Signed-off-by: Jack Chen <[email protected]>
1 parent d73d440 commit 6429393

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)