# 伺服器 ###### tags: `Server` ## 伺服器架構: - https://whimsical.com/PfwsLwn6HfF4AE3mWhcZ2L ## 學習資源: - [成為看起來很強的後端](https://youtube.com/playlist?list=PLS5AiLcCHgNxd341NwuY9EOpVvY5Z8VOs) - [PHP + MYSQL 教學影片](https://youtube.com/playlist?list=PLy8_9NKBm_n1OobqwIQjkMgzC-rDx3DPs) ## 可能的連接方式 ### 1. Socket ### 2. MQTTzz - [簡介](https://swf.com.tw/?p=1002) - [FastAPI 的套件](https://github.com/sabuhish/fastapi-mqtt) ## 前端需求的檔案 - 帳號資訊 get 使用者資料 { account: user_name: region: time_zone: // 這個可能不用 music_account: // 預設是YT所以只需要帳號 如果未來多平台支援會獨立成一個API device_count: device: [ [device_id], [device_id], ... ] // 應該會有參數去判斷說這個使用者是否是開發人員 // 目前還沒有完整想法 } set 使用者資料 - 修改帳號 { old_account: new_account: verification_code: // 後端會產生圖片傳到前端 } - 修改地區&時區 { account: region: time_zone: } - 音箱資訊 { device_id: // 這是唯一的 device_name: two_channel: true/false link_device: [device_id] language: system_volume: media_volume: } - 新增裝置 { account: region: time_zone: device_name: two_channel: true/false <!--要改掉了歐~~--> link_device: [device_id] language: } - 刪除音箱 { account: device_id }
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up