Documentation ¶
Index ¶
- type User
- func (u *User) AddFriend(relationship models.Relationship) bool
- func (u *User) CreateUser(user models.User) (objectId string, err error)
- func (u *User) CreateUserNode(objectId string, name string) (int, error)
- func (u *User) DeleteUser(objectId string) error
- func (u *User) GetAllUsers() (users []models.User, err error)
- func (u *User) GetOneUserByFilter(filters map[string]string) (user models.User, err error)
- func (u *User) GetOneUserById(ObjectId string) (user models.User, err error)
- func (u *User) UpdateUser(objectId string, user map[string]interface{}) error
- type Userinfo
- func (u *Userinfo) CreateRelationship(userid int, friendid int) error
- func (u *Userinfo) CreateUserinfo(userinfo models.Userinfo) (objectId string, err error)
- func (u *Userinfo) DeleteUserinfo(objectId string) error
- func (u *Userinfo) DownloadUserPic(userpic string) (interface{}, error)
- func (u *Userinfo) GetOneUserinfoById(ObjectId string) (userinfo models.Userinfo, err error)
- func (u *Userinfo) UpdateUserinfoById(objectId string, userinfo map[string]interface{}) error
- func (u *Userinfo) UploadUserPic(filemode models.Filemodel, userid string, userpic string) (string, error)
- type VersionRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct{}
func (*User) CreateUserNode ¶
func (*User) DeleteUser ¶
func (*User) GetOneUserByFilter ¶
func (*User) GetOneUserById ¶
type Userinfo ¶
type Userinfo struct{}
func (*Userinfo) CreateRelationship ¶
func (*Userinfo) CreateUserinfo ¶
func (*Userinfo) DeleteUserinfo ¶
func (*Userinfo) DownloadUserPic ¶
func (*Userinfo) GetOneUserinfoById ¶
func (*Userinfo) UpdateUserinfoById ¶
type VersionRule ¶
type VersionRule struct{}
func (*VersionRule) GetRuleByFilter ¶
func (v *VersionRule) GetRuleByFilter(filters map[string]interface{}) (result bson.M, err error)
Click to show internal directories.
Click to hide internal directories.