Русифицировать README и интерфейс HY2XS admin

This commit is contained in:
2026-04-25 23:51:21 +05:00
parent 84a4e94567
commit 2b4a45ad23
167 changed files with 632 additions and 699 deletions
+5 -4
View File
@@ -209,7 +209,7 @@ func GetAccountInfo(c *gin.Context) {
vo.Fail(err.Error(), c)
return
}
// 更新最近登录时间
// Обновление времени последнего входа
now := time.Now().UnixMilli()
if err = service.UpdateAccount(entity.Account{
BaseEntity: entity.BaseEntity{Id: &accountInfoVo.Id},
@@ -255,12 +255,12 @@ func ImportAccount(c *gin.Context) {
vo.Fail(constant.SysError, c)
return
}
// 文件大小 2MB
// Размер файла 2 MB
if header.Size > 1024*1024*2 {
vo.Fail("the file is too big", c)
return
}
// 文件后缀.json
// Расширение файла .json
if !strings.HasSuffix(header.Filename, ".json") {
vo.Fail("file format not supported", c)
return
@@ -297,7 +297,7 @@ func ExportAccount(c *gin.Context) {
return
}
// 下载
// Скачивание
if !util.Exists(filePath) {
vo.Fail("file not exist", c)
return
@@ -333,3 +333,4 @@ func VerifyDefaultPass(c *gin.Context) {
}
vo.Success(account.Pass != nil && *account.Pass == "02f382b76ca1ab7aa06ab03345c7712fd5b971fb0c0f2aef98bac9cd", c)
}