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:
@@ -12,10 +12,10 @@ import (
|
||||
type Group struct {
|
||||
}
|
||||
|
||||
// Detail 群组
|
||||
// @Tags 群组
|
||||
// @Summary 群组详情
|
||||
// @Description 群组详情
|
||||
// Detail group
|
||||
// @Tags group
|
||||
// @Summary group details
|
||||
// @Description group details
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param id path int true "ID"
|
||||
@@ -35,13 +35,13 @@ func (ct *Group) Detail(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// Create 创建群组
|
||||
// @Tags 群组
|
||||
// @Summary 创建群组
|
||||
// @Description 创建群组
|
||||
// Create create group
|
||||
// @Tags group
|
||||
// @Summary create group
|
||||
// @Description create group
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param body body admin.GroupForm true "群组信息"
|
||||
// @Param body body admin.GroupForm true "group info"
|
||||
// @Success 200 {object} response.Response{data=model.Group}
|
||||
// @Failure 500 {object} response.Response
|
||||
// @Router /admin/group/create [post]
|
||||
@@ -66,14 +66,14 @@ func (ct *Group) Create(c *gin.Context) {
|
||||
response.Success(c, nil)
|
||||
}
|
||||
|
||||
// List 列表
|
||||
// @Tags 群组
|
||||
// @Summary 群组列表
|
||||
// @Description 群组列表
|
||||
// List list
|
||||
// @Tags group
|
||||
// @Summary group list
|
||||
// @Description group list
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param page query int false "页码"
|
||||
// @Param page_size query int false "页大小"
|
||||
// @Param page query int false "page number"
|
||||
// @Param page_size query int false "page size"
|
||||
// @Success 200 {object} response.Response{data=model.GroupList}
|
||||
// @Failure 500 {object} response.Response
|
||||
// @Router /admin/group/list [get]
|
||||
@@ -88,13 +88,13 @@ func (ct *Group) List(c *gin.Context) {
|
||||
response.Success(c, res)
|
||||
}
|
||||
|
||||
// Update 编辑
|
||||
// @Tags 群组
|
||||
// @Summary 群组编辑
|
||||
// @Description 群组编辑
|
||||
// Update edit
|
||||
// @Tags group
|
||||
// @Summary edit group
|
||||
// @Description edit group
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param body body admin.GroupForm true "群组信息"
|
||||
// @Param body body admin.GroupForm true "group info"
|
||||
// @Success 200 {object} response.Response{data=model.Group}
|
||||
// @Failure 500 {object} response.Response
|
||||
// @Router /admin/group/update [post]
|
||||
@@ -123,13 +123,13 @@ func (ct *Group) Update(c *gin.Context) {
|
||||
response.Success(c, nil)
|
||||
}
|
||||
|
||||
// Delete 删除
|
||||
// @Tags 群组
|
||||
// @Summary 群组删除
|
||||
// @Description 群组删除
|
||||
// Delete delete
|
||||
// @Tags group
|
||||
// @Summary delete group
|
||||
// @Description delete group
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param body body admin.GroupForm true "群组信息"
|
||||
// @Param body body admin.GroupForm true "group info"
|
||||
// @Success 200 {object} response.Response
|
||||
// @Failure 500 {object} response.Response
|
||||
// @Router /admin/group/delete [post]
|
||||
|
||||
Reference in New Issue
Block a user