logic

package
v0.0.0-...-d345bf7 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InsertFileLogic

type InsertFileLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewInsertFileLogic

func NewInsertFileLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InsertFileLogic

func (*InsertFileLogic) InsertFile

func (l *InsertFileLogic) InsertFile(in *pb.InsertFileReq) (*pb.InsertFileResp, error)

用户下载/收藏/点赞了一个文件 TypeMount: download(下载), star(收藏), like(点赞), upload(上传) UserId: 用户id File: title(文件名), id(文件id)

type InsertPostLogic

type InsertPostLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewInsertPostLogic

func NewInsertPostLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InsertPostLogic

func (*InsertPostLogic) InsertPost

func (l *InsertPostLogic) InsertPost(in *pb.InsertPostReq) (*pb.InsertPostResp, error)

用户浏览/收藏/点赞了一个帖子 TypeMount: look(浏览), star(收藏), like(点赞) UserId: 用户id File: title(帖子名), content(帖子内容), id(帖子id)

type SearchForFileRankLogic

type SearchForFileRankLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSearchForFileRankLogic

func NewSearchForFileRankLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SearchForFileRankLogic

func (*SearchForFileRankLogic) SearchForFileRank

查询文件排行 TypeMount: upload(下载), star(收藏), like(点赞) Rank: 前多少名

type SearchForFilesByUserIdLogic

type SearchForFilesByUserIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSearchForFilesByUserIdLogic

func NewSearchForFilesByUserIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SearchForFilesByUserIdLogic

func (*SearchForFilesByUserIdLogic) SearchForFilesByUserId

查询用户下载/收藏/点赞过的文件 Type: upload(下载), star(收藏), like(点赞) UserId: 用户id

type SearchForFilesLogic

type SearchForFilesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSearchForFilesLogic

func NewSearchForFilesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SearchForFilesLogic

func (*SearchForFilesLogic) SearchForFiles

根据Content进行全文模糊搜索, 搜索相关的文件

type SearchForPostsByUserIdLogic

type SearchForPostsByUserIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSearchForPostsByUserIdLogic

func NewSearchForPostsByUserIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SearchForPostsByUserIdLogic

func (*SearchForPostsByUserIdLogic) SearchForPostsByUserId

查询用户下载/收藏/点赞过的帖子 Type: look(浏览), star(收藏), like(点赞) UserId: 用户id

type SearchForPostsLogic

type SearchForPostsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSearchForPostsLogic

func NewSearchForPostsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SearchForPostsLogic

func (*SearchForPostsLogic) SearchForPosts

根据Content进行全文模糊搜索, 搜索相关的帖子

type SearchForPostsRankLogic

type SearchForPostsRankLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSearchForPostsRankLogic

func NewSearchForPostsRankLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SearchForPostsRankLogic

func (*SearchForPostsRankLogic) SearchForPostsRank

查询文件排行 TypeMount: look(浏览), star(收藏), like(点赞) Rank: 前多少名

type UpdateFilesLogic

type UpdateFilesLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateFilesLogic

func NewUpdateFilesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateFilesLogic

func (*UpdateFilesLogic) UpdateFiles

func (l *UpdateFilesLogic) UpdateFiles(in *pb.UpdateFilesReq) (*pb.UpdateFilesResp, error)

type UpdatePostsLogic

type UpdatePostsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdatePostsLogic

func NewUpdatePostsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdatePostsLogic

func (*UpdatePostsLogic) UpdatePosts

func (l *UpdatePostsLogic) UpdatePosts(in *pb.UpdatePostsReq) (*pb.UpdatePostsResp, error)

Jump to

Keyboard shortcuts

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