From d1184b7ceb74a12a50cbde11c9d9aedafc02275f Mon Sep 17 00:00:00 2001 From: akakou Date: Mon, 5 Feb 2024 23:19:14 +0900 Subject: [PATCH] refactor: rename and arrangement the types --- resp.go => type.go | 48 +++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) rename resp.go => type.go (100%) diff --git a/resp.go b/type.go similarity index 100% rename from resp.go rename to type.go index 18d310a..1461705 100644 --- a/resp.go +++ b/type.go @@ -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"` @@ -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"`