| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- package dto
- type MidjourneyRequest struct {
- Prompt string `json:"prompt"`
- CustomId string `json:"customId"`
- BotType string `json:"botType"`
- NotifyHook string `json:"notifyHook"`
- Action string `json:"action"`
- Index int `json:"index"`
- State string `json:"state"`
- TaskId string `json:"taskId"`
- Base64Array []string `json:"base64Array"`
- Content string `json:"content"`
- MaskBase64 string `json:"maskBase64"`
- }
- type MidjourneyResponse struct {
- Code int `json:"code"`
- Description string `json:"description"`
- Properties interface{} `json:"properties"`
- Result string `json:"result"`
- }
- type MidjourneyDto struct {
- MjId string `json:"id"`
- Action string `json:"action"`
- CustomId string `json:"customId"`
- Prompt string `json:"prompt"`
- PromptEn string `json:"promptEn"`
- Description string `json:"description"`
- State string `json:"state"`
- SubmitTime int64 `json:"submitTime"`
- StartTime int64 `json:"startTime"`
- FinishTime int64 `json:"finishTime"`
- ImageUrl string `json:"imageUrl"`
- Status string `json:"status"`
- Progress string `json:"progress"`
- FailReason string `json:"failReason"`
- Buttons any `json:"buttons"`
- MaskBase64 string `json:"maskBase64"`
- }
- type MidjourneyStatus struct {
- Status int `json:"status"`
- }
- type MidjourneyWithoutStatus struct {
- Id int `json:"id"`
- Code int `json:"code"`
- UserId int `json:"user_id" gorm:"index"`
- Action string `json:"action"`
- MjId string `json:"mj_id" gorm:"index"`
- Prompt string `json:"prompt"`
- PromptEn string `json:"prompt_en"`
- Description string `json:"description"`
- State string `json:"state"`
- SubmitTime int64 `json:"submit_time"`
- StartTime int64 `json:"start_time"`
- FinishTime int64 `json:"finish_time"`
- ImageUrl string `json:"image_url"`
- Progress string `json:"progress"`
- FailReason string `json:"fail_reason"`
- ChannelId int `json:"channel_id"`
- }
- type ActionButton struct {
- CustomId any `json:"customId"`
- Emoji any `json:"emoji"`
- Label any `json:"label"`
- Type any `json:"type"`
- Style any `json:"style"`
- }
|