refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc (unknown)
|
||||
// source: album.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/base/cloud/proto/album.proto
|
||||
|
||||
package cloud
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
@@ -40,29 +41,29 @@ const (
|
||||
// 相册服务
|
||||
type AlbumClient interface {
|
||||
// 创建相册
|
||||
CreateAlbum(ctx context.Context, in *CreateAlbumRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
CreateAlbum(ctx context.Context, in *CreateAlbumRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 获取相册详情
|
||||
GetAlbum(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudAlbumItem, error)
|
||||
GetAlbum(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudAlbumItem, error)
|
||||
// 更新相册
|
||||
UpdateAlbum(ctx context.Context, in *CloudAlbumItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
UpdateAlbum(ctx context.Context, in *CloudAlbumItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 删除相册
|
||||
DeleteAlbum(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
DeleteAlbum(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 获取相册列表
|
||||
ListAlbums(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListAlbumsResponse, error)
|
||||
ListAlbums(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListAlbumsResponse, error)
|
||||
// 设置封面照片
|
||||
SetCoverPhoto(ctx context.Context, in *SetCoverPhotoRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
SetCoverPhoto(ctx context.Context, in *SetCoverPhotoRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 上传照片
|
||||
UploadPhoto(ctx context.Context, in *CloudPhotoItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
UploadPhoto(ctx context.Context, in *CloudPhotoItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 获取照片详情
|
||||
GetPhoto(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudPhotoItem, error)
|
||||
GetPhoto(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudPhotoItem, error)
|
||||
// 更新照片
|
||||
UpdatePhoto(ctx context.Context, in *CloudPhotoItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
UpdatePhoto(ctx context.Context, in *CloudPhotoItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 删除照片
|
||||
DeletePhoto(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
DeletePhoto(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 获取照片列表
|
||||
ListPhotos(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error)
|
||||
ListPhotos(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error)
|
||||
// 移动照片到其他相册
|
||||
MovePhoto(ctx context.Context, in *MovePhotoRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
MovePhoto(ctx context.Context, in *MovePhotoRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
}
|
||||
|
||||
type albumClient struct {
|
||||
@@ -73,9 +74,9 @@ func NewAlbumClient(cc grpc.ClientConnInterface) AlbumClient {
|
||||
return &albumClient{cc}
|
||||
}
|
||||
|
||||
func (c *albumClient) CreateAlbum(ctx context.Context, in *CreateAlbumRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *albumClient) CreateAlbum(ctx context.Context, in *CreateAlbumRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.StatusReply)
|
||||
err := c.cc.Invoke(ctx, Album_CreateAlbum_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -83,7 +84,7 @@ func (c *albumClient) CreateAlbum(ctx context.Context, in *CreateAlbumRequest, o
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) GetAlbum(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudAlbumItem, error) {
|
||||
func (c *albumClient) GetAlbum(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudAlbumItem, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CloudAlbumItem)
|
||||
err := c.cc.Invoke(ctx, Album_GetAlbum_FullMethodName, in, out, cOpts...)
|
||||
@@ -93,9 +94,9 @@ func (c *albumClient) GetAlbum(ctx context.Context, in *IdentRequest, opts ...gr
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) UpdateAlbum(ctx context.Context, in *CloudAlbumItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *albumClient) UpdateAlbum(ctx context.Context, in *CloudAlbumItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.StatusReply)
|
||||
err := c.cc.Invoke(ctx, Album_UpdateAlbum_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -103,9 +104,9 @@ func (c *albumClient) UpdateAlbum(ctx context.Context, in *CloudAlbumItem, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) DeleteAlbum(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *albumClient) DeleteAlbum(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.StatusReply)
|
||||
err := c.cc.Invoke(ctx, Album_DeleteAlbum_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -113,7 +114,7 @@ func (c *albumClient) DeleteAlbum(ctx context.Context, in *IdentRequest, opts ..
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) ListAlbums(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListAlbumsResponse, error) {
|
||||
func (c *albumClient) ListAlbums(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListAlbumsResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ListAlbumsResponse)
|
||||
err := c.cc.Invoke(ctx, Album_ListAlbums_FullMethodName, in, out, cOpts...)
|
||||
@@ -123,9 +124,9 @@ func (c *albumClient) ListAlbums(ctx context.Context, in *FetchRequest, opts ...
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) SetCoverPhoto(ctx context.Context, in *SetCoverPhotoRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *albumClient) SetCoverPhoto(ctx context.Context, in *SetCoverPhotoRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.StatusReply)
|
||||
err := c.cc.Invoke(ctx, Album_SetCoverPhoto_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -133,9 +134,9 @@ func (c *albumClient) SetCoverPhoto(ctx context.Context, in *SetCoverPhotoReques
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) UploadPhoto(ctx context.Context, in *CloudPhotoItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *albumClient) UploadPhoto(ctx context.Context, in *CloudPhotoItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.StatusReply)
|
||||
err := c.cc.Invoke(ctx, Album_UploadPhoto_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -143,7 +144,7 @@ func (c *albumClient) UploadPhoto(ctx context.Context, in *CloudPhotoItem, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) GetPhoto(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudPhotoItem, error) {
|
||||
func (c *albumClient) GetPhoto(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudPhotoItem, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CloudPhotoItem)
|
||||
err := c.cc.Invoke(ctx, Album_GetPhoto_FullMethodName, in, out, cOpts...)
|
||||
@@ -153,9 +154,9 @@ func (c *albumClient) GetPhoto(ctx context.Context, in *IdentRequest, opts ...gr
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) UpdatePhoto(ctx context.Context, in *CloudPhotoItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *albumClient) UpdatePhoto(ctx context.Context, in *CloudPhotoItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.StatusReply)
|
||||
err := c.cc.Invoke(ctx, Album_UpdatePhoto_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -163,9 +164,9 @@ func (c *albumClient) UpdatePhoto(ctx context.Context, in *CloudPhotoItem, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) DeletePhoto(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *albumClient) DeletePhoto(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.StatusReply)
|
||||
err := c.cc.Invoke(ctx, Album_DeletePhoto_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -173,7 +174,7 @@ func (c *albumClient) DeletePhoto(ctx context.Context, in *IdentRequest, opts ..
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) ListPhotos(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error) {
|
||||
func (c *albumClient) ListPhotos(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ListPhotosResponse)
|
||||
err := c.cc.Invoke(ctx, Album_ListPhotos_FullMethodName, in, out, cOpts...)
|
||||
@@ -183,9 +184,9 @@ func (c *albumClient) ListPhotos(ctx context.Context, in *FetchRequest, opts ...
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *albumClient) MovePhoto(ctx context.Context, in *MovePhotoRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *albumClient) MovePhoto(ctx context.Context, in *MovePhotoRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.StatusReply)
|
||||
err := c.cc.Invoke(ctx, Album_MovePhoto_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -194,83 +195,81 @@ func (c *albumClient) MovePhoto(ctx context.Context, in *MovePhotoRequest, opts
|
||||
}
|
||||
|
||||
// AlbumServer is the server API for Album service.
|
||||
// All implementations must embed UnimplementedAlbumServer
|
||||
// All implementations should embed UnimplementedAlbumServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// 相册服务
|
||||
type AlbumServer interface {
|
||||
// 创建相册
|
||||
CreateAlbum(context.Context, *CreateAlbumRequest) (*StatusReply, error)
|
||||
CreateAlbum(context.Context, *CreateAlbumRequest) (*protobuf.StatusReply, error)
|
||||
// 获取相册详情
|
||||
GetAlbum(context.Context, *IdentRequest) (*CloudAlbumItem, error)
|
||||
GetAlbum(context.Context, *protobuf.IdentRequest) (*CloudAlbumItem, error)
|
||||
// 更新相册
|
||||
UpdateAlbum(context.Context, *CloudAlbumItem) (*StatusReply, error)
|
||||
UpdateAlbum(context.Context, *CloudAlbumItem) (*protobuf.StatusReply, error)
|
||||
// 删除相册
|
||||
DeleteAlbum(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
DeleteAlbum(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error)
|
||||
// 获取相册列表
|
||||
ListAlbums(context.Context, *FetchRequest) (*ListAlbumsResponse, error)
|
||||
ListAlbums(context.Context, *protobuf.FetchRequest) (*ListAlbumsResponse, error)
|
||||
// 设置封面照片
|
||||
SetCoverPhoto(context.Context, *SetCoverPhotoRequest) (*StatusReply, error)
|
||||
SetCoverPhoto(context.Context, *SetCoverPhotoRequest) (*protobuf.StatusReply, error)
|
||||
// 上传照片
|
||||
UploadPhoto(context.Context, *CloudPhotoItem) (*StatusReply, error)
|
||||
UploadPhoto(context.Context, *CloudPhotoItem) (*protobuf.StatusReply, error)
|
||||
// 获取照片详情
|
||||
GetPhoto(context.Context, *IdentRequest) (*CloudPhotoItem, error)
|
||||
GetPhoto(context.Context, *protobuf.IdentRequest) (*CloudPhotoItem, error)
|
||||
// 更新照片
|
||||
UpdatePhoto(context.Context, *CloudPhotoItem) (*StatusReply, error)
|
||||
UpdatePhoto(context.Context, *CloudPhotoItem) (*protobuf.StatusReply, error)
|
||||
// 删除照片
|
||||
DeletePhoto(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
DeletePhoto(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error)
|
||||
// 获取照片列表
|
||||
ListPhotos(context.Context, *FetchRequest) (*ListPhotosResponse, error)
|
||||
ListPhotos(context.Context, *protobuf.FetchRequest) (*ListPhotosResponse, error)
|
||||
// 移动照片到其他相册
|
||||
MovePhoto(context.Context, *MovePhotoRequest) (*StatusReply, error)
|
||||
mustEmbedUnimplementedAlbumServer()
|
||||
MovePhoto(context.Context, *MovePhotoRequest) (*protobuf.StatusReply, error)
|
||||
}
|
||||
|
||||
// UnimplementedAlbumServer must be embedded to have
|
||||
// UnimplementedAlbumServer should be embedded to have
|
||||
// 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{}
|
||||
|
||||
func (UnimplementedAlbumServer) CreateAlbum(context.Context, *CreateAlbumRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateAlbum not implemented")
|
||||
func (UnimplementedAlbumServer) CreateAlbum(context.Context, *CreateAlbumRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CreateAlbum not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) GetAlbum(context.Context, *IdentRequest) (*CloudAlbumItem, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetAlbum not implemented")
|
||||
func (UnimplementedAlbumServer) GetAlbum(context.Context, *protobuf.IdentRequest) (*CloudAlbumItem, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetAlbum not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) UpdateAlbum(context.Context, *CloudAlbumItem) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateAlbum not implemented")
|
||||
func (UnimplementedAlbumServer) UpdateAlbum(context.Context, *CloudAlbumItem) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateAlbum not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) DeleteAlbum(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteAlbum not implemented")
|
||||
func (UnimplementedAlbumServer) DeleteAlbum(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeleteAlbum not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) ListAlbums(context.Context, *FetchRequest) (*ListAlbumsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListAlbums not implemented")
|
||||
func (UnimplementedAlbumServer) ListAlbums(context.Context, *protobuf.FetchRequest) (*ListAlbumsResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ListAlbums not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) SetCoverPhoto(context.Context, *SetCoverPhotoRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SetCoverPhoto not implemented")
|
||||
func (UnimplementedAlbumServer) SetCoverPhoto(context.Context, *SetCoverPhotoRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SetCoverPhoto not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) UploadPhoto(context.Context, *CloudPhotoItem) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UploadPhoto not implemented")
|
||||
func (UnimplementedAlbumServer) UploadPhoto(context.Context, *CloudPhotoItem) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UploadPhoto not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) GetPhoto(context.Context, *IdentRequest) (*CloudPhotoItem, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetPhoto not implemented")
|
||||
func (UnimplementedAlbumServer) GetPhoto(context.Context, *protobuf.IdentRequest) (*CloudPhotoItem, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetPhoto not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) UpdatePhoto(context.Context, *CloudPhotoItem) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdatePhoto not implemented")
|
||||
func (UnimplementedAlbumServer) UpdatePhoto(context.Context, *CloudPhotoItem) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdatePhoto not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) DeletePhoto(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeletePhoto not implemented")
|
||||
func (UnimplementedAlbumServer) DeletePhoto(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeletePhoto not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) ListPhotos(context.Context, *FetchRequest) (*ListPhotosResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListPhotos not implemented")
|
||||
func (UnimplementedAlbumServer) ListPhotos(context.Context, *protobuf.FetchRequest) (*ListPhotosResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ListPhotos not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) MovePhoto(context.Context, *MovePhotoRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method MovePhoto not implemented")
|
||||
func (UnimplementedAlbumServer) MovePhoto(context.Context, *MovePhotoRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method MovePhoto not implemented")
|
||||
}
|
||||
func (UnimplementedAlbumServer) mustEmbedUnimplementedAlbumServer() {}
|
||||
func (UnimplementedAlbumServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedAlbumServer) testEmbeddedByValue() {}
|
||||
|
||||
// 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
|
||||
@@ -280,7 +279,7 @@ type UnsafeAlbumServer interface {
|
||||
}
|
||||
|
||||
func RegisterAlbumServer(s grpc.ServiceRegistrar, srv AlbumServer) {
|
||||
// If the following call pancis, it indicates UnimplementedAlbumServer was
|
||||
// If the following call panics, it indicates UnimplementedAlbumServer was
|
||||
// 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.
|
||||
@@ -309,7 +308,7 @@ func _Album_CreateAlbum_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
|
||||
func _Album_GetAlbum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -321,7 +320,7 @@ func _Album_GetAlbum_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
FullMethod: Album_GetAlbum_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AlbumServer).GetAlbum(ctx, req.(*IdentRequest))
|
||||
return srv.(AlbumServer).GetAlbum(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -345,7 +344,7 @@ func _Album_UpdateAlbum_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
|
||||
func _Album_DeleteAlbum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -357,13 +356,13 @@ func _Album_DeleteAlbum_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
FullMethod: Album_DeleteAlbum_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AlbumServer).DeleteAlbum(ctx, req.(*IdentRequest))
|
||||
return srv.(AlbumServer).DeleteAlbum(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Album_ListAlbums_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FetchRequest)
|
||||
in := new(protobuf.FetchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -375,7 +374,7 @@ func _Album_ListAlbums_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
FullMethod: Album_ListAlbums_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AlbumServer).ListAlbums(ctx, req.(*FetchRequest))
|
||||
return srv.(AlbumServer).ListAlbums(ctx, req.(*protobuf.FetchRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -417,7 +416,7 @@ func _Album_UploadPhoto_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
|
||||
func _Album_GetPhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -429,7 +428,7 @@ func _Album_GetPhoto_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
FullMethod: Album_GetPhoto_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AlbumServer).GetPhoto(ctx, req.(*IdentRequest))
|
||||
return srv.(AlbumServer).GetPhoto(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -453,7 +452,7 @@ func _Album_UpdatePhoto_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
|
||||
func _Album_DeletePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -465,13 +464,13 @@ func _Album_DeletePhoto_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
FullMethod: Album_DeletePhoto_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AlbumServer).DeletePhoto(ctx, req.(*IdentRequest))
|
||||
return srv.(AlbumServer).DeletePhoto(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Album_ListPhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FetchRequest)
|
||||
in := new(protobuf.FetchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -483,7 +482,7 @@ func _Album_ListPhotos_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
FullMethod: Album_ListPhotos_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AlbumServer).ListPhotos(ctx, req.(*FetchRequest))
|
||||
return srv.(AlbumServer).ListPhotos(ctx, req.(*protobuf.FetchRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -563,5 +562,5 @@ var Album_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "album.proto",
|
||||
Metadata: "module/base/cloud/proto/album.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user