Skip to content

Commit

Permalink
feat:cloudmind-content.file基本完成 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Love-YeLin authored Jan 18, 2024
1 parent 560eea5 commit 31f2e4d
Show file tree
Hide file tree
Showing 19 changed files with 590 additions and 322 deletions.
64 changes: 0 additions & 64 deletions .github/workflows/buidl.yaml

This file was deleted.

1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ WORKDIR /build
ADD go.mod .
ADD go.sum .
RUN go mod tidy

COPY . .
RUN sh ./build.sh

Expand Down
43 changes: 30 additions & 13 deletions biz/adaptor/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@ type ContentServerImpl struct {
UserService service.UserService
}

func (s *ContentServerImpl) CreatePost(ctx context.Context, req *content.CreatePostReq) (res *content.CreatePostResp, err error) {
//TODO implement me
panic("implement me")
}

func (s *ContentServerImpl) DeletePost(ctx context.Context, req *content.DeletePostReq) (res *content.DeletePostResp, err error) {
//TODO implement me
panic("implement me")
}

func (s *ContentServerImpl) UpdatePost(ctx context.Context, req *content.UpdatePostReq) (res *content.UpdatePostResp, err error) {
//TODO implement me
panic("implement me")
}

func (s *ContentServerImpl) GetPost(ctx context.Context, req *content.GetPostReq) (res *content.GetPostResp, err error) {
//TODO implement me
panic("implement me")
}

func (s *ContentServerImpl) GetPosts(ctx context.Context, req *content.GetPostsReq) (res *content.GetPostsResp, err error) {
//TODO implement me
panic("implement me")
}

func (s *ContentServerImpl) DeleteUser(ctx context.Context, req *content.DeleteUserReq) (resp *content.DeleteUserResp, err error) {
return s.UserService.DeleteUser(ctx, req)
}
Expand Down Expand Up @@ -61,6 +86,10 @@ func (s *ContentServerImpl) GetFileList(ctx context.Context, req *content.GetFil
return s.FileService.GetFileList(ctx, req)
}

func (s *ContentServerImpl) DeleteFile(ctx context.Context, req *content.DeleteFileReq) (res *content.DeleteFileResp, err error) {
return s.FileService.DeleteFile(ctx, req)
}

func (s *ContentServerImpl) GetFileCount(ctx context.Context, req *content.GetFileCountReq) (*content.GetFileCountResp, error) {
return s.FileService.GetFileCount(ctx, req)
}
Expand All @@ -81,19 +110,7 @@ func (s *ContentServerImpl) CreateFolder(ctx context.Context, req *content.Creat
return s.FileService.CreateFolder(ctx, req)
}

func (s *ContentServerImpl) DeleteFile(ctx context.Context, req *content.DeleteFileReq) (*content.DeleteFileResp, error) {
return s.FileService.DeleteFile(ctx, req)
}

func (s *ContentServerImpl) DeleteExpiredFiles(ctx context.Context, req *content.DeleteExpiredFilesReq) (*content.DeleteExpiredFilesResp, error) {
return s.FileService.DeleteExpiredFiles(ctx, req)
}

func (s *ContentServerImpl) DeleteExpiredShareCodes(ctx context.Context, req *content.DeleteExpiredShareCodesReq) (*content.DeleteExpiredShareCodesResp, error) {
return s.FileService.DeleteExpiredShareCodes(ctx, req)
}

func (s *ContentServerImpl) GetLabel(ctx context.Context, req *content.GetLabelReq) (*content.GetLabelResp, error) {
func (s *ContentServerImpl) GetLabel(ctx context.Context, req *content.GetLabelReq) (res *content.GetLabelResp, err error) {
return s.LabelService.GetLabel(ctx, req)
}

Expand Down
Loading

0 comments on commit 31f2e4d

Please sign in to comment.