forked from red-gold/telar-web
/
profile_update_model.go
43 lines (39 loc) · 2.32 KB
/
profile_update_model.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
34
35
36
37
38
39
40
41
42
43
package models
import (
"github.com/GMcD/telar-web/constants"
)
type ProfileUpdateModel struct {
FullName string `json:"fullName" bson:"fullName"`
Avatar string `json:"avatar" bson:"avatar"`
Banner string `json:"banner" bson:"banner"`
TagLine string `json:"tagLine" bson:"tagLine"`
Birthday int64 `json:"birthday" bson:"birthday"`
WebUrl string `json:"webUrl" bson:"webUrl"`
CompanyName string `json:"companyName" bson:"companyName"`
FacebookId string `json:"facebookId" bson:"facebookId"`
InstagramId string `json:"instagramId" bson:"instagramId"`
TwitterId string `json:"twitterId" bson:"twitterId"`
LinkedInId string `json:"linkedInId"`
AccessUserList []string `json:"accessUserList" bson:"accessUserList"`
Permission constants.UserPermissionConst `json:"permission" bson:"permission"`
LastUpdated int64 `json:"last_updated" bson:"last_updated"`
}
type ProfileGeneralUpdateModel struct {
Address string `json:"address" bson:"address"`
Avatar string `json:"avatar" bson:"avatar"`
Banner string `json:"banner" bson:"banner"`
Country string `json:"country" bson:"country"`
FullName string `json:"fullName" bson:"fullName"`
SocialName string `json:"socialName" bson:"socialName"`
Permission constants.UserPermissionConst `json:"permission" bson:"permission"`
Phone string `json:"phone" bson:"phone"`
TagLine string `json:"tagLine" bson:"tagLine"`
LastUpdated int64 `json:"last_updated" bson:"last_updated"`
}
type SocialInfoUpdateModel struct {
FacebookId string `json:"facebookId" bson:"facebookId"`
InstagramId string `json:"instagramId" bson:"instagramId"`
TwitterId string `json:"twitterId" bson:"twitterId"`
LinkedInId string `json:"linkedInId" bson:"linkedInId"`
LastUpdated int64 `json:"last_updated" bson:"last_updated"`
}