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:
@@ -8,7 +8,7 @@ import (
|
||||
type ShareRecordService struct {
|
||||
}
|
||||
|
||||
// InfoById 根据用户id取用户信息
|
||||
// InfoById gets the share record info by id
|
||||
func (srs *ShareRecordService) InfoById(id uint) *model.ShareRecord {
|
||||
u := &model.ShareRecord{}
|
||||
DB.Where("id = ?", id).First(u)
|
||||
@@ -29,7 +29,7 @@ func (srs *ShareRecordService) List(page, pageSize uint, where func(tx *gorm.DB)
|
||||
return
|
||||
}
|
||||
|
||||
// Create 创建
|
||||
// Create create
|
||||
func (srs *ShareRecordService) Create(u *model.ShareRecord) error {
|
||||
res := DB.Create(u).Error
|
||||
return res
|
||||
@@ -38,7 +38,7 @@ func (srs *ShareRecordService) Delete(u *model.ShareRecord) error {
|
||||
return DB.Delete(u).Error
|
||||
}
|
||||
|
||||
// Update 更新
|
||||
// Update update
|
||||
func (srs *ShareRecordService) Update(u *model.ShareRecord) error {
|
||||
return DB.Model(u).Updates(u).Error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user