chore: 對 ApiCallbackMessage 的狀態碼進行注解
This commit is contained in:
@@ -1,5 +1,14 @@
|
|||||||
type ApiCallbackMessage = {
|
type ApiCallbackMessage = {
|
||||||
msg: string,
|
msg: string,
|
||||||
code: 200 | 400 | 401 | 403 | 404 | 500 | 501
|
/**
|
||||||
|
* 200: 成功
|
||||||
|
* 400: 伺服器端無法理解客戶端請求
|
||||||
|
* 401: 需要身份驗證
|
||||||
|
* 403: 伺服器端拒絕執行客戶端請求
|
||||||
|
* 404: Not Found
|
||||||
|
* 500: 伺服器端錯誤
|
||||||
|
* 501: 伺服器端不支持請求的功能
|
||||||
|
*/
|
||||||
|
code: 200 | 400 | 401 | 403 | 404 | 500 | 501,
|
||||||
}
|
}
|
||||||
export default ApiCallbackMessage
|
export default ApiCallbackMessage
|
||||||
|
|||||||
Reference in New Issue
Block a user