{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/oauth/authorize":{"get":{"summary":"Authorize","operationId":"authorize_oauth_authorize_get","parameters":[{"name":"response_type","in":"query","required":true,"schema":{"type":"string","description":"授权类型","title":"Response Type"},"description":"授权类型"},{"name":"client_id","in":"query","required":true,"schema":{"type":"string","description":"客户端ID","title":"Client Id"},"description":"客户端ID"},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","description":"重定向地址","title":"Redirect Uri"},"description":"重定向地址"},{"name":"state","in":"query","required":false,"schema":{"type":"string","description":"状态","title":"State"},"description":"状态"},{"name":"scope","in":"query","required":false,"schema":{"type":"string","description":"授权范围","title":"Scope"},"description":"授权范围"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/callback":{"get":{"summary":"Callback","operationId":"callback_oauth_callback_get","parameters":[{"name":"response_type","in":"query","required":true,"schema":{"type":"string","description":"授权类型","title":"Response Type"},"description":"授权类型"},{"name":"client_id","in":"query","required":true,"schema":{"type":"string","description":"客户端ID","title":"Client Id"},"description":"客户端ID"},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","description":"重定向地址","title":"Redirect Uri"},"description":"重定向地址"},{"name":"state","in":"query","required":false,"schema":{"type":"string","description":"状态","title":"State"},"description":"状态"},{"name":"scope","in":"query","required":false,"schema":{"type":"string","description":"授权范围","title":"Scope"},"description":"授权范围"},{"name":"login_token","in":"cookie","required":false,"schema":{"type":"string","title":"Login Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/token":{"post":{"summary":"Token Handler","operationId":"token_handler_oauth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/userinfo":{"get":{"summary":"Userinfo","operationId":"userinfo_oauth_userinfo_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/revoke":{"post":{"summary":"Revoke Token","operationId":"revoke_token_oauth_revoke_post","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}},{"name":"token_type_hint","in":"query","required":false,"schema":{"type":"string","default":"access_token","title":"Token Type Hint"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/.well-known/oauth-authorization-server":{"get":{"summary":"Well Known","operationId":"well_known_oauth__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/verify/email":{"get":{"summary":"Verify Account","operationId":"verify_account_api_verify_email_get","parameters":[{"name":"userid","in":"query","required":true,"schema":{"type":"string","title":"Userid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/verify/phone/send":{"post":{"summary":"Send Phone Verify","operationId":"send_phone_verify_api_verify_phone_send_post","parameters":[{"name":"userid","in":"query","required":true,"schema":{"type":"string","title":"Userid"}},{"name":"x-p","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-P"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCode"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/verify/phone":{"post":{"summary":"Verify Phone","operationId":"verify_phone_api_verify_phone_post","parameters":[{"name":"userid","in":"query","required":true,"schema":{"type":"string","title":"Userid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyCode"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sso/login":{"post":{"summary":"Login Handler","operationId":"login_handler_api_sso_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Login"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sso/query":{"get":{"summary":"Query Handler","operationId":"query_handler_api_sso_query_get","parameters":[{"name":"login_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sso/logout":{"post":{"summary":"Logout Handler","operationId":"logout_handler_api_sso_logout_post","parameters":[{"name":"login_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sso/delete":{"post":{"summary":"Delete Handler","operationId":"delete_handler_api_sso_delete_post","parameters":[{"name":"x-p","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-P"}},{"name":"login_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/email":{"get":{"summary":"Get Page","operationId":"get_page_email_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/email/login":{"post":{"summary":"Login Handler","operationId":"login_handler_email_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/email/register":{"post":{"summary":"Register Handler","operationId":"register_handler_email_register_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/email/send":{"post":{"summary":"Send Handler","operationId":"send_handler_email_send_post","parameters":[{"name":"x-p","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-P"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/mcunlock":{"post":{"summary":"Process And Zip","operationId":"process_and_zip_api_tools_mcunlock_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_process_and_zip_api_tools_mcunlock_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wallpaper/{wp_type}":{"get":{"summary":"Get Wallpaper","operationId":"get_wallpaper_api_wallpaper__wp_type__get","parameters":[{"name":"wp_type","in":"path","required":true,"schema":{"type":"string","title":"Wp Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wallpaper/dark/{wp_type}":{"get":{"summary":"Get Dark Wallpaper","operationId":"get_dark_wallpaper_api_wallpaper_dark__wp_type__get","parameters":[{"name":"wp_type","in":"path","required":true,"schema":{"type":"string","title":"Wp Type"}},{"name":"style","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"night-scenes","title":"Style"}},{"name":"max_mean","in":"query","required":false,"schema":{"type":"number","default":80.0,"title":"Max Mean"}},{"name":"max_bright","in":"query","required":false,"schema":{"type":"number","default":0.03,"title":"Max Bright"}},{"name":"max_hotspot","in":"query","required":false,"schema":{"type":"number","default":150,"title":"Max Hotspot"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/email/verify":{"post":{"summary":"Verify Handler","operationId":"verify_handler_email_verify_post","parameters":[{"name":"x-p","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-P"}},{"name":"login_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmail"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/modify/email":{"post":{"summary":"Modify Email Handler","operationId":"modify_email_handler_user_modify_email_post","parameters":[{"name":"login_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifyEmail"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/modify/password":{"post":{"summary":"Modify Password Handler","operationId":"modify_password_handler_user_modify_password_post","parameters":[{"name":"login_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifyPassword"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/modify/username":{"post":{"summary":"Modify Username Handler","operationId":"modify_username_handler_user_modify_username_post","parameters":[{"name":"login_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifyUsername"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/modify/avatar":{"post":{"summary":"Modify Avatar Handler","operationId":"modify_avatar_handler_user_modify_avatar_post","parameters":[{"name":"login_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_modify_avatar_handler_user_modify_avatar_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forgot/send":{"post":{"summary":"Send Handler","operationId":"send_handler_forgot_send_post","parameters":[{"name":"x-p","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-P"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forgot/confirm":{"post":{"summary":"Confirm Handler","operationId":"confirm_handler_forgot_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Confirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_modify_avatar_handler_user_modify_avatar_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_modify_avatar_handler_user_modify_avatar_post"},"Body_process_and_zip_api_tools_mcunlock_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_process_and_zip_api_tools_mcunlock_post"},"Confirm":{"properties":{"code":{"type":"string","title":"Code"},"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["code","email","password"],"title":"Confirm"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Login":{"properties":{"username":{"type":"string","title":"Username"},"md5password":{"type":"string","title":"Md5Password"}},"type":"object","required":["username","md5password"],"title":"Login"},"ModifyEmail":{"properties":{"email":{"type":"string","title":"Email"},"code":{"type":"string","title":"Code"}},"type":"object","required":["email","code"],"title":"ModifyEmail"},"ModifyPassword":{"properties":{"password":{"type":"string","title":"Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["password","new_password"],"title":"ModifyPassword"},"ModifyUsername":{"properties":{"username":{"type":"string","title":"Username"}},"type":"object","required":["username"],"title":"ModifyUsername"},"SendCode":{"properties":{"enc_phone":{"type":"string","title":"Enc Phone"}},"type":"object","required":["enc_phone"],"title":"SendCode"},"SendRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"SendRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyCode":{"properties":{"code":{"type":"string","title":"Code"},"enc_phone":{"type":"string","title":"Enc Phone"}},"type":"object","required":["code","enc_phone"],"title":"VerifyCode"},"VerifyEmail":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"VerifyEmail"}}}}