service

package
v0.0.0-...-6b1d79f Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DBEngin *xorm.Engine
	DBErr   error
)

Functions

This section is empty.

Types

type ContactService

type ContactService struct {
}

func (*ContactService) AddFriend

func (service *ContactService) AddFriend(uid, did int64) (err error)

func (*ContactService) SearchFriend

func (service *ContactService) SearchFriend(userId int64) []model.User

查找好友

type UserService

type UserService struct {
}

func (*UserService) Find

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

查找某个用户

func (*UserService) Login

func (s *UserService) Login(mobile, plainpwd string) (user model.User, err error)

func (*UserService) Register

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

Jump to

Keyboard shortcuts

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