update deps, make engine code into a lib
All checks were successful
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Successful in 3m54s
mozhi pipeline / Build and publish artifacts (push) Successful in 13m27s

This commit is contained in:
2023-09-09 20:03:14 +05:30
parent 662192ab41
commit 566eb69743
28 changed files with 91 additions and 3537 deletions

View File

@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
@@ -30,7 +29,7 @@ const docTemplate = `{
],
"responses": {
"200": {
"description": "OK",
"description": "success",
"schema": {
"$ref": "#/definitions/utils.List"
}
@@ -52,7 +51,7 @@ const docTemplate = `{
],
"responses": {
"200": {
"description": "OK",
"description": "success",
"schema": {
"$ref": "#/definitions/utils.List"
}
@@ -62,7 +61,7 @@ const docTemplate = `{
},
"/api/translate": {
"get": {
"description": "When engine is set to all, it will return an array of utils.LangOut.",
"description": "When engine is set to all, it will return an array of libmozhi.LangOut.",
"summary": "Translate text",
"parameters": [
{
@@ -96,7 +95,7 @@ const docTemplate = `{
],
"responses": {
"200": {
"description": "OK",
"description": "success",
"schema": {
"$ref": "#/definitions/utils.LangOut"
}

View File

@@ -18,7 +18,7 @@
],
"responses": {
"200": {
"description": "OK",
"description": "success",
"schema": {
"$ref": "#/definitions/utils.List"
}
@@ -40,7 +40,7 @@
],
"responses": {
"200": {
"description": "OK",
"description": "success",
"schema": {
"$ref": "#/definitions/utils.List"
}
@@ -50,7 +50,7 @@
},
"/api/translate": {
"get": {
"description": "When engine is set to all, it will return an array of utils.LangOut.",
"description": "When engine is set to all, it will return an array of libmozhi.LangOut.",
"summary": "Translate text",
"parameters": [
{
@@ -84,7 +84,7 @@
],
"responses": {
"200": {
"description": "OK",
"description": "success",
"schema": {
"$ref": "#/definitions/utils.LangOut"
}

View File

@@ -32,7 +32,7 @@ paths:
type: string
responses:
"200":
description: OK
description: success
schema:
$ref: '#/definitions/utils.List'
summary: Show list of available source languages for engine
@@ -46,13 +46,13 @@ paths:
type: string
responses:
"200":
description: OK
description: success
schema:
$ref: '#/definitions/utils.List'
summary: Show list of available target languages for engine
/api/translate:
get:
description: When engine is set to all, it will return an array of utils.LangOut.
description: When engine is set to all, it will return an array of libmozhi.LangOut.
parameters:
- description: Engine name
in: query
@@ -76,7 +76,7 @@ paths:
type: string
responses:
"200":
description: OK
description: success
schema:
$ref: '#/definitions/utils.LangOut'
summary: Translate text