refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/base/cloud/internal/logic/album"
|
||||
pb "bsm/full/module/base/cloud/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type AlbumServer struct {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/base/cloud/internal/logic/bookmark"
|
||||
pb "bsm/full/module/base/cloud/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type BookmarkServer struct {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/base/cloud/internal/logic/disk"
|
||||
pb "bsm/full/module/base/cloud/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type DiskServer struct {
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
pb "bsm/full/module/base/cloud/pb"
|
||||
"context"
|
||||
"git.apinb.com/bsm-sdk/core/vars"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/base/cloud/internal/logic/note"
|
||||
pb "bsm/full/module/base/cloud/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type NoteServer struct {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/base/cloud/internal/logic/private"
|
||||
pb "bsm/full/module/base/cloud/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type PrivateServer struct {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/base/cloud/internal/logic/share"
|
||||
pb "bsm/full/module/base/cloud/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type ShareServer struct {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/base/cloud/internal/logic/space"
|
||||
pb "bsm/full/module/base/cloud/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type SpaceServer struct {
|
||||
|
||||
Reference in New Issue
Block a user