Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FollowFindOption ¶
type FollowerUserInfos ¶
type FollowerUserInfos struct {
Users []domain.FollowerUserInfo
Total int
}
type User ¶
type User interface {
Save(*domain.User) (domain.User, error)
GetByAccount(domain.Account) (domain.User, error)
GetByFollower(owner, follower domain.Account) (domain.User, bool, error)
FindUsersInfo([]domain.Account) ([]domain.UserInfo, error)
GetUserAvatarId(domain.Account) (domain.AvatarId, error)
Search(*UserSearchOption) (UserSearchResult, error)
AddFollowing(*domain.FollowerInfo) error
RemoveFollowing(*domain.FollowerInfo) error
FindFollowing(domain.Account, *FollowFindOption) (FollowerUserInfos, error)
AddFollower(*domain.FollowerInfo) error
RemoveFollower(*domain.FollowerInfo) error
FindFollower(domain.Account, *FollowFindOption) (FollowerUserInfos, error)
}
type UserReg ¶
type UserReg interface {
AddUserRegInfo(*domain.UserRegInfo) error
GetUserRegInfo(types.Account) (domain.UserRegInfo, error)
UpdateUserRegInfo(u *domain.UserRegInfo, version int) error
}
type UserSearchOption ¶
type UserSearchResult ¶
Click to show internal directories.
Click to hide internal directories.