Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
eatmoreapple committed Nov 27, 2022
1 parent 854cafc commit 6709249
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ type User struct {
不同用户的`UserName`的值是不一样的,可以通过该字段来区分不同的用户。


#### 获取用户唯一标识

不同于`UserName``ID`是用户的唯一标识,且不会随着登录而改变。

```go
func (u *User) ID() string
```


#### 获取头像
Expand Down

0 comments on commit 6709249

Please sign in to comment.