Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProfileResponse ¶
NewProfileResponse new a pb profile from entity profile
Types ¶
type Profile ¶
type Profile struct { ID primitive.ObjectID `json:"id" bson:"_id"` OpenID string `json:"open_id" bson:"open_id"` Name string `json:"name" bson:"name"` Email string `json:"email" bson:"email"` Token string `json:"token" bson:"token"` AccessToken string `json:"access_token" bson:"access_token"` RefreshToken string `json:"refresh_token" bson:"refresh_token"` CreatedAt primitive.DateTime `json:"created_at" bson:"created_at"` UpdatedAt primitive.DateTime `json:"updated_at" bson:"updated_at"` }
Profile declare a user information
Click to show internal directories.
Click to hide internal directories.