♻️ Refactor av data structure

This commit is contained in:
Daniel 2023-07-13 11:01:31 +08:00
parent 5939add4a1
commit b32d2950ef
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -82,10 +82,10 @@ type KeySelectOption struct {
}
type Value struct {
ID string `json:"id"`
KeyID string `json:"keyID"`
BlockID string `json:"blockID"`
Type KeyType `json:"type"`
ID string `json:"id,omitempty"`
KeyID string `json:"keyID,omitempty"`
BlockID string `json:"blockID,omitempty"`
Type KeyType `json:"type,omitempty"`
Block *ValueBlock `json:"block,omitempty"`
Text *ValueText `json:"text,omitempty"`