模型
This commit is contained in:
35
README.md
35
README.md
@@ -40,9 +40,8 @@
|
||||
模型:
|
||||
|
||||
- [x] GET [/api/models](/api/models) 模型列表(全部)
|
||||
- [x] GET [/api/models?tag=動物](/api/models) 模型列表(動物)
|
||||
- [x] GET [/api/models?tag=場景](/api/models) 模型列表(場景)
|
||||
- [x] GET [/api/models?tag=插畫](/api/models) 模型列表(插畫)
|
||||
- [x] GET [/api/models?user_id=xxx](/api/models?user_id=xxx) 模型列表(指定用戶的)
|
||||
- [x] GET [/api/models?tag=動物](/api/models?tag=xxx) 模型列表(指定標籤的)
|
||||
- [x] GET [/api/models?sort=hot](/api/models?sort=hot) 圖片列表(熱門)
|
||||
- [x] GET [/api/models?sort=createdAt](/api/models?sort=createdAt) 圖片列表(最新)
|
||||
- [x] GET [/api/models?search=布穀鳥](/api/models?search=布穀鳥) 圖片列表(關鍵詞搜索)
|
||||
@@ -52,22 +51,28 @@
|
||||
|
||||
圖像:
|
||||
|
||||
- [x] GET [/api/images](/api/images) 圖片列表
|
||||
- [x] GET [/api/images](/api/images) 圖片列表(全部)
|
||||
- [x] GET [/api/images?user_id=xxx](/api/images?user_id=xxx) 圖片列表(指定用戶的)
|
||||
- [x] GET [/api/images?tag=xxx](/api/images?tag=xxx) 圖片列表(指定標籤的)
|
||||
|
||||
|
||||
任務:
|
||||
|
||||
- [x] GET [/api/tasks](/api/tasks) 任務列表
|
||||
- [x] GET [/api/tasks](/api/tasks) 任務列表(全部任務)
|
||||
- [x] POST [/api/tasks](/api/tasks) 創建任務
|
||||
|
||||
|
||||
參數:
|
||||
|
||||
- [x] GET [/api/params](/api/params) 參數列表
|
||||
- [x] GET [/api/params](/api/params) 參數列表(全部參數)
|
||||
- [x] GET [/api/params/model](/api/params/model) 模型參數
|
||||
|
||||
|
||||
|
||||
賬戶:
|
||||
|
||||
- [x] GET [/api/account](/api/account) 賬戶信息
|
||||
- [x] GET [/api/account](/api/account) 當前賬戶信息
|
||||
- [x] GET [/api/account](/api/account) 當前賬戶信息
|
||||
|
||||
|
||||
服務器:
|
||||
@@ -75,18 +80,8 @@
|
||||
- [x] GET [/api/servers](/api/servers) 服務器列表
|
||||
|
||||
|
||||
列表接口:
|
||||
-----------------------------------------------------------
|
||||
|
||||
- [ ] /api/tags [#標籤詳情](#標籤列表)
|
||||
- [ ] /api/users [#用戶詳情](#用戶列表)
|
||||
- [ ] /api/tasks [#任務詳情](#任務列表)
|
||||
- [x] /api/models [#模型列表](#模型列表)
|
||||
- [x] GET /api/models/{id}
|
||||
- [x] PATCH /api/models/{id}
|
||||
- [x] DELETE /api/models/{id}
|
||||
- [ ] WebSocket /api/models/{id}
|
||||
- [ ] /api/images [#圖片列表](#圖片列表)
|
||||
- [ ] /api/params [#參數列表](#參數列表)
|
||||
|
||||
列表接口-請求方式
|
||||
|
||||
@@ -125,6 +120,10 @@ WS | /api/{name}/{item_id} | Websocket 連接對象
|
||||
* GET查詢以外的操作都必須在headers中攜帶token驗證身份權限
|
||||
* GET查詢私有模型也必須登錄, 否則不會被展示
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
|
||||
對象模型:
|
||||
```go
|
||||
type ListView struct {
|
||||
|
Reference in New Issue
Block a user