-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmember.go
33 lines (29 loc) · 854 Bytes
/
member.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package v2ex
// =======================================
// 成员 API
type Avatar struct {
AvatarMini string `json:"avatar_mini"`
AvatarNormal string `json:"avatar_normal"`
AvatarLarge string `json:"avatar_large"`
}
//用户的自我介绍,及其登记的社交网络信息
type Member struct {
Avatar
Status string `json:"status"`
ID int `json:"id"`
URL string `json:"url"`
Username string `json:"username"`
Website string `json:"website"`
Twitter string `json:"twitter"`
Psn string `json:"psn"`
Github string `json:"github"`
Btc string `json:"btc"`
Location string `json:"location"`
TagLine string `json:"tagline"`
Bio string `json:"bio"`
Created int `json:"created"`
}
type MemberService interface {
GetMemberByID(int) (*Member, error)
GetMemberByUsername(string) (*Member, error)
}