i18n: Translate all Chinese to English across the codebase
Translate Chinese comments, log/error messages, validator labels and Swagger annotations to English throughout the source code, generated Swagger docs, config files and CI workflows. Make the English README primary: README.md now holds the English docs and README_EN.md holds the Chinese version, with cross-language links updated accordingly. Note: the generated docs/ swagger files were translated in place; run `go generate ./...` (swag init) to regenerate them from the now-English annotations when a Go toolchain is available. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+109
-109
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "接口",
|
||||
"title": "管理系统API",
|
||||
"description": "API",
|
||||
"title": "management systemAPI",
|
||||
"contact": {},
|
||||
"version": "1.0"
|
||||
},
|
||||
@@ -10,7 +10,7 @@
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"description": "首页",
|
||||
"description": "home",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -18,9 +18,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"首页"
|
||||
"home"
|
||||
],
|
||||
"summary": "首页",
|
||||
"summary": "home",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -44,7 +44,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "地址列表",
|
||||
"description": "address list",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -52,9 +52,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址"
|
||||
"address"
|
||||
],
|
||||
"summary": "地址列表",
|
||||
"summary": "address list",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -76,7 +76,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "地址更新",
|
||||
"description": "address update",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -84,12 +84,12 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址"
|
||||
"address"
|
||||
],
|
||||
"summary": "地址更新",
|
||||
"summary": "address update",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "地址表单",
|
||||
"description": "address form",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -121,7 +121,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "添加地址",
|
||||
"description": "add address",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -129,9 +129,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "添加地址",
|
||||
"summary": "add address",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -162,7 +162,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "删除地址",
|
||||
"description": "delete address",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -170,9 +170,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "删除地址",
|
||||
"summary": "delete address",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -205,7 +205,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "更新地址",
|
||||
"description": "update address",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -213,9 +213,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "更新地址",
|
||||
"summary": "update address",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -248,7 +248,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "地址",
|
||||
"description": "address",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -256,19 +256,19 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "地址列表",
|
||||
"summary": "address list",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "页码",
|
||||
"description": "page number",
|
||||
"name": "current",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "每页数量",
|
||||
"description": "items per page",
|
||||
"name": "pageSize",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -302,7 +302,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "个人地址",
|
||||
"description": "personal address",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -310,9 +310,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "个人地址",
|
||||
"summary": "personal address",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "string valid",
|
||||
@@ -346,7 +346,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "设置",
|
||||
"description": "settings",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -354,9 +354,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "设置",
|
||||
"summary": "settings",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "string valid",
|
||||
@@ -390,7 +390,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "共享",
|
||||
"description": "shared",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -398,19 +398,19 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "共享地址簿",
|
||||
"summary": "shared address book",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "页码",
|
||||
"description": "page number",
|
||||
"name": "current",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "每页数量",
|
||||
"description": "items per page",
|
||||
"name": "pageSize",
|
||||
"in": "query"
|
||||
}
|
||||
@@ -438,7 +438,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "标签",
|
||||
"description": "tag",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -446,9 +446,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "标签添加",
|
||||
"summary": "add tag",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -481,7 +481,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "标签",
|
||||
"description": "tag",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -489,9 +489,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "标签重命名",
|
||||
"summary": "rename tag",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -524,7 +524,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "标签",
|
||||
"description": "tag",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -532,9 +532,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "标签修改颜色",
|
||||
"summary": "change tag color",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -567,7 +567,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "标签",
|
||||
"description": "tag",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -575,9 +575,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "标签删除",
|
||||
"summary": "delete tag",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -610,7 +610,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "标签",
|
||||
"description": "tag",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -618,9 +618,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"地址[Personal]"
|
||||
"address[Personal]"
|
||||
],
|
||||
"summary": "标签",
|
||||
"summary": "tag",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -648,7 +648,7 @@
|
||||
},
|
||||
"/audit/conn": {
|
||||
"post": {
|
||||
"description": "审计连接",
|
||||
"description": "audit connection",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -656,12 +656,12 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"审计"
|
||||
"audit"
|
||||
],
|
||||
"summary": "审计连接",
|
||||
"summary": "audit connection",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "审计连接",
|
||||
"description": "audit connection",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -688,7 +688,7 @@
|
||||
},
|
||||
"/audit/file": {
|
||||
"post": {
|
||||
"description": "审计文件",
|
||||
"description": "audit file",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -696,12 +696,12 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"审计"
|
||||
"audit"
|
||||
],
|
||||
"summary": "审计文件",
|
||||
"summary": "audit file",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "审计文件",
|
||||
"description": "audit file",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -733,7 +733,7 @@
|
||||
"token": []
|
||||
}
|
||||
],
|
||||
"description": "用户信息",
|
||||
"description": "user info",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -741,9 +741,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"用户"
|
||||
"user"
|
||||
],
|
||||
"summary": "用户信息",
|
||||
"summary": "user info",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -767,7 +767,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "机器",
|
||||
"description": "machine",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -775,25 +775,25 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"群组"
|
||||
"group"
|
||||
],
|
||||
"summary": "设备",
|
||||
"summary": "device",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "页码",
|
||||
"description": "page number",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "每页数量",
|
||||
"description": "items per page",
|
||||
"name": "pageSize",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "状态",
|
||||
"description": "status",
|
||||
"name": "status",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -822,7 +822,7 @@
|
||||
},
|
||||
"/heartbeat": {
|
||||
"post": {
|
||||
"description": "心跳",
|
||||
"description": "heartbeat",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -830,9 +830,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"首页"
|
||||
"home"
|
||||
],
|
||||
"summary": "心跳",
|
||||
"summary": "heartbeat",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
@@ -848,7 +848,7 @@
|
||||
},
|
||||
"/login": {
|
||||
"post": {
|
||||
"description": "登录",
|
||||
"description": "login",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -856,12 +856,12 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"登录"
|
||||
"login"
|
||||
],
|
||||
"summary": "登录",
|
||||
"summary": "login",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "登录表单",
|
||||
"description": "login form",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -888,7 +888,7 @@
|
||||
},
|
||||
"/login-options": {
|
||||
"get": {
|
||||
"description": "登录选项",
|
||||
"description": "login options",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -896,9 +896,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"登录"
|
||||
"login"
|
||||
],
|
||||
"summary": "登录选项",
|
||||
"summary": "login options",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -920,7 +920,7 @@
|
||||
},
|
||||
"/logout": {
|
||||
"post": {
|
||||
"description": "登出",
|
||||
"description": "logout",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -928,9 +928,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"登录"
|
||||
"login"
|
||||
],
|
||||
"summary": "登出",
|
||||
"summary": "logout",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -1041,7 +1041,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "机器",
|
||||
"description": "machine",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1049,25 +1049,25 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"群组"
|
||||
"group"
|
||||
],
|
||||
"summary": "机器",
|
||||
"summary": "machine",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "页码",
|
||||
"description": "page number",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "每页数量",
|
||||
"description": "items per page",
|
||||
"name": "pageSize",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "状态",
|
||||
"description": "status",
|
||||
"name": "status",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -1101,7 +1101,7 @@
|
||||
"token": []
|
||||
}
|
||||
],
|
||||
"description": "服务配置,给webclient提供api-server",
|
||||
"description": "service config, provides an api-server for the webclient",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1111,7 +1111,7 @@
|
||||
"tags": [
|
||||
"WEBCLIENT"
|
||||
],
|
||||
"summary": "服务配置",
|
||||
"summary": "service config",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -1135,7 +1135,7 @@
|
||||
"token": []
|
||||
}
|
||||
],
|
||||
"description": "服务配置,给webclient提供api-server",
|
||||
"description": "service config, provides an api-server for the webclient",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1145,7 +1145,7 @@
|
||||
"tags": [
|
||||
"WEBCLIENT_V2"
|
||||
],
|
||||
"summary": "服务配置",
|
||||
"summary": "service config",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -1164,7 +1164,7 @@
|
||||
},
|
||||
"/shared-peer": {
|
||||
"post": {
|
||||
"description": "分享的peer",
|
||||
"description": "shared peer",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1174,7 +1174,7 @@
|
||||
"tags": [
|
||||
"WEBCLIENT"
|
||||
],
|
||||
"summary": "分享的peer",
|
||||
"summary": "shared peer",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -1193,7 +1193,7 @@
|
||||
},
|
||||
"/sysinfo": {
|
||||
"post": {
|
||||
"description": "提交系统信息",
|
||||
"description": "submit system info",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1203,10 +1203,10 @@
|
||||
"tags": [
|
||||
"System"
|
||||
],
|
||||
"summary": "提交系统信息",
|
||||
"summary": "submit system info",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "系统信息表单",
|
||||
"description": "system info form",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -1233,7 +1233,7 @@
|
||||
},
|
||||
"/sysinfo_ver": {
|
||||
"post": {
|
||||
"description": "获取系统版本信息",
|
||||
"description": "get system version info",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1243,7 +1243,7 @@
|
||||
"tags": [
|
||||
"System"
|
||||
],
|
||||
"summary": "获取系统版本信息",
|
||||
"summary": "get system version info",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -1267,7 +1267,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "用户列表",
|
||||
"description": "user list",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1275,25 +1275,25 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"群组"
|
||||
"group"
|
||||
],
|
||||
"summary": "用户列表",
|
||||
"summary": "user list",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "页码",
|
||||
"description": "page number",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "每页数量",
|
||||
"description": "items per page",
|
||||
"name": "pageSize",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "状态",
|
||||
"description": "status",
|
||||
"name": "status",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -1337,7 +1337,7 @@
|
||||
},
|
||||
"/version": {
|
||||
"get": {
|
||||
"description": "版本",
|
||||
"description": "version",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1345,9 +1345,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"首页"
|
||||
"home"
|
||||
],
|
||||
"summary": "版本",
|
||||
"summary": "version",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -1586,7 +1586,7 @@
|
||||
"type": "integer"
|
||||
},
|
||||
"color": {
|
||||
"description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
|
||||
"description": "color is flutter's color value,from 0x00000000 to 0xFFFFFFFF; the first two digits represent transparency, the following 6 digits represent the color, can be converted to rgba",
|
||||
"type": "integer"
|
||||
},
|
||||
"created_at": {
|
||||
|
||||
Reference in New Issue
Block a user