From aa59561dc13faf8da6590a6be4e41dbfa28ab7e1 Mon Sep 17 00:00:00 2001 From: Fransolet Thomas Date: Wed, 22 Jun 2022 17:00:33 +0200 Subject: [PATCH] Update article --- manager_api/doc/ArticleDTO.md | 2 -- manager_api/lib/model/article_dto.dart | 20 +------------------- manager_api/swagger.yaml | 10 ---------- manager_api/swagger.yaml.bak | 2 ++ 4 files changed, 3 insertions(+), 31 deletions(-) diff --git a/manager_api/doc/ArticleDTO.md b/manager_api/doc/ArticleDTO.md index 7fc4abe..c3cb9d7 100644 --- a/manager_api/doc/ArticleDTO.md +++ b/manager_api/doc/ArticleDTO.md @@ -8,8 +8,6 @@ import 'package:managerapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**description** | [**List**](TranslationDTO.md) | | [optional] [default to const []] **content** | [**List**](TranslationDTO.md) | | [optional] [default to const []] **qrCode** | **String** | | [optional] **isContentTop** | **bool** | | [optional] diff --git a/manager_api/lib/model/article_dto.dart b/manager_api/lib/model/article_dto.dart index b64218f..763934b 100644 --- a/manager_api/lib/model/article_dto.dart +++ b/manager_api/lib/model/article_dto.dart @@ -12,8 +12,6 @@ part of openapi.api; class ArticleDTO { /// Returns a new [ArticleDTO] instance. ArticleDTO({ - this.title, - this.description, this.content, this.qrCode, this.isContentTop, @@ -22,10 +20,6 @@ class ArticleDTO { this.images, }); - List title; - - List description; - List content; String qrCode; @@ -40,8 +34,6 @@ class ArticleDTO { @override bool operator ==(Object other) => identical(this, other) || other is ArticleDTO && - other.title == title && - other.description == description && other.content == content && other.qrCode == qrCode && other.isContentTop == isContentTop && @@ -51,8 +43,6 @@ class ArticleDTO { @override int get hashCode => - (title == null ? 0 : title.hashCode) + - (description == null ? 0 : description.hashCode) + (content == null ? 0 : content.hashCode) + (qrCode == null ? 0 : qrCode.hashCode) + (isContentTop == null ? 0 : isContentTop.hashCode) + @@ -61,16 +51,10 @@ class ArticleDTO { (images == null ? 0 : images.hashCode); @override - String toString() => 'ArticleDTO[title=$title, description=$description, content=$content, qrCode=$qrCode, isContentTop=$isContentTop, audioId=$audioId, isReadAudioAuto=$isReadAudioAuto, images=$images]'; + String toString() => 'ArticleDTO[content=$content, qrCode=$qrCode, isContentTop=$isContentTop, audioId=$audioId, isReadAudioAuto=$isReadAudioAuto, images=$images]'; Map toJson() { final json = {}; - if (title != null) { - json[r'title'] = title; - } - if (description != null) { - json[r'description'] = description; - } if (content != null) { json[r'content'] = content; } @@ -97,8 +81,6 @@ class ArticleDTO { static ArticleDTO fromJson(Map json) => json == null ? null : ArticleDTO( - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), content: TranslationDTO.listFromJson(json[r'content']), qrCode: json[r'qrCode'], isContentTop: json[r'isContentTop'], diff --git a/manager_api/swagger.yaml b/manager_api/swagger.yaml index efff24d..e739b39 100644 --- a/manager_api/swagger.yaml +++ b/manager_api/swagger.yaml @@ -1829,16 +1829,6 @@ components: type: object additionalProperties: false properties: - title: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - description: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' content: type: array nullable: true diff --git a/manager_api/swagger.yaml.bak b/manager_api/swagger.yaml.bak index 8bad867..efff24d 100644 --- a/manager_api/swagger.yaml.bak +++ b/manager_api/swagger.yaml.bak @@ -1420,6 +1420,8 @@ components: format: date-time isMobile: type: boolean + isTablet: + type: boolean isOffline: type: boolean ExportConfigurationDTO: