Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumDetails ¶
type AlbumDetails = photorpc.AlbumDetails
type AlbumNewReq ¶
type AlbumNewReq = photorpc.AlbumNewReq
type FindAlbumListReq ¶
type FindAlbumListReq = photorpc.FindAlbumListReq
type FindAlbumListResp ¶
type FindAlbumListResp = photorpc.FindAlbumListResp
type FindPhotoListReq ¶
type FindPhotoListReq = photorpc.FindPhotoListReq
type FindPhotoListResp ¶
type FindPhotoListResp = photorpc.FindPhotoListResp
type PhotoDetails ¶
type PhotoDetails = photorpc.PhotoDetails
type PhotoNewReq ¶
type PhotoNewReq = photorpc.PhotoNewReq
type PhotoRpc ¶
type PhotoRpc interface {
// 创建照片
AddPhoto(ctx context.Context, in *PhotoNewReq, opts ...grpc.CallOption) (*PhotoDetails, error)
// 更新照片
UpdatePhoto(ctx context.Context, in *PhotoNewReq, opts ...grpc.CallOption) (*PhotoDetails, error)
// 删除照片
DeletePhoto(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error)
// 查询照片列表
FindPhotoList(ctx context.Context, in *FindPhotoListReq, opts ...grpc.CallOption) (*FindPhotoListResp, error)
// 创建相册
AddAlbum(ctx context.Context, in *AlbumNewReq, opts ...grpc.CallOption) (*AlbumDetails, error)
// 更新相册
UpdateAlbum(ctx context.Context, in *AlbumNewReq, opts ...grpc.CallOption) (*AlbumDetails, error)
// 获取相册
GetAlbum(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*AlbumDetails, error)
// 删除相册
DeleteAlbum(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error)
// 查询相册列表
FindAlbumList(ctx context.Context, in *FindAlbumListReq, opts ...grpc.CallOption) (*FindAlbumListResp, error)
}
func NewPhotoRpc ¶
Click to show internal directories.
Click to hide internal directories.