model
This commit is contained in:
@@ -45,6 +45,15 @@ WS | /api/{name}/{item_id} | Websocket 連接對象
|
||||
|
||||
對象模型:
|
||||
```go
|
||||
type ListView struct {
|
||||
Code int `json:"code"`
|
||||
Page int `json:"page"`
|
||||
PageSize int `json:"page_size"`
|
||||
Total int `json:"total"`
|
||||
Next bool `json:"next"`
|
||||
List []interface{} `json:"list"`
|
||||
}
|
||||
|
||||
type Model struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
|
Reference in New Issue
Block a user