service

package
v0.0.0-...-e90a31b Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 9 Imported by: 0

README

Service

业务逻辑层

Documentation

Index

Constants

View Source
const (
	// FollowStatusNormal 关注状态-正常
	FollowStatusNormal int = 1 // 正常
	// FollowStatusDelete 关注状态-删除
	FollowStatusDelete = 0 // 删除
)
View Source
const (
	// MaxID 最大id
	MaxID = 0xffffffffffff
)

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type RelationServiceServer

type RelationServiceServer struct {
	pb.UnimplementedRelationServiceServer
	// contains filtered or unexported fields
}

func NewRelationServiceServer

func NewRelationServiceServer(followerRepo repo.UserFollowerRepo, followingRepo repo.UserFollowingRepo) *RelationServiceServer

func (*RelationServiceServer) BatchGetRelation

func (*RelationServiceServer) Follow

Follow user

func (*RelationServiceServer) GetFollowerList

func (*RelationServiceServer) GetFollowingList

func (*RelationServiceServer) Unfollow

Unfollow

Jump to

Keyboard shortcuts

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