service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelFollowService

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

func NewCancelFollowService

func NewCancelFollowService(ctx context.Context) *CancelFollowService

NewCancelFollowService new CancelFollowService

func (*CancelFollowService) CancelFollow

func (s *CancelFollowService) CancelFollow(req *user.RelationActionRequest) error

type CheckUserService

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

func NewCheckUserService

func NewCheckUserService(ctx context.Context) *CheckUserService

NewCheckUserService new CheckUserService

func (*CheckUserService) CheckUser

func (s *CheckUserService) CheckUser(req *user.CheckUserRequest) (uint64, error)

func (*CheckUserService) IsUserExist

func (s *CheckUserService) IsUserExist(username string) (bool, error)

type CreateUserService

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

func NewCreateUserService

func NewCreateUserService(ctx context.Context) *CreateUserService

NewCreateUserService new CreateUserService

func (*CreateUserService) CreateUser

func (s *CreateUserService) CreateUser(req *user.CreateUserRequest) (uint64, error)

type GetUserService

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

func NewGetUserService

func NewGetUserService(ctx context.Context) *GetUserService

NewCheckUserService new CheckUserService

func (*GetUserService) GetUser

func (s *GetUserService) GetUser(req *user.GetUserRequest) (*user.User, error)

type MGetUserService

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

func NewMGetUserService

func NewMGetUserService(ctx context.Context) *MGetUserService

NewCheckUserService new CheckUserService

func (*MGetUserService) MGetUser

func (s *MGetUserService) MGetUser(req *user.MGetUserRequest) ([]*user.User, error)

type RelationService

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

func NewRelationService

func NewRelationService(ctx context.Context) *RelationService

NewFollowService new FollowService

func (*RelationService) CancelFollow

func (s *RelationService) CancelFollow(req *user.RelationActionRequest) error

func (*RelationService) Follow

func (*RelationService) GetFollowOrFans

func (s *RelationService) GetFollowOrFans(req *user.MGetRelationUserRequest, key string) ([]*user.User, error)

Jump to

Keyboard shortcuts

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