You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ti...@apache.org on 2021/08/05 08:37:04 UTC
[servicecomb-service-center] branch master updated: Fix: Return
none when no locks (#1128)
This is an automated email from the ASF dual-hosted git repository.
tianxiaoliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
The following commit(s) were added to refs/heads/master by this push:
new f200829 Fix: Return none when no locks (#1128)
f200829 is described below
commit f2008294ab8c5e7f3cf27fb91489dbf7b3d3f3c0
Author: little-cui <su...@qq.com>
AuthorDate: Thu Aug 5 16:36:59 2021 +0800
Fix: Return none when no locks (#1128)
---
datasource/account.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/datasource/account.go b/datasource/account.go
index 69c0246..fe098e4 100644
--- a/datasource/account.go
+++ b/datasource/account.go
@@ -67,6 +67,6 @@ type AccountLock struct {
ReleaseAt int64 `json:"releaseAt,omitempty" bson:"release_at"`
}
type AccountLockResponse struct {
- Total int64 `json:"total,omitempty"`
- AccountLock []*AccountLock `json:"data,omitempty"`
+ Total int64 `json:"total"`
+ AccountLock []*AccountLock `json:"data"`
}