mirror of
https://github.com/usememos/memos.git
synced 2025-04-03 20:31:10 +02:00
chore: fix linter
This commit is contained in:
parent
457cf92cc1
commit
9449886d60
@ -205,7 +205,8 @@ func (s *APIV1Service) GetMemo(ctx context.Context, request *v1pb.GetMemoRequest
|
|||||||
return memoMessage, nil
|
return memoMessage, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *APIV1Service) GetMemoByUID(ctx context.Context, request *v1pb.GetMemoByUidRequest) (*v1pb.Memo, error) {
|
//nolint:all
|
||||||
|
func (s *APIV1Service) GetMemoByUid(ctx context.Context, request *v1pb.GetMemoByUidRequest) (*v1pb.Memo, error) {
|
||||||
memo, err := s.Store.GetMemo(ctx, &store.FindMemo{
|
memo, err := s.Store.GetMemo(ctx, &store.FindMemo{
|
||||||
UID: &request.Uid,
|
UID: &request.Uid,
|
||||||
})
|
})
|
||||||
|
@ -148,6 +148,7 @@ func (s *APIV1Service) GetResource(ctx context.Context, request *v1pb.GetResourc
|
|||||||
return s.convertResourceFromStore(ctx, resource), nil
|
return s.convertResourceFromStore(ctx, resource), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:all
|
||||||
func (s *APIV1Service) GetResourceByUid(ctx context.Context, request *v1pb.GetResourceByUidRequest) (*v1pb.Resource, error) {
|
func (s *APIV1Service) GetResourceByUid(ctx context.Context, request *v1pb.GetResourceByUidRequest) (*v1pb.Resource, error) {
|
||||||
resource, err := s.Store.GetResource(ctx, &store.FindResource{
|
resource, err := s.Store.GetResource(ctx, &store.FindResource{
|
||||||
UID: &request.Uid,
|
UID: &request.Uid,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user