Skip to content

Commit

Permalink
english translation
Browse files Browse the repository at this point in the history
  • Loading branch information
eltorio committed Mar 24, 2024
1 parent c3893c2 commit 3435445
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DockerfileBuildx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT

# 时区
# time zone
ENV TZ=Asia/Shanghai


Expand Down
2 changes: 1 addition & 1 deletion app/controllers/adressBook.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type AddressBookController struct {
func (ctl *AddressBookController) List() {
ack := dto.AbGetAck{}
ack.Tags = []string{}
// 查询 tags
// Inquire tags
tag_colors := dto.AbTag_colors{}
tags := services.Tags.FindTags(ctl.loginUserInfo.Id)
for _, item := range tags {
Expand Down
4 changes: 2 additions & 2 deletions app/dto/user.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package dto

// 用户注册
// User Registration
type UserRegReq struct {
Username string `json:"username"`
Password string `json:"password"`
AuthKey string `json:"auth_key"`
}

// 用户修改密码
// The user changes the password
type UserSetPwdReq struct {
Username string `json:"username"`
Password string `json:"password"`
Expand Down
4 changes: 2 additions & 2 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ func GenerateJwtToken(userId int, username, token, clientId, uuid string) (strin
ClientId: clientId,
//Uuid: uuid,
StandardClaims: jwt.StandardClaims{
// 过期时间
// Expiration time
ExpiresAt: 0,
// 指定token发行人
// Specify the token issuer
Issuer: "baozier",
},
}
Expand Down

0 comments on commit 3435445

Please sign in to comment.