services

package
v0.0.0-...-5c7e32c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 {
}

func (*UserService) Find

func (s *UserService) Find(
	userId int64) (user models.User)

查找某个用户

func (*UserService) Login

func (s *UserService) Login(
	mobile,
	plainPassword string) (user models.User, err error)

登录函数

func (*UserService) Register

func (s *UserService) Register(
	mobile,
	plainPassword,
	nickname,
	avatar,
	sex string) (user models.User, err error)

注册函数

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL