Documentation ¶
Index ¶
- Variables
- type ContactService
- func (service *ContactService) AddFriend(userid, dstid int64) error
- func (service *ContactService) CreateCommunity(comm models.Community) (ret models.Community, err error)
- func (service *ContactService) JoinCommunity(userId, comId int64) error
- func (service *ContactService) SearchCommunity(userId int64) []models.Community
- func (service *ContactService) SearchCommunityIds(userId int64) (comIds []int64)
- func (service *ContactService) SearchFriend(userId int64) []models.User
- type UserService
Constants ¶
This section is empty.
Variables ¶
View Source
var DBEngine *xorm.Engine
Functions ¶
This section is empty.
Types ¶
type ContactService ¶
type ContactService struct { }
func (*ContactService) AddFriend ¶
func (service *ContactService) AddFriend( userid, dstid int64) error
添加好友
func (*ContactService) CreateCommunity ¶
func (service *ContactService) CreateCommunity(comm models.Community) (ret models.Community, err error)
建群
func (*ContactService) JoinCommunity ¶
func (service *ContactService) JoinCommunity(userId, comId int64) error
加群
func (*ContactService) SearchCommunity ¶
func (service *ContactService) SearchCommunity(userId int64) []models.Community
查找群
func (*ContactService) SearchCommunityIds ¶
func (service *ContactService) SearchCommunityIds(userId int64) (comIds []int64)
func (*ContactService) SearchFriend ¶
func (service *ContactService) SearchFriend(userId int64) []models.User
查找好友
type UserService ¶
type UserService struct { }
Click to show internal directories.
Click to hide internal directories.