feat(wip): 新的客户端协议库

This commit is contained in:
CrescentLeaf
2025-11-08 16:17:58 +08:00
parent 230cc08182
commit 6ee209f9f6
17 changed files with 502 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
type ApiCallbackMessage = {
msg: string,
/**
* 200: 成功
* 400: 伺服器端無法理解客戶端請求
* 401: 需要身份驗證
* 403: 伺服器端拒絕執行客戶端請求
* 404: Not Found
* 500: 伺服器端錯誤
* 501: 伺服器端不支持請求的功能
*/
code: 200 | 400 | 401 | 403 | 404 | 500 | 501 | -1,
data?: { [key: string]: unknown },
}
export default ApiCallbackMessage