server

package
v0.0.0-...-09fef34 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PhotoRpcServer

type PhotoRpcServer struct {
	blog.UnimplementedPhotoRpcServer
	// contains filtered or unexported fields
}

func NewPhotoRpcServer

func NewPhotoRpcServer(svcCtx *svc.ServiceContext) *PhotoRpcServer

func (*PhotoRpcServer) CreatePhoto

func (s *PhotoRpcServer) CreatePhoto(ctx context.Context, in *blog.Photo) (*blog.Photo, error)

创建照片

func (*PhotoRpcServer) CreatePhotoAlbum

func (s *PhotoRpcServer) CreatePhotoAlbum(ctx context.Context, in *blog.PhotoAlbum) (*blog.PhotoAlbum, error)

创建相册

func (*PhotoRpcServer) DeletePhoto

func (s *PhotoRpcServer) DeletePhoto(ctx context.Context, in *blog.IdReq) (*blog.BatchResp, error)

删除照片

func (*PhotoRpcServer) DeletePhotoAlbum

func (s *PhotoRpcServer) DeletePhotoAlbum(ctx context.Context, in *blog.IdReq) (*blog.BatchResp, error)

删除相册

func (*PhotoRpcServer) DeletePhotoAlbumList

func (s *PhotoRpcServer) DeletePhotoAlbumList(ctx context.Context, in *blog.IdsReq) (*blog.BatchResp, error)

批量删除相册

func (*PhotoRpcServer) DeletePhotoList

func (s *PhotoRpcServer) DeletePhotoList(ctx context.Context, in *blog.IdsReq) (*blog.BatchResp, error)

批量删除照片

func (*PhotoRpcServer) FindPhoto

func (s *PhotoRpcServer) FindPhoto(ctx context.Context, in *blog.IdReq) (*blog.Photo, error)

查询照片

func (*PhotoRpcServer) FindPhotoAlbum

func (s *PhotoRpcServer) FindPhotoAlbum(ctx context.Context, in *blog.IdReq) (*blog.PhotoAlbum, error)

查询相册

func (*PhotoRpcServer) FindPhotoAlbumCount

func (s *PhotoRpcServer) FindPhotoAlbumCount(ctx context.Context, in *blog.PageQuery) (*blog.CountResp, error)

查询相册数量

func (*PhotoRpcServer) FindPhotoAlbumList

func (s *PhotoRpcServer) FindPhotoAlbumList(ctx context.Context, in *blog.PageQuery) (*blog.PhotoAlbumPageResp, error)

查询相册列表

func (*PhotoRpcServer) FindPhotoCount

func (s *PhotoRpcServer) FindPhotoCount(ctx context.Context, in *blog.PageQuery) (*blog.CountResp, error)

查询照片数量

func (*PhotoRpcServer) FindPhotoList

func (s *PhotoRpcServer) FindPhotoList(ctx context.Context, in *blog.PageQuery) (*blog.PhotoPageResp, error)

查询照片列表

func (*PhotoRpcServer) UpdatePhoto

func (s *PhotoRpcServer) UpdatePhoto(ctx context.Context, in *blog.Photo) (*blog.Photo, error)

更新照片

func (*PhotoRpcServer) UpdatePhotoAlbum

func (s *PhotoRpcServer) UpdatePhotoAlbum(ctx context.Context, in *blog.PhotoAlbum) (*blog.PhotoAlbum, error)

更新相册

Jump to

Keyboard shortcuts

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