2021-11-01 16:42:52 -06:00
|
|
|
from sanic_openapi import doc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ArchiveDict:
|
|
|
|
|
id = doc.Integer()
|
|
|
|
|
url_id = doc.Integer()
|
|
|
|
|
domain_id = doc.Integer()
|
|
|
|
|
singlefile_path = doc.String()
|
|
|
|
|
readability_path = doc.String()
|
|
|
|
|
readability_json_path = doc.String()
|
|
|
|
|
readability_txt_path = doc.String()
|
|
|
|
|
screenshot_path = doc.String()
|
|
|
|
|
title = doc.String()
|
|
|
|
|
archive_datetime = doc.DateTime()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DomainDict:
|
|
|
|
|
id = doc.Integer()
|
|
|
|
|
domain = doc.String()
|
|
|
|
|
|
|
|
|
|
|
2021-12-31 20:14:14 -07:00
|
|
|
class ArchiveSearchRequest:
|
|
|
|
|
search_str = doc.String()
|
|
|
|
|
domain = doc.String()
|
|
|
|
|
offset = doc.Integer()
|
|
|
|
|
limit = doc.Integer()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ArchiveSearchResponse:
|
|
|
|
|
videos = doc.List(ArchiveDict)
|
|
|
|
|
totals = doc.Dictionary()
|