|
@@ -12,6 +12,9 @@ import (
|
|
|
|
|
|
type User struct {
|
|
|
UserId int `orm:"pk" description:"用户id"`
|
|
|
+ OpenId string `description:"openid"`
|
|
|
+ UnionId string `description:"unionid"`
|
|
|
+ NickName string `description:"用户昵称"`
|
|
|
RealName string `description:"姓名"`
|
|
|
Phone string `description:"手机号"`
|
|
|
AreaCode string `description:"区号"`
|
|
@@ -30,6 +33,8 @@ type User struct {
|
|
|
ApplyTime time.Time `description:"用户提交申请的时间"`
|
|
|
IsSubscribed bool `description:"是否关注公众号: 0表示没有关注,1表示关注"`
|
|
|
IsRegistered bool `description:"是否注册: 0表示没有注册,1表示注册"`
|
|
|
+ AccessToken string `description:"用户token"`
|
|
|
+ Headimgurl string `description:"用户头像,最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,0代表640*640正方形头像),用户没有头像时该项为空"`
|
|
|
}
|
|
|
|
|
|
type UserView struct {
|