2023-08-05 21:30:23 +08:00
|
|
|
package v2
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2024-02-05 23:32:01 +08:00
|
|
|
|
2023-08-05 21:30:23 +08:00
|
|
|
apiv2pb "github.com/usememos/memos/proto/gen/api/v2"
|
|
|
|
)
|
|
|
|
|
2024-02-20 23:07:42 +08:00
|
|
|
func (s *APIV2Service) GetWorkspaceProfile(_ context.Context, _ *apiv2pb.GetWorkspaceProfileRequest) (*apiv2pb.GetWorkspaceProfileResponse, error) {
|
2024-01-28 07:35:42 +08:00
|
|
|
workspaceProfile := &apiv2pb.WorkspaceProfile{
|
|
|
|
Version: s.Profile.Version,
|
|
|
|
Mode: s.Profile.Mode,
|
2023-09-14 20:16:17 +08:00
|
|
|
}
|
2024-02-20 23:02:01 +08:00
|
|
|
return &apiv2pb.GetWorkspaceProfileResponse{
|
2024-01-28 07:35:42 +08:00
|
|
|
WorkspaceProfile: workspaceProfile,
|
2023-09-06 21:54:12 +08:00
|
|
|
}, nil
|
|
|
|
}
|