drone/types/favorite.go
Karan Saraswat 6315cecfbd feat: [CODE-3883]: Add controller and handler layer for favorites (#3806)
* feat: [CODE-3833]: [CODE-3844]: merged handler layer code to controller layer
* feat: [CODE-3884]: Add handler layer for favorites (#3808)

* format router file
* Merge branch 'CODE-3883' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CODE-3884
* feat: [CODE-3884]: moved favorite handler under user handler
* merge develop
* feat: [CODE-3900]: Add and populate is_favorite field in RepositoryOutput (#3821)

* addressed review comments
* feat: [CODE-3900]: Add and populate is_favorite field in RepositoryOutput
* feat: [CODE-3884]: Add handler layer for favorites
* format code
* feat: [CODE-3833]: moved favorite controller files under user controller directory
* removed unwanted comment
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CODE-3883
* addressed review comments
* merge develop
* feat: [CODE-3883]: Add controller layer for favorites
* feat: [CODE-3870]: Add only_favorites query param t
2025-05-26 10:49:37 +00:00

23 lines
779 B
Go

// Copyright 2023 Harness, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package types
import "github.com/harness/gitness/types/enum"
type FavoriteResource struct {
ID int64 `json:"resource_id"`
Type enum.ResourceType `json:"resource_type"`
}