"""123云盘凭证管理 v1.0.0 — Cookie直传"""


class Pan123CredentialManager:
    def __init__(self, config):
        self.config = config

    def validate(self) -> bool:
        return bool(self.config.cookie and len(self.config.cookie) >= 30)

    def get_headers(self) -> dict:
        return {
            "Cookie": self.config.cookie,
            "Referer": "https://www.123pan.com/",
            "Origin": "https://www.123pan.com",
        }
