Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-ygotournament
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
koishi-plugin-ygotournament
Commits
2894023c
Commit
2894023c
authored
Dec 05, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add constructor in config schema
parent
d19280df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/config.ts
src/config.ts
+3
-0
src/presign/getSignedUrl.ts
src/presign/getSignedUrl.ts
+1
-1
No files found.
src/config.ts
View file @
2894023c
...
...
@@ -23,6 +23,7 @@ export const s3Schema = Schema.object({
@
RegisterSchema
({
description
:
'
发送卡组的置
'
})
export
class
DeckFetchConfig
{
constructor
(
config
:
Partial
<
DeckFetchConfig
>
)
{}
@
DefineSchema
({
description
:
'
S3 配置
'
,
type
:
s3Schema
})
s3
:
S3ClientConfig
;
...
...
@@ -64,6 +65,7 @@ export class DeckFetchConfig {
@
RegisterSchema
({
description
:
'
比赛过程的设置
'
})
export
class
TournamentConfig
{
constructor
(
config
:
Partial
<
TournamentConfig
>
)
{}
@
DefineSchema
({
description
:
'
服务器 API 连接后台,不带任何路径和尾随斜杠
'
,
})
...
...
@@ -122,6 +124,7 @@ export class TournamentConfig {
@
RegisterSchema
()
export
class
YGOTournamentPluginConfig
{
constructor
(
config
:
Partial
<
YGOTournamentPluginConfig
>
)
{}
@
DefineSchema
({
type
:
'
object
'
,
description
:
'
裁判接口作用域
'
,
...
...
src/presign/getSignedUrl.ts
View file @
2894023c
...
...
@@ -17,7 +17,7 @@ export interface RequestPresigningArgumentsWithHeaders
export
const
getSignedUrl
=
async
<
InputTypesUnion
extends
Record
<
string
,
any
>
,
InputType
extends
InputTypesUnion
,
OutputType
extends
MetadataBearer
=
MetadataBearer
OutputType
extends
MetadataBearer
=
MetadataBearer
,
>
(
client
:
Client
<
any
,
InputTypesUnion
,
MetadataBearer
,
any
>
,
command
:
Command
<
InputType
,
OutputType
,
any
,
InputTypesUnion
,
MetadataBearer
>
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment