update deps, make engine code into a lib

This commit is contained in:
Arya Kiran 2023-09-09 20:03:14 +05:30
parent 662192ab41
commit 566eb69743
No known key found for this signature in database
GPG key ID: 842D12BDA50DF120
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"
}