service

package
v0.0.0-...-7de97a6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeUserFollowCountService

type ChangeUserFollowCountService struct {
	// contains filtered or unexported fields
}

func NewChangeUserFollowCountService

func NewChangeUserFollowCountService(ctx context.Context) *ChangeUserFollowCountService

GetUserService new MGetUserService

func (*ChangeUserFollowCountService) ChangeUserFollowCount

func (s *ChangeUserFollowCountService) ChangeUserFollowCount(userID int64, toUserID int64, isFollow bool) error

根据userId获得TableUser对象--这里不处理"是否关注(都默认false)",放到relation模块处理

type CheckUserService

type CheckUserService struct {
	// contains filtered or unexported fields
}

func NewCheckUserService

func NewCheckUserService(ctx context.Context) *CheckUserService

NewCheckUserService new CheckUserService

func (*CheckUserService) CheckUser

CheckUser check user info

type GetUserService

type GetUserService struct {
	// contains filtered or unexported fields
}

func NewGetUserService

func NewGetUserService(ctx context.Context) *GetUserService

GetUserService new MGetUserService

func (*GetUserService) GetMUserById

func (s *GetUserService) GetMUserById(ids []int64) ([]*db.User, error)

根据userId获得TableUser对象--这里不处理"是否关注(都默认false)",放到relation模块处理

func (*GetUserService) GetUserById

func (s *GetUserService) GetUserById(id int64) (db.User, error)

根据userId获得TableUser对象

func (*GetUserService) GetUserByName

func (s *GetUserService) GetUserByName(name string) (db.User, error)

根据username获得TableUser对象

type RegisterService

type RegisterService struct {
	// contains filtered or unexported fields
}

func NewCreateUserService

func NewCreateUserService(ctx context.Context) *RegisterService

该函数可以创建一个新的注册服务--每次传入都是新的

func (*RegisterService) CreateUser

CreateUser create user info.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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