2026-08-09 10:43:45 +08:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2026-08-09 15:10:19 +08:00
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/base/cloud/proto/album.proto
2026-08-09 10:43:45 +08:00
package cloud
import (
2026-08-09 15:10:19 +08:00
protobuf "bsm/full/protobuf"
2026-08-09 10:43:45 +08:00
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc . SupportPackageIsVersion9
const (
Album_CreateAlbum_FullMethodName = "/cloud.Album/CreateAlbum"
Album_GetAlbum_FullMethodName = "/cloud.Album/GetAlbum"
Album_UpdateAlbum_FullMethodName = "/cloud.Album/UpdateAlbum"
Album_DeleteAlbum_FullMethodName = "/cloud.Album/DeleteAlbum"
Album_ListAlbums_FullMethodName = "/cloud.Album/ListAlbums"
Album_SetCoverPhoto_FullMethodName = "/cloud.Album/SetCoverPhoto"
Album_UploadPhoto_FullMethodName = "/cloud.Album/UploadPhoto"
Album_GetPhoto_FullMethodName = "/cloud.Album/GetPhoto"
Album_UpdatePhoto_FullMethodName = "/cloud.Album/UpdatePhoto"
Album_DeletePhoto_FullMethodName = "/cloud.Album/DeletePhoto"
Album_ListPhotos_FullMethodName = "/cloud.Album/ListPhotos"
Album_MovePhoto_FullMethodName = "/cloud.Album/MovePhoto"
)
// AlbumClient is the client API for Album service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
//
// 相册服务
type AlbumClient interface {
// 创建相册
2026-08-09 15:10:19 +08:00
CreateAlbum ( ctx context . Context , in * CreateAlbumRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 获取相册详情
2026-08-09 15:10:19 +08:00
GetAlbum ( ctx context . Context , in * protobuf . IdentRequest , opts ... grpc . CallOption ) ( * CloudAlbumItem , error )
2026-08-09 10:43:45 +08:00
// 更新相册
2026-08-09 15:10:19 +08:00
UpdateAlbum ( ctx context . Context , in * CloudAlbumItem , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 删除相册
2026-08-09 15:10:19 +08:00
DeleteAlbum ( ctx context . Context , in * protobuf . IdentRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 获取相册列表
2026-08-09 15:10:19 +08:00
ListAlbums ( ctx context . Context , in * protobuf . FetchRequest , opts ... grpc . CallOption ) ( * ListAlbumsResponse , error )
2026-08-09 10:43:45 +08:00
// 设置封面照片
2026-08-09 15:10:19 +08:00
SetCoverPhoto ( ctx context . Context , in * SetCoverPhotoRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 上传照片
2026-08-09 15:10:19 +08:00
UploadPhoto ( ctx context . Context , in * CloudPhotoItem , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 获取照片详情
2026-08-09 15:10:19 +08:00
GetPhoto ( ctx context . Context , in * protobuf . IdentRequest , opts ... grpc . CallOption ) ( * CloudPhotoItem , error )
2026-08-09 10:43:45 +08:00
// 更新照片
2026-08-09 15:10:19 +08:00
UpdatePhoto ( ctx context . Context , in * CloudPhotoItem , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 删除照片
2026-08-09 15:10:19 +08:00
DeletePhoto ( ctx context . Context , in * protobuf . IdentRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 获取照片列表
2026-08-09 15:10:19 +08:00
ListPhotos ( ctx context . Context , in * protobuf . FetchRequest , opts ... grpc . CallOption ) ( * ListPhotosResponse , error )
2026-08-09 10:43:45 +08:00
// 移动照片到其他相册
2026-08-09 15:10:19 +08:00
MovePhoto ( ctx context . Context , in * MovePhotoRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
}
type albumClient struct {
cc grpc . ClientConnInterface
}
func NewAlbumClient ( cc grpc . ClientConnInterface ) AlbumClient {
return & albumClient { cc }
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) CreateAlbum ( ctx context . Context , in * CreateAlbumRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . StatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Album_CreateAlbum_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) GetAlbum ( ctx context . Context , in * protobuf . IdentRequest , opts ... grpc . CallOption ) ( * CloudAlbumItem , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( CloudAlbumItem )
err := c . cc . Invoke ( ctx , Album_GetAlbum_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) UpdateAlbum ( ctx context . Context , in * CloudAlbumItem , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . StatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Album_UpdateAlbum_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) DeleteAlbum ( ctx context . Context , in * protobuf . IdentRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . StatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Album_DeleteAlbum_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) ListAlbums ( ctx context . Context , in * protobuf . FetchRequest , opts ... grpc . CallOption ) ( * ListAlbumsResponse , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( ListAlbumsResponse )
err := c . cc . Invoke ( ctx , Album_ListAlbums_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) SetCoverPhoto ( ctx context . Context , in * SetCoverPhotoRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . StatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Album_SetCoverPhoto_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) UploadPhoto ( ctx context . Context , in * CloudPhotoItem , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . StatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Album_UploadPhoto_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) GetPhoto ( ctx context . Context , in * protobuf . IdentRequest , opts ... grpc . CallOption ) ( * CloudPhotoItem , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( CloudPhotoItem )
err := c . cc . Invoke ( ctx , Album_GetPhoto_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) UpdatePhoto ( ctx context . Context , in * CloudPhotoItem , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . StatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Album_UpdatePhoto_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) DeletePhoto ( ctx context . Context , in * protobuf . IdentRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . StatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Album_DeletePhoto_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) ListPhotos ( ctx context . Context , in * protobuf . FetchRequest , opts ... grpc . CallOption ) ( * ListPhotosResponse , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( ListPhotosResponse )
err := c . cc . Invoke ( ctx , Album_ListPhotos_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * albumClient ) MovePhoto ( ctx context . Context , in * MovePhotoRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . StatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Album_MovePhoto_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
// AlbumServer is the server API for Album service.
2026-08-09 15:10:19 +08:00
// All implementations should embed UnimplementedAlbumServer
2026-08-09 10:43:45 +08:00
// for forward compatibility.
//
// 相册服务
type AlbumServer interface {
// 创建相册
2026-08-09 15:10:19 +08:00
CreateAlbum ( context . Context , * CreateAlbumRequest ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 获取相册详情
2026-08-09 15:10:19 +08:00
GetAlbum ( context . Context , * protobuf . IdentRequest ) ( * CloudAlbumItem , error )
2026-08-09 10:43:45 +08:00
// 更新相册
2026-08-09 15:10:19 +08:00
UpdateAlbum ( context . Context , * CloudAlbumItem ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 删除相册
2026-08-09 15:10:19 +08:00
DeleteAlbum ( context . Context , * protobuf . IdentRequest ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 获取相册列表
2026-08-09 15:10:19 +08:00
ListAlbums ( context . Context , * protobuf . FetchRequest ) ( * ListAlbumsResponse , error )
2026-08-09 10:43:45 +08:00
// 设置封面照片
2026-08-09 15:10:19 +08:00
SetCoverPhoto ( context . Context , * SetCoverPhotoRequest ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 上传照片
2026-08-09 15:10:19 +08:00
UploadPhoto ( context . Context , * CloudPhotoItem ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 获取照片详情
2026-08-09 15:10:19 +08:00
GetPhoto ( context . Context , * protobuf . IdentRequest ) ( * CloudPhotoItem , error )
2026-08-09 10:43:45 +08:00
// 更新照片
2026-08-09 15:10:19 +08:00
UpdatePhoto ( context . Context , * CloudPhotoItem ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 删除照片
2026-08-09 15:10:19 +08:00
DeletePhoto ( context . Context , * protobuf . IdentRequest ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// 获取照片列表
2026-08-09 15:10:19 +08:00
ListPhotos ( context . Context , * protobuf . FetchRequest ) ( * ListPhotosResponse , error )
2026-08-09 10:43:45 +08:00
// 移动照片到其他相册
2026-08-09 15:10:19 +08:00
MovePhoto ( context . Context , * MovePhotoRequest ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
// UnimplementedAlbumServer should be embedded to have
2026-08-09 10:43:45 +08:00
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedAlbumServer struct { }
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) CreateAlbum ( context . Context , * CreateAlbumRequest ) ( * protobuf . StatusReply , error ) {
return nil , status . Error ( codes . Unimplemented , "method CreateAlbum not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) GetAlbum ( context . Context , * protobuf . IdentRequest ) ( * CloudAlbumItem , error ) {
return nil , status . Error ( codes . Unimplemented , "method GetAlbum not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) UpdateAlbum ( context . Context , * CloudAlbumItem ) ( * protobuf . StatusReply , error ) {
return nil , status . Error ( codes . Unimplemented , "method UpdateAlbum not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) DeleteAlbum ( context . Context , * protobuf . IdentRequest ) ( * protobuf . StatusReply , error ) {
return nil , status . Error ( codes . Unimplemented , "method DeleteAlbum not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) ListAlbums ( context . Context , * protobuf . FetchRequest ) ( * ListAlbumsResponse , error ) {
return nil , status . Error ( codes . Unimplemented , "method ListAlbums not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) SetCoverPhoto ( context . Context , * SetCoverPhotoRequest ) ( * protobuf . StatusReply , error ) {
return nil , status . Error ( codes . Unimplemented , "method SetCoverPhoto not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) UploadPhoto ( context . Context , * CloudPhotoItem ) ( * protobuf . StatusReply , error ) {
return nil , status . Error ( codes . Unimplemented , "method UploadPhoto not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) GetPhoto ( context . Context , * protobuf . IdentRequest ) ( * CloudPhotoItem , error ) {
return nil , status . Error ( codes . Unimplemented , "method GetPhoto not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) UpdatePhoto ( context . Context , * CloudPhotoItem ) ( * protobuf . StatusReply , error ) {
return nil , status . Error ( codes . Unimplemented , "method UpdatePhoto not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) DeletePhoto ( context . Context , * protobuf . IdentRequest ) ( * protobuf . StatusReply , error ) {
return nil , status . Error ( codes . Unimplemented , "method DeletePhoto not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) ListPhotos ( context . Context , * protobuf . FetchRequest ) ( * ListPhotosResponse , error ) {
return nil , status . Error ( codes . Unimplemented , "method ListPhotos not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) MovePhoto ( context . Context , * MovePhotoRequest ) ( * protobuf . StatusReply , error ) {
return nil , status . Error ( codes . Unimplemented , "method MovePhoto not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlbumServer ) testEmbeddedByValue ( ) { }
2026-08-09 10:43:45 +08:00
// UnsafeAlbumServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to AlbumServer will
// result in compilation errors.
type UnsafeAlbumServer interface {
mustEmbedUnimplementedAlbumServer ( )
}
func RegisterAlbumServer ( s grpc . ServiceRegistrar , srv AlbumServer ) {
2026-08-09 15:10:19 +08:00
// If the following call panics, it indicates UnimplementedAlbumServer was
2026-08-09 10:43:45 +08:00
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t , ok := srv . ( interface { testEmbeddedByValue ( ) } ) ; ok {
t . testEmbeddedByValue ( )
}
s . RegisterService ( & Album_ServiceDesc , srv )
}
func _Album_CreateAlbum_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CreateAlbumRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . CreateAlbum ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_CreateAlbum_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AlbumServer ) . CreateAlbum ( ctx , req . ( * CreateAlbumRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Album_GetAlbum_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
in := new ( protobuf . IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . GetAlbum ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_GetAlbum_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
return srv . ( AlbumServer ) . GetAlbum ( ctx , req . ( * protobuf . IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Album_UpdateAlbum_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CloudAlbumItem )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . UpdateAlbum ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_UpdateAlbum_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AlbumServer ) . UpdateAlbum ( ctx , req . ( * CloudAlbumItem ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Album_DeleteAlbum_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
in := new ( protobuf . IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . DeleteAlbum ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_DeleteAlbum_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
return srv . ( AlbumServer ) . DeleteAlbum ( ctx , req . ( * protobuf . IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Album_ListAlbums_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
in := new ( protobuf . FetchRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . ListAlbums ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_ListAlbums_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
return srv . ( AlbumServer ) . ListAlbums ( ctx , req . ( * protobuf . FetchRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Album_SetCoverPhoto_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SetCoverPhotoRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . SetCoverPhoto ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_SetCoverPhoto_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AlbumServer ) . SetCoverPhoto ( ctx , req . ( * SetCoverPhotoRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Album_UploadPhoto_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CloudPhotoItem )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . UploadPhoto ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_UploadPhoto_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AlbumServer ) . UploadPhoto ( ctx , req . ( * CloudPhotoItem ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Album_GetPhoto_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
in := new ( protobuf . IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . GetPhoto ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_GetPhoto_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
return srv . ( AlbumServer ) . GetPhoto ( ctx , req . ( * protobuf . IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Album_UpdatePhoto_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CloudPhotoItem )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . UpdatePhoto ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_UpdatePhoto_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AlbumServer ) . UpdatePhoto ( ctx , req . ( * CloudPhotoItem ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Album_DeletePhoto_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
in := new ( protobuf . IdentRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . DeletePhoto ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_DeletePhoto_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
return srv . ( AlbumServer ) . DeletePhoto ( ctx , req . ( * protobuf . IdentRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Album_ListPhotos_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
in := new ( protobuf . FetchRequest )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . ListPhotos ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_ListPhotos_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
return srv . ( AlbumServer ) . ListPhotos ( ctx , req . ( * protobuf . FetchRequest ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Album_MovePhoto_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( MovePhotoRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AlbumServer ) . MovePhoto ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Album_MovePhoto_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AlbumServer ) . MovePhoto ( ctx , req . ( * MovePhotoRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
// Album_ServiceDesc is the grpc.ServiceDesc for Album service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Album_ServiceDesc = grpc . ServiceDesc {
ServiceName : "cloud.Album" ,
HandlerType : ( * AlbumServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "CreateAlbum" ,
Handler : _Album_CreateAlbum_Handler ,
} ,
{
MethodName : "GetAlbum" ,
Handler : _Album_GetAlbum_Handler ,
} ,
{
MethodName : "UpdateAlbum" ,
Handler : _Album_UpdateAlbum_Handler ,
} ,
{
MethodName : "DeleteAlbum" ,
Handler : _Album_DeleteAlbum_Handler ,
} ,
{
MethodName : "ListAlbums" ,
Handler : _Album_ListAlbums_Handler ,
} ,
{
MethodName : "SetCoverPhoto" ,
Handler : _Album_SetCoverPhoto_Handler ,
} ,
{
MethodName : "UploadPhoto" ,
Handler : _Album_UploadPhoto_Handler ,
} ,
{
MethodName : "GetPhoto" ,
Handler : _Album_GetPhoto_Handler ,
} ,
{
MethodName : "UpdatePhoto" ,
Handler : _Album_UpdatePhoto_Handler ,
} ,
{
MethodName : "DeletePhoto" ,
Handler : _Album_DeletePhoto_Handler ,
} ,
{
MethodName : "ListPhotos" ,
Handler : _Album_ListPhotos_Handler ,
} ,
{
MethodName : "MovePhoto" ,
Handler : _Album_MovePhoto_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
2026-08-09 15:10:19 +08:00
Metadata : "module/base/cloud/proto/album.proto" ,
2026-08-09 10:43:45 +08:00
}