mirror of
https://codeberg.org/aryak/mozhi
synced 2025-06-04 00:41:07 +05:30
update deps, make engine code into a lib
This commit is contained in:
11
docs/docs.go
11
docs/docs.go
@@ -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"
|
||||
}
|
||||
|
@@ -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"
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user