Skip to content

Commit

Permalink
Upd: Move packages to v2 folder
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Oct 18, 2023
1 parent ff10611 commit 48a4ff1
Show file tree
Hide file tree
Showing 32 changed files with 52 additions and 52 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/v2/handler/dataagreement/config_create_dataagreement.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/asaskevich/govalidator"
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataagreement"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/token"
"github.com/bb-consent/api/src/v2/dataagreement"
"github.com/bb-consent/api/src/v2/revision"
"go.mongodb.org/mongo-driver/bson/primitive"
)

Expand Down
6 changes: 3 additions & 3 deletions src/v2/handler/dataagreement/config_delete_dataagreement.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataagreement"
"github.com/bb-consent/api/src/dataattribute"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/dataagreement"
"github.com/bb-consent/api/src/v2/dataattribute"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataagreement"
"github.com/bb-consent/api/src/paginate"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/dataagreement"
"github.com/bb-consent/api/src/v2/paginate"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
6 changes: 3 additions & 3 deletions src/v2/handler/dataagreement/config_list_dataagreements.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataagreement"
"github.com/bb-consent/api/src/paginate"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/dataagreement"
"github.com/bb-consent/api/src/v2/paginate"
"github.com/bb-consent/api/src/v2/revision"
)

// ListDataAgreementsError is an error enumeration for list data agreement API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataagreement"
"github.com/bb-consent/api/src/dataattribute"
"github.com/bb-consent/api/src/paginate"
"github.com/bb-consent/api/src/v2/dataagreement"
"github.com/bb-consent/api/src/v2/dataattribute"
"github.com/bb-consent/api/src/v2/paginate"
"github.com/gorilla/mux"
)

Expand Down
4 changes: 2 additions & 2 deletions src/v2/handler/dataagreement/config_read_dataagreement.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataagreement"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/dataagreement"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
4 changes: 2 additions & 2 deletions src/v2/handler/dataagreement/config_update_dataagreement.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/asaskevich/govalidator"
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataagreement"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/token"
"github.com/bb-consent/api/src/v2/dataagreement"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
6 changes: 3 additions & 3 deletions src/v2/handler/dataattribute/config_create_dataattribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"github.com/asaskevich/govalidator"
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataagreement"
"github.com/bb-consent/api/src/dataattribute"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/token"
"github.com/bb-consent/api/src/v2/dataagreement"
"github.com/bb-consent/api/src/v2/dataattribute"
"github.com/bb-consent/api/src/v2/revision"
"go.mongodb.org/mongo-driver/bson/primitive"
)

Expand Down
4 changes: 2 additions & 2 deletions src/v2/handler/dataattribute/config_delete_dataattribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataattribute"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/dataattribute"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataattribute"
"github.com/bb-consent/api/src/paginate"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/dataattribute"
"github.com/bb-consent/api/src/v2/paginate"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
6 changes: 3 additions & 3 deletions src/v2/handler/dataattribute/config_list_dataattributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataattribute"
"github.com/bb-consent/api/src/paginate"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/dataattribute"
"github.com/bb-consent/api/src/v2/paginate"
"github.com/bb-consent/api/src/v2/revision"
)

// ListDataAttributesError is an error enumeration for list data attribute API.
Expand Down
4 changes: 2 additions & 2 deletions src/v2/handler/dataattribute/config_read_dataattribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataattribute"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/dataattribute"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
6 changes: 3 additions & 3 deletions src/v2/handler/dataattribute/config_update_dataattribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"github.com/asaskevich/govalidator"
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataagreement"
"github.com/bb-consent/api/src/dataattribute"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/token"
"github.com/bb-consent/api/src/v2/dataagreement"
"github.com/bb-consent/api/src/v2/dataattribute"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
2 changes: 1 addition & 1 deletion src/v2/handler/individual/config_create_individual.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/asaskevich/govalidator"
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/individual"
"github.com/bb-consent/api/src/v2/individual"
"go.mongodb.org/mongo-driver/bson/primitive"
)

Expand Down
2 changes: 1 addition & 1 deletion src/v2/handler/individual/config_delete_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/individual"
"github.com/bb-consent/api/src/v2/individual"
"github.com/gorilla/mux"
)

Expand Down
4 changes: 2 additions & 2 deletions src/v2/handler/individual/config_list_individuals.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/individual"
"github.com/bb-consent/api/src/paginate"
"github.com/bb-consent/api/src/v2/individual"
"github.com/bb-consent/api/src/v2/paginate"
)

func returnHTTPResponse(resp interface{}, w http.ResponseWriter) {
Expand Down
2 changes: 1 addition & 1 deletion src/v2/handler/individual/config_read_individual.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/individual"
"github.com/bb-consent/api/src/v2/individual"
"github.com/gorilla/mux"
)

Expand Down
2 changes: 1 addition & 1 deletion src/v2/handler/individual/config_update_individual.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/asaskevich/govalidator"
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/individual"
"github.com/bb-consent/api/src/v2/individual"
"github.com/gorilla/mux"
)

Expand Down
2 changes: 1 addition & 1 deletion src/v2/handler/policy/config_create_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/policy"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/token"
"github.com/bb-consent/api/src/v2/revision"
"go.mongodb.org/mongo-driver/bson/primitive"
)

Expand Down
2 changes: 1 addition & 1 deletion src/v2/handler/policy/config_delete_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/policy"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
4 changes: 2 additions & 2 deletions src/v2/handler/policy/config_list_policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/paginate"
"github.com/bb-consent/api/src/policy"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/paginate"
"github.com/bb-consent/api/src/v2/revision"
)

// ListPoliciesError is an error enumeration for list policies API.
Expand Down
4 changes: 2 additions & 2 deletions src/v2/handler/policy/config_list_policy_revisions.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/paginate"
"github.com/bb-consent/api/src/policy"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/paginate"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
2 changes: 1 addition & 1 deletion src/v2/handler/policy/config_read_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/policy"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
2 changes: 1 addition & 1 deletion src/v2/handler/policy/config_update_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/policy"
"github.com/bb-consent/api/src/revision"
"github.com/bb-consent/api/src/token"
"github.com/bb-consent/api/src/v2/revision"
"github.com/gorilla/mux"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/paginate"
"github.com/bb-consent/api/src/v2/paginate"
wh "github.com/bb-consent/api/src/v2/webhook"
"github.com/gorilla/mux"
"go.mongodb.org/mongo-driver/bson/primitive"
Expand Down
2 changes: 1 addition & 1 deletion src/v2/handler/webhook/config_list_webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/paginate"
"github.com/bb-consent/api/src/v2/paginate"
wh "github.com/bb-consent/api/src/v2/webhook"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/revision/revisions.go → src/v2/revision/revisions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/bb-consent/api/src/dataagreement"
"github.com/bb-consent/api/src/dataattribute"
"github.com/bb-consent/api/src/policy"
"github.com/bb-consent/api/src/v2/dataagreement"
"github.com/bb-consent/api/src/v2/dataattribute"
"go.mongodb.org/mongo-driver/bson/primitive"
)

Expand Down

0 comments on commit 48a4ff1

Please sign in to comment.