Update article
This commit is contained in:
parent
2b145f757c
commit
aa59561dc1
@ -8,8 +8,6 @@ import 'package:managerapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
|
||||||
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
|
||||||
**content** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**content** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**qrCode** | **String** | | [optional]
|
**qrCode** | **String** | | [optional]
|
||||||
**isContentTop** | **bool** | | [optional]
|
**isContentTop** | **bool** | | [optional]
|
||||||
|
|||||||
@ -12,8 +12,6 @@ part of openapi.api;
|
|||||||
class ArticleDTO {
|
class ArticleDTO {
|
||||||
/// Returns a new [ArticleDTO] instance.
|
/// Returns a new [ArticleDTO] instance.
|
||||||
ArticleDTO({
|
ArticleDTO({
|
||||||
this.title,
|
|
||||||
this.description,
|
|
||||||
this.content,
|
this.content,
|
||||||
this.qrCode,
|
this.qrCode,
|
||||||
this.isContentTop,
|
this.isContentTop,
|
||||||
@ -22,10 +20,6 @@ class ArticleDTO {
|
|||||||
this.images,
|
this.images,
|
||||||
});
|
});
|
||||||
|
|
||||||
List<TranslationDTO> title;
|
|
||||||
|
|
||||||
List<TranslationDTO> description;
|
|
||||||
|
|
||||||
List<TranslationDTO> content;
|
List<TranslationDTO> content;
|
||||||
|
|
||||||
String qrCode;
|
String qrCode;
|
||||||
@ -40,8 +34,6 @@ class ArticleDTO {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ArticleDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is ArticleDTO &&
|
||||||
other.title == title &&
|
|
||||||
other.description == description &&
|
|
||||||
other.content == content &&
|
other.content == content &&
|
||||||
other.qrCode == qrCode &&
|
other.qrCode == qrCode &&
|
||||||
other.isContentTop == isContentTop &&
|
other.isContentTop == isContentTop &&
|
||||||
@ -51,8 +43,6 @@ class ArticleDTO {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
(title == null ? 0 : title.hashCode) +
|
|
||||||
(description == null ? 0 : description.hashCode) +
|
|
||||||
(content == null ? 0 : content.hashCode) +
|
(content == null ? 0 : content.hashCode) +
|
||||||
(qrCode == null ? 0 : qrCode.hashCode) +
|
(qrCode == null ? 0 : qrCode.hashCode) +
|
||||||
(isContentTop == null ? 0 : isContentTop.hashCode) +
|
(isContentTop == null ? 0 : isContentTop.hashCode) +
|
||||||
@ -61,16 +51,10 @@ class ArticleDTO {
|
|||||||
(images == null ? 0 : images.hashCode);
|
(images == null ? 0 : images.hashCode);
|
||||||
|
|
||||||
@override
|
@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<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (title != null) {
|
|
||||||
json[r'title'] = title;
|
|
||||||
}
|
|
||||||
if (description != null) {
|
|
||||||
json[r'description'] = description;
|
|
||||||
}
|
|
||||||
if (content != null) {
|
if (content != null) {
|
||||||
json[r'content'] = content;
|
json[r'content'] = content;
|
||||||
}
|
}
|
||||||
@ -97,8 +81,6 @@ class ArticleDTO {
|
|||||||
static ArticleDTO fromJson(Map<String, dynamic> json) => json == null
|
static ArticleDTO fromJson(Map<String, dynamic> json) => json == null
|
||||||
? null
|
? null
|
||||||
: ArticleDTO(
|
: ArticleDTO(
|
||||||
title: TranslationDTO.listFromJson(json[r'title']),
|
|
||||||
description: TranslationDTO.listFromJson(json[r'description']),
|
|
||||||
content: TranslationDTO.listFromJson(json[r'content']),
|
content: TranslationDTO.listFromJson(json[r'content']),
|
||||||
qrCode: json[r'qrCode'],
|
qrCode: json[r'qrCode'],
|
||||||
isContentTop: json[r'isContentTop'],
|
isContentTop: json[r'isContentTop'],
|
||||||
|
|||||||
@ -1829,16 +1829,6 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
title:
|
|
||||||
type: array
|
|
||||||
nullable: true
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/TranslationDTO'
|
|
||||||
description:
|
|
||||||
type: array
|
|
||||||
nullable: true
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/TranslationDTO'
|
|
||||||
content:
|
content:
|
||||||
type: array
|
type: array
|
||||||
nullable: true
|
nullable: true
|
||||||
|
|||||||
@ -1420,6 +1420,8 @@ components:
|
|||||||
format: date-time
|
format: date-time
|
||||||
isMobile:
|
isMobile:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
isTablet:
|
||||||
|
type: boolean
|
||||||
isOffline:
|
isOffline:
|
||||||
type: boolean
|
type: boolean
|
||||||
ExportConfigurationDTO:
|
ExportConfigurationDTO:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user