Skip to content

Commit

Permalink
Merge pull request #6 from akakou/develop
Browse files Browse the repository at this point in the history
refactor: rename and arrangement the types
  • Loading branch information
akakou committed Feb 5, 2024
2 parents b7e6cf0 + d1184b7 commit 7235026
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions resp.go → type.go
Original file line number Diff line number Diff line change
@@ -1,29 +1,5 @@
package metact

type SubscribeResp struct {
Success bool `json:"success"`
}

type Paging struct {
Cursors struct {
Before string `json:"before"`
After string `json:"after"`
} `json:"causers"`
}

type KeyValue struct {
Key string `json:"key"`
Value string `json:"value"`
}

type SubscribeListResp struct {
Data []struct {
Id string `json:"id"`
Domain string `json:"domain"`
} `json:"data"`
Paging `json:"paging"`
}

type Certificate struct {
Id string `json:"id"`
AuthorityKeyIdentifier string `json:"authority_key_identifier"`
Expand Down Expand Up @@ -52,6 +28,30 @@ type Certificate struct {
Version int `json:"version"`
}

type Paging struct {
Cursors struct {
Before string `json:"before"`
After string `json:"after"`
} `json:"causers"`
}

type KeyValue struct {
Key string `json:"key"`
Value string `json:"value"`
}

type SubscribeResp struct {
Success bool `json:"success"`
}

type SubscribeListResp struct {
Data []struct {
Id string `json:"id"`
Domain string `json:"domain"`
} `json:"data"`
Paging `json:"paging"`
}

type CertificatesResp struct {
Data []Certificate `json:"data"`
Paging `json:"paging"`
Expand Down

0 comments on commit 7235026

Please sign in to comment.