From 1b10c82ecc4e07a00bd82800cb2dd605d1dddc3a Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Sat, 15 Jan 2022 13:34:10 -0800 Subject: [PATCH] updating code layout --- .../internal/model_accounts_import_body.go | 18 ------- net/server/internal/model_announce.go | 15 ------ net/server/internal/model_app.go | 19 ------- net/server/internal/model_app_data.go | 21 -------- net/server/internal/model_article.go | 37 -------------- .../internal/model_article_id_assets_body.go | 18 ------- .../internal/model_article_id_subject_body.go | 17 ------- net/server/internal/models.go | 50 +++++++++++++++++++ 8 files changed, 50 insertions(+), 145 deletions(-) delete mode 100644 net/server/internal/model_accounts_import_body.go delete mode 100644 net/server/internal/model_announce.go delete mode 100644 net/server/internal/model_app.go delete mode 100644 net/server/internal/model_app_data.go delete mode 100644 net/server/internal/model_article.go delete mode 100644 net/server/internal/model_article_id_assets_body.go delete mode 100644 net/server/internal/model_article_id_subject_body.go diff --git a/net/server/internal/model_accounts_import_body.go b/net/server/internal/model_accounts_import_body.go deleted file mode 100644 index 0cc3f918..00000000 --- a/net/server/internal/model_accounts_import_body.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * DataBag - * - * DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations. - * - * API version: 0.0.1 - * Contact: roland.osborne@gmail.com - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package databag -import ( - "os" -) - -type AccountsImportBody struct { - - FileName **os.File `json:"fileName,omitempty"` -} diff --git a/net/server/internal/model_announce.go b/net/server/internal/model_announce.go deleted file mode 100644 index 88b933a9..00000000 --- a/net/server/internal/model_announce.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * DataBag - * - * DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations. - * - * API version: 0.0.1 - * Contact: roland.osborne@gmail.com - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package databag - -type Announce struct { - - AppToken string `json:"appToken"` -} diff --git a/net/server/internal/model_app.go b/net/server/internal/model_app.go deleted file mode 100644 index b25a1720..00000000 --- a/net/server/internal/model_app.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * DataBag - * - * DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations. - * - * API version: 0.0.1 - * Contact: roland.osborne@gmail.com - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package databag - -type App struct { - - AppId string `json:"appId"` - - AppData *AppData `json:"appData"` - - Attached int32 `json:"attached"` -} diff --git a/net/server/internal/model_app_data.go b/net/server/internal/model_app_data.go deleted file mode 100644 index 06667b4a..00000000 --- a/net/server/internal/model_app_data.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * DataBag - * - * DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations. - * - * API version: 0.0.1 - * Contact: roland.osborne@gmail.com - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package databag - -type AppData struct { - - Name string `json:"name,omitempty"` - - Description string `json:"description,omitempty"` - - Url string `json:"url,omitempty"` - - Image string `json:"image,omitempty"` -} diff --git a/net/server/internal/model_article.go b/net/server/internal/model_article.go deleted file mode 100644 index 02fdcbb3..00000000 --- a/net/server/internal/model_article.go +++ /dev/null @@ -1,37 +0,0 @@ -/* - * DataBag - * - * DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations. - * - * API version: 0.0.1 - * Contact: roland.osborne@gmail.com - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package databag - -type Article struct { - - ArticleId string `json:"articleId"` - - ArticleRevision int64 `json:"articleRevision"` - - Type_ string `json:"type"` - - Data string `json:"data"` - - Created int32 `json:"created"` - - Modified int32 `json:"modified"` - - Status string `json:"status"` - - Labels []string `json:"labels"` - - Groups []string `json:"groups,omitempty"` - - TagCount int32 `json:"tagCount"` - - TagUpdate int32 `json:"tagUpdate,omitempty"` - - TagRevision int64 `json:"tagRevision"` -} diff --git a/net/server/internal/model_article_id_assets_body.go b/net/server/internal/model_article_id_assets_body.go deleted file mode 100644 index 51ab9ef6..00000000 --- a/net/server/internal/model_article_id_assets_body.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * DataBag - * - * DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations. - * - * API version: 0.0.1 - * Contact: roland.osborne@gmail.com - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package databag -import ( - "os" -) - -type ArticleIdAssetsBody struct { - - FileName **os.File `json:"fileName,omitempty"` -} diff --git a/net/server/internal/model_article_id_subject_body.go b/net/server/internal/model_article_id_subject_body.go deleted file mode 100644 index 54e98f0a..00000000 --- a/net/server/internal/model_article_id_subject_body.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * DataBag - * - * DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations. - * - * API version: 0.0.1 - * Contact: roland.osborne@gmail.com - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package databag - -type ArticleIdSubjectBody struct { - - Type_ string `json:"type"` - - Data string `json:"data"` -} diff --git a/net/server/internal/models.go b/net/server/internal/models.go index 3de28557..b1e78123 100644 --- a/net/server/internal/models.go +++ b/net/server/internal/models.go @@ -1,5 +1,9 @@ package databag +import ( + "os" +) + type Account struct { AccountId string `json:"accountId"` Profile *Profile `json:"profile"` @@ -13,3 +17,49 @@ type AccountStatus struct { ForwardingAddress string `json:"forwardingAddress"` } +type AccountsImportBody struct { + FileName **os.File `json:"fileName,omitempty"` +} + +type Announce struct { + AppToken string `json:"appToken"` +} + +type App struct { + AppId string `json:"appId"` + AppData *AppData `json:"appData"` + Attached int32 `json:"attached"` +} + +type AppData struct { + Name string `json:"name,omitempty"` + Description string `json:"description,omitempty"` + Url string `json:"url,omitempty"` + Image string `json:"image,omitempty"` +} + +type Article struct { + ArticleId string `json:"articleId"` + ArticleRevision int64 `json:"articleRevision"` + Type_ string `json:"type"` + Data string `json:"data"` + Created int32 `json:"created"` + Modified int32 `json:"modified"` + Status string `json:"status"` + Labels []string `json:"labels"` + Groups []string `json:"groups,omitempty"` + TagCount int32 `json:"tagCount"` + TagUpdate int32 `json:"tagUpdate,omitempty"` + TagRevision int64 `json:"tagRevision"` +} + +type ArticleIdAssetsBody struct { + FileName **os.File `json:"fileName,omitempty"` +} + +type ArticleIdSubjectBody struct { + Type_ string `json:"type"` + Data string `json:"data"` +} + +