service

package
v0.0.0-...-fa05059 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewPostService)

ProviderSet is service providers.

Functions

This section is empty.

Types

type PostService

type PostService struct {
	pb.UnimplementedPostServer
	// contains filtered or unexported fields
}

func NewPostService

func NewPostService(biz *biz.PostBiz, userClient userpb.UserClient) *PostService

func (*PostService) CreatePlate

func (s *PostService) CreatePlate(ctx context.Context, req *pb.CreatePlateRequest) (*pb.CreatePlateReply, error)

func (*PostService) CreatePost

func (s *PostService) CreatePost(ctx context.Context, req *pb.CreatePostRequest) (*pb.CreatePostReply, error)

func (*PostService) DeletePlate

func (s *PostService) DeletePlate(ctx context.Context, req *pb.DeletePlateRequest) (*pb.DeletePlateReply, error)

func (*PostService) DeletePost

func (s *PostService) DeletePost(ctx context.Context, req *pb.DeletePostRequest) (*pb.DeletePostReply, error)

func (*PostService) DetailPost

func (s *PostService) DetailPost(ctx context.Context, req *pb.DetailPostRequest) (*pb.DetailPostReply, error)

func (*PostService) DetailPubPost

func (s *PostService) DetailPubPost(ctx context.Context, req *pb.DetailPubPostRequest) (*pb.DetailPubPostReply, error)

func (*PostService) ListPlate

func (s *PostService) ListPlate(ctx context.Context, req *pb.ListPlateRequest) (*pb.ListPlateReply, error)

func (*PostService) ListPost

func (s *PostService) ListPost(ctx context.Context, req *pb.ListPostRequest) (*pb.ListPostReply, error)

func (*PostService) ListPubPost

func (s *PostService) ListPubPost(ctx context.Context, req *pb.ListPubPostRequest) (*pb.ListPubPostReply, error)

func (*PostService) PublishPost

func (s *PostService) PublishPost(ctx context.Context, req *pb.PublishPostRequest) (*pb.PublishPostReply, error)

func (*PostService) UpdatePlate

func (s *PostService) UpdatePlate(ctx context.Context, req *pb.UpdatePlateRequest) (*pb.UpdatePlateReply, error)

func (*PostService) UpdatePost

func (s *PostService) UpdatePost(ctx context.Context, req *pb.UpdatePostRequest) (*pb.UpdatePostReply, error)

func (*PostService) UpdatePostStatus

Jump to

Keyboard shortcuts

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