mirror of
https://github.com/linux-do/new-api.git
synced 2025-10-21 14:53:41 +08:00
feat: 初步重构完成
This commit is contained in:
20
dto/dalle.go
Normal file
20
dto/dalle.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package dto
|
||||
|
||||
type ImageRequest struct {
|
||||
Model string `json:"model"`
|
||||
Prompt string `json:"prompt" binding:"required"`
|
||||
N int `json:"n,omitempty"`
|
||||
Size string `json:"size,omitempty"`
|
||||
Quality string `json:"quality,omitempty"`
|
||||
ResponseFormat string `json:"response_format,omitempty"`
|
||||
Style string `json:"style,omitempty"`
|
||||
User string `json:"user,omitempty"`
|
||||
}
|
||||
|
||||
type ImageResponse struct {
|
||||
Created int `json:"created"`
|
||||
Data []struct {
|
||||
Url string `json:"url"`
|
||||
B64Json string `json:"b64_json"`
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user