api article featured field
This commit is contained in:
1 parent
d5390fa99a
commit
1544fae988
1 file changed
+3
@@ -53,6 +53,7 @@ export default class Article {
|
|||||||
public version: any
|
public version: any
|
||||||
public preview: any
|
public preview: any
|
||||||
public url: any
|
public url: any
|
||||||
|
public featured: boolean
|
||||||
|
|
||||||
constructor(data) {
|
constructor(data) {
|
||||||
this.id = data.id
|
this.id = data.id
|
||||||
@@ -70,6 +71,7 @@ export default class Article {
|
|||||||
this.file = data.file
|
this.file = data.file
|
||||||
this.version = data.version
|
this.version = data.version
|
||||||
this.preview = data.preview
|
this.preview = data.preview
|
||||||
|
this.featured = data.featured || false
|
||||||
|
|
||||||
this.url = `/article/${this.id}`
|
this.url = `/article/${this.id}`
|
||||||
}
|
}
|
||||||
@@ -92,6 +94,7 @@ export default class Article {
|
|||||||
version: this.version,
|
version: this.version,
|
||||||
preview: this.preview,
|
preview: this.preview,
|
||||||
url: this.url,
|
url: this.url,
|
||||||
|
featured: this.featured,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user