feat: rbac完善,file接入完成
This commit is contained in:
@@ -3,13 +3,12 @@ package logic
|
||||
import (
|
||||
"context"
|
||||
|
||||
fileModel "sundynix-micro-go/app/file/model"
|
||||
"sundynix-micro-go/app/file/rpc/file"
|
||||
"sundynix-micro-go/app/file/rpc/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
"sundynix-micro-go/app/file/model"
|
||||
"sundynix-micro-go/app/file/rpc/file"
|
||||
"sundynix-micro-go/app/file/rpc/internal/svc"
|
||||
)
|
||||
|
||||
type GetFilesByIdsLogic struct {
|
||||
@@ -32,7 +31,7 @@ func (l *GetFilesByIdsLogic) GetFilesByIds(in *file.GetFilesByIdsReq) (*file.Get
|
||||
return &file.GetFilesByIdsResp{Files: []*file.FileInfo{}}, nil
|
||||
}
|
||||
|
||||
var ossList []fileModel.SundynixOss
|
||||
var ossList []model.SundynixOss
|
||||
err := l.svcCtx.DB.Where("id IN ?", in.Ids).Find(&ossList).Error
|
||||
if err != nil {
|
||||
l.Errorf("批量查询文件失败: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user