mirror of
https://github.com/revanced/revanced-api.git
synced 2025-05-04 16:44:24 +02:00
feat: use objects for contact field
This commit is contained in:
parent
ffdb976f2c
commit
5922830e0b
@ -2,15 +2,21 @@ from api.models.donations import DonationFields
|
|||||||
from api.models.socials import SocialFields
|
from api.models.socials import SocialFields
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
class ContactFields(BaseModel):
|
||||||
|
"""
|
||||||
|
Implements the fields for the API owner contact info.
|
||||||
|
"""
|
||||||
|
email: str
|
||||||
|
|
||||||
|
|
||||||
class InfoFields(BaseModel):
|
class InfoFields(BaseModel):
|
||||||
"""
|
"""
|
||||||
Implements the fields for a API owner info.
|
Implements the fields for the API owner info.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
name: str
|
name: str
|
||||||
about: str
|
about: str
|
||||||
contact: dict[str, str]
|
contact: ContactFields
|
||||||
socials: list[SocialFields]
|
socials: list[SocialFields]
|
||||||
donations: DonationFields
|
donations: DonationFields
|
||||||
|
|
||||||
|
@ -116,9 +116,9 @@ links: list[dict[str, str | bool]] = [
|
|||||||
default_info: dict[str, str | list[str | bool] | bool] = {
|
default_info: dict[str, str | list[str | bool] | bool] = {
|
||||||
"name": owner,
|
"name": owner,
|
||||||
"about": "ReVanced was born out of Vanced's discontinuation and it is our goal to continue the legacy of what Vanced left behind. Thanks to ReVanced Patcher, it's possible to create long-lasting patches for nearly any Android app. ReVanced's patching system is designed to allow patches to work on new versions of the apps automatically with bare minimum maintenance.",
|
"about": "ReVanced was born out of Vanced's discontinuation and it is our goal to continue the legacy of what Vanced left behind. Thanks to ReVanced Patcher, it's possible to create long-lasting patches for nearly any Android app. ReVanced's patching system is designed to allow patches to work on new versions of the apps automatically with bare minimum maintenance.",
|
||||||
"contact": [
|
"contact": {
|
||||||
{"method": "mail", "value": "contact@revanced.app"},
|
"email": "contact@revanced.app"
|
||||||
],
|
},
|
||||||
"socials": social_links,
|
"socials": social_links,
|
||||||
"donations": {"wallets": wallets, "links": links},
|
"donations": {"wallets": wallets, "links": links},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user