22 lines
513 B
Plaintext
22 lines
513 B
Plaintext
syntax = "v1"
|
|
|
|
type Status {
|
|
Code int64 `json:"code"` // 狀態碼
|
|
Message string `json:"message"` // 訊息
|
|
Data interface{} `json:"data,omitempty"` // 可選的數據,當有返回時才出現
|
|
Error interface{} `json:"error,omitempty"` // 可選的錯誤信息
|
|
}
|
|
|
|
type BaseResponse {
|
|
Status Status `json:"status"` // 狀態
|
|
Data interface{} `json:"data"` // 資料
|
|
}
|
|
|
|
type VerifyHeader {
|
|
Token string `header:"token" validate:"required"`
|
|
}
|
|
|
|
type RespOK {}
|
|
|
|
import "member.api"
|