-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
// SPDX-FileCopyrightText: 2025 Shota FUJI <pockawoooh@gmail.com>
// SPDX-License-Identifier: AGPL-3.0-only
package workspace
import (
"context"
"connectrpc.com/connect"
"google.golang.org/protobuf/proto"
errorV1 "pocka.jp/x/yamori/proto/go/error/v1"
workspaceV2 "pocka.jp/x/yamori/proto/go/workspace/v2"
)
func putCustomAttributeDefinitionSystemError(
message string,
) *connect.Response[workspaceV2.PutCustomAttributeDefinitionResponse] {
return connect.NewResponse(&workspaceV2.PutCustomAttributeDefinitionResponse{
Result: &workspaceV2.PutCustomAttributeDefinitionResponse_SystemError{
SystemError: &errorV1.SystemError{
Message: proto.String(message),
},
},
})
}
func (s *Service) PutCustomAttributeDefinition(
ctx context.Context,
req *connect.Request[workspaceV2.PutCustomAttributeDefinitionRequest],
) (
*connect.Response[workspaceV2.PutCustomAttributeDefinitionResponse],
error,
) {
_ = s.core.Logger.With(
"service", "yamori.workspace.v2.WorkspaceService",
"method", "PutCustomAttributeDefinition",
)
return putCustomAttributeDefinitionSystemError("Not implemented"), nil
}