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>
24 lines
599 B
Go
24 lines
599 B
Go
package admin
|
|
|
|
type Login struct {
|
|
Username string `json:"username" validate:"required" label:"username"`
|
|
Password string `json:"password,omitempty" validate:"required" label:"password"`
|
|
Platform string `json:"platform" label:"platform"`
|
|
Captcha string `json:"captcha,omitempty" label:"captcha"`
|
|
CaptchaId string `json:"captcha_id,omitempty"`
|
|
}
|
|
|
|
type LoginLogQuery struct {
|
|
UserId int `form:"user_id"`
|
|
IsMy int `form:"is_my"`
|
|
PageQuery
|
|
}
|
|
type LoginTokenQuery struct {
|
|
UserId int `form:"user_id"`
|
|
PageQuery
|
|
}
|
|
|
|
type LoginLogIds struct {
|
|
Ids []uint `json:"ids" validate:"required"`
|
|
}
|