-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d807b51
commit 81cf627
Showing
12 changed files
with
272 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Swashbuckle.AspNetCore.Annotations; | ||
|
||
namespace Midjourney.Infrastructure.Dto | ||
{ | ||
/// <summary> | ||
/// Imagine提交参数。 | ||
/// </summary> | ||
[SwaggerSchema("Imagine提交参数")] | ||
public class SubmitModalDTO : BaseSubmitDTO | ||
{ | ||
/// <summary> | ||
/// 提示词。 | ||
/// </summary> | ||
[SwaggerSchema("提示词", Description = "Cat")] | ||
public string Prompt { get; set; } | ||
|
||
/// <summary> | ||
/// 任务ID。 | ||
/// </summary> | ||
[SwaggerSchema("任务ID", Description = "\"1320098173412546\"")] | ||
public string TaskId { get; set; } | ||
|
||
/// <summary> | ||
/// 局部重绘的蒙版base64 | ||
/// </summary> | ||
[SwaggerSchema("图片base64", Description = "data:image/png;base64,xxx")] | ||
public string MaskBase64 { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/Midjourney.Infrastructure/Resources/ApiParams/zoom.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"type": 5, | ||
"application_id": "936929561302675456", | ||
"channel_id": "$channel_id", | ||
"guild_id": "$guild_id", | ||
"data": { | ||
"id": "$message_id", | ||
"custom_id": "MJ::OutpaintCustomZoomModal::$message_hash", | ||
"components": [ | ||
{ | ||
"type": 1, | ||
"components": [ | ||
{ | ||
"type": 4, | ||
"custom_id": "MJ::OutpaintCustomZoomModal::prompt", | ||
"value": "$prompt" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"session_id": "$session_id", | ||
"nonce": "$nonce" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.