mirror of
https://github.com/usememos/memos.git
synced 2024-11-10 08:52:22 +08:00
chore: fix linter
This commit is contained in:
parent
457cf92cc1
commit
9449886d60
2 changed files with 3 additions and 1 deletions
|
@ -205,7 +205,8 @@ func (s *APIV1Service) GetMemo(ctx context.Context, request *v1pb.GetMemoRequest
|
|||
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{
|
||||
UID: &request.Uid,
|
||||
})
|
||||
|
|
|
@ -148,6 +148,7 @@ func (s *APIV1Service) GetResource(ctx context.Context, request *v1pb.GetResourc
|
|||
return s.convertResourceFromStore(ctx, resource), nil
|
||||
}
|
||||
|
||||
//nolint:all
|
||||
func (s *APIV1Service) GetResourceByUid(ctx context.Context, request *v1pb.GetResourceByUidRequest) (*v1pb.Resource, error) {
|
||||
resource, err := s.Store.GetResource(ctx, &store.FindResource{
|
||||
UID: &request.Uid,
|
||||
|
|
Loading…
Reference in a new issue