feat(avatar): Avatar support for html rendering
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package model
|
||||
|
||||
// Avatar represents a user's avatar, either as a remote URL (v3) or inline bytes (v4)
|
||||
type Avatar struct {
|
||||
Username string `json:"username"`
|
||||
URL string `json:"url,omitempty"`
|
||||
ContentType string `json:"-"`
|
||||
Data []byte `json:"-"`
|
||||
}
|
||||
@@ -6,6 +6,8 @@ type Contact struct {
|
||||
Remark string `json:"remark"`
|
||||
NickName string `json:"nickName"`
|
||||
IsFriend bool `json:"isFriend"`
|
||||
// AvatarURL is a service-composed URL to fetch avatar image
|
||||
AvatarURL string `json:"avatarUrl,omitempty"`
|
||||
}
|
||||
|
||||
// CREATE TABLE Contact(
|
||||
|
||||
Reference in New Issue
Block a user