43 lines
949 B
Go
43 lines
949 B
Go
package engine
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
type WorkSpaceManager struct{}
|
|
|
|
func NewWorkSpaceManager() *WorkSpaceManager {
|
|
return &WorkSpaceManager{}
|
|
}
|
|
|
|
type StorageSpace struct {
|
|
ID string
|
|
Name string
|
|
OwnerID string
|
|
Type string
|
|
CreateTime time.Time
|
|
UpdateTime time.Time
|
|
InviteCode string
|
|
RootPath string
|
|
}
|
|
|
|
func (wsm *WorkSpaceManager) CreateWorkSpace(ctx context.Context, ownerID, name, visibility string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func (wsm *WorkSpaceManager) GetWorkSpace(ctx context.Context, spaceID string) {
|
|
}
|
|
|
|
func (wsm *WorkSpaceManager) UpdateWorkSpace(ctx context.Context, spaceID string) (*StorageSpace, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (wsm *WorkSpaceManager) GenerateInviteCode(ctx context.Context, spaceID string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func (wsm *WorkSpaceManager) ImportWorkSpace(ctx context.Context, code string, newOwnerID string) (string, error) {
|
|
return "", nil
|
|
}
|