Documentation ¶
Index ¶
- type PhotoRpcServer
- func (s *PhotoRpcServer) CreatePhoto(ctx context.Context, in *blog.Photo) (*blog.Photo, error)
- func (s *PhotoRpcServer) CreatePhotoAlbum(ctx context.Context, in *blog.PhotoAlbum) (*blog.PhotoAlbum, error)
- func (s *PhotoRpcServer) DeletePhoto(ctx context.Context, in *blog.IdReq) (*blog.BatchResp, error)
- func (s *PhotoRpcServer) DeletePhotoAlbum(ctx context.Context, in *blog.IdReq) (*blog.BatchResp, error)
- func (s *PhotoRpcServer) DeletePhotoAlbumList(ctx context.Context, in *blog.IdsReq) (*blog.BatchResp, error)
- func (s *PhotoRpcServer) DeletePhotoList(ctx context.Context, in *blog.IdsReq) (*blog.BatchResp, error)
- func (s *PhotoRpcServer) FindPhoto(ctx context.Context, in *blog.IdReq) (*blog.Photo, error)
- func (s *PhotoRpcServer) FindPhotoAlbum(ctx context.Context, in *blog.IdReq) (*blog.PhotoAlbum, error)
- func (s *PhotoRpcServer) FindPhotoAlbumCount(ctx context.Context, in *blog.PageQuery) (*blog.CountResp, error)
- func (s *PhotoRpcServer) FindPhotoAlbumList(ctx context.Context, in *blog.PageQuery) (*blog.PhotoAlbumPageResp, error)
- func (s *PhotoRpcServer) FindPhotoCount(ctx context.Context, in *blog.PageQuery) (*blog.CountResp, error)
- func (s *PhotoRpcServer) FindPhotoList(ctx context.Context, in *blog.PageQuery) (*blog.PhotoPageResp, error)
- func (s *PhotoRpcServer) UpdatePhoto(ctx context.Context, in *blog.Photo) (*blog.Photo, error)
- func (s *PhotoRpcServer) UpdatePhotoAlbum(ctx context.Context, in *blog.PhotoAlbum) (*blog.PhotoAlbum, error)
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 (*PhotoRpcServer) CreatePhotoAlbum ¶
func (s *PhotoRpcServer) CreatePhotoAlbum(ctx context.Context, in *blog.PhotoAlbum) (*blog.PhotoAlbum, error)
创建相册
func (*PhotoRpcServer) DeletePhoto ¶
删除照片
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) 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 (*PhotoRpcServer) UpdatePhotoAlbum ¶
func (s *PhotoRpcServer) UpdatePhotoAlbum(ctx context.Context, in *blog.PhotoAlbum) (*blog.PhotoAlbum, error)
更新相册
Click to show internal directories.
Click to hide internal directories.