Skip to content

Commit 36306d7

Browse files
committed
SnapShot
1 parent cc9c304 commit 36306d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Content-Type: application/json
9090
返回数据:
9191
- code:返回状态码,0 表示成功,非0 表示失败
9292
- message:返回信息,获取个人信息成功或失败的提示信息
93-
- data:用户个人信息的数据,包含用户名和密码
93+
- data:用户个人信息的数据,包含用户名
9494

9595
返回示例:
9696
```
@@ -100,7 +100,7 @@ Content-Type: application/json
100100
"data": {
101101
"ID": 1,
102102
"Username": "username1",
103-
"Password": "password1",
103+
"Password": "",
104104
"Avatar": "/default_avatar.png",
105105
"NickName": "NickName1",
106106
"PhoneNumber": "123456789"

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func main() {
131131
c.JSON(400, gin.H{"code": 1, "message": "获取用户信息失败"})
132132
return
133133
}
134+
user.Password = ""
134135

135136
c.JSON(200, gin.H{"code": 0, "message": "获取个人信息成功", "data": user})
136137

0 commit comments

Comments
 (0)