Documentation ¶
Index ¶
- type PhotoRpcServer
- func (s *PhotoRpcServer) AddAlbum(ctx context.Context, in *photorpc.AlbumNewReq) (*photorpc.AlbumDetails, error)
- func (s *PhotoRpcServer) AddPhoto(ctx context.Context, in *photorpc.PhotoNewReq) (*photorpc.PhotoDetails, error)
- func (s *PhotoRpcServer) DeleteAlbum(ctx context.Context, in *photorpc.IdsReq) (*photorpc.BatchResp, error)
- func (s *PhotoRpcServer) DeletePhoto(ctx context.Context, in *photorpc.IdsReq) (*photorpc.BatchResp, error)
- func (s *PhotoRpcServer) FindAlbumList(ctx context.Context, in *photorpc.FindAlbumListReq) (*photorpc.FindAlbumListResp, error)
- func (s *PhotoRpcServer) FindPhotoList(ctx context.Context, in *photorpc.FindPhotoListReq) (*photorpc.FindPhotoListResp, error)
- func (s *PhotoRpcServer) GetAlbum(ctx context.Context, in *photorpc.IdReq) (*photorpc.AlbumDetails, error)
- func (s *PhotoRpcServer) UpdateAlbum(ctx context.Context, in *photorpc.AlbumNewReq) (*photorpc.AlbumDetails, error)
- func (s *PhotoRpcServer) UpdatePhoto(ctx context.Context, in *photorpc.PhotoNewReq) (*photorpc.PhotoDetails, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PhotoRpcServer ¶
type PhotoRpcServer struct { photorpc.UnimplementedPhotoRpcServer // contains filtered or unexported fields }
func NewPhotoRpcServer ¶
func NewPhotoRpcServer(svcCtx *svc.ServiceContext) *PhotoRpcServer
func (*PhotoRpcServer) AddAlbum ¶
func (s *PhotoRpcServer) AddAlbum(ctx context.Context, in *photorpc.AlbumNewReq) (*photorpc.AlbumDetails, error)
创建相册
func (*PhotoRpcServer) AddPhoto ¶
func (s *PhotoRpcServer) AddPhoto(ctx context.Context, in *photorpc.PhotoNewReq) (*photorpc.PhotoDetails, error)
创建照片
func (*PhotoRpcServer) DeleteAlbum ¶
func (s *PhotoRpcServer) DeleteAlbum(ctx context.Context, in *photorpc.IdsReq) (*photorpc.BatchResp, error)
删除相册
func (*PhotoRpcServer) DeletePhoto ¶
func (s *PhotoRpcServer) DeletePhoto(ctx context.Context, in *photorpc.IdsReq) (*photorpc.BatchResp, error)
删除照片
func (*PhotoRpcServer) FindAlbumList ¶
func (s *PhotoRpcServer) FindAlbumList(ctx context.Context, in *photorpc.FindAlbumListReq) (*photorpc.FindAlbumListResp, error)
查询相册列表
func (*PhotoRpcServer) FindPhotoList ¶
func (s *PhotoRpcServer) FindPhotoList(ctx context.Context, in *photorpc.FindPhotoListReq) (*photorpc.FindPhotoListResp, error)
查询照片列表
func (*PhotoRpcServer) GetAlbum ¶
func (s *PhotoRpcServer) GetAlbum(ctx context.Context, in *photorpc.IdReq) (*photorpc.AlbumDetails, error)
获取相册
func (*PhotoRpcServer) UpdateAlbum ¶
func (s *PhotoRpcServer) UpdateAlbum(ctx context.Context, in *photorpc.AlbumNewReq) (*photorpc.AlbumDetails, error)
更新相册
func (*PhotoRpcServer) UpdatePhoto ¶
func (s *PhotoRpcServer) UpdatePhoto(ctx context.Context, in *photorpc.PhotoNewReq) (*photorpc.PhotoDetails, error)
更新照片
Click to show internal directories.
Click to hide internal directories.