fix json fields for ListSecret
continuous-integration/drone/push Build is passing

This commit is contained in:
nathan committed 2024-01-09 22:53:07 +11:00
1 parent ed6966eab4
commit 48611b22c9
2 files changed
+9 -9

No files matched your search

+5 -5
View File
@@ -18,11 +18,11 @@ type RetrieveInput struct {
}
type ListSecret struct {
SecretId int `db:"SecretId"`
SafeId int `db:"SafeId"`
DeviceName string `db:"DeviceName"`
DeviceCategory string `db:"DeviceCategory"`
UserName string `db:"UserName"`
SecretId int `db:"SecretId" json:"secretId"`
SafeId int `db:"SafeId" json:"safeId"`
DeviceName string `db:"DeviceName" json:"deviceName"`
DeviceCategory string `db:"DeviceCategory" json:"deviceCategory"`
UserName string `db:"UserName" json:"userName"`
Secret string `db:"Secret" json:"-"`
}