Refactor: migrate discordbot
All checks were successful
Go test / run-go-vet (push) Successful in 20s
Go test / check-swagger-up-to-date (push) Successful in 9s
Go test / run-go-test (push) Successful in 47s
Go test / cleanup-go-test (push) Successful in 4s
Go test / release-image (push) Successful in 3m35s

This commit is contained in:
2025-12-13 02:03:01 +08:00
parent 0fc8f1f08c
commit 47f09b733a
23 changed files with 613 additions and 66 deletions

View File

@@ -55,7 +55,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/api.getAliasesOutputAlias"
"$ref": "#/definitions/api.GetAliasesOutputAlias"
}
}
},
@@ -186,7 +186,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/api.getImagesOutputImage"
"$ref": "#/definitions/api.GetImagesOutputImage"
}
}
},
@@ -208,7 +208,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/auth.postGenLoginUrlInput"
"$ref": "#/definitions/auth.PostGenLoginUrlInput"
}
}
],
@@ -216,7 +216,7 @@ const docTemplate = `{
"200": {
"description": "Payload",
"schema": {
"$ref": "#/definitions/auth.postGenLoginUrlOutput"
"$ref": "#/definitions/auth.PostGenLoginUrlOutput"
}
},
"400": {
@@ -247,7 +247,7 @@ const docTemplate = `{
}
},
"definitions": {
"api.getAliasesOutputAlias": {
"api.GetAliasesOutputAlias": {
"type": "object",
"properties": {
"id": {
@@ -258,7 +258,7 @@ const docTemplate = `{
}
}
},
"api.getImagesOutputImage": {
"api.GetImagesOutputImage": {
"type": "object",
"properties": {
"aliasesIds": {
@@ -309,7 +309,7 @@ const docTemplate = `{
}
}
},
"auth.postGenLoginUrlInput": {
"auth.PostGenLoginUrlInput": {
"type": "object",
"properties": {
"userId": {
@@ -317,7 +317,7 @@ const docTemplate = `{
}
}
},
"auth.postGenLoginUrlOutput": {
"auth.PostGenLoginUrlOutput": {
"type": "object",
"properties": {
"loginUrl": {