Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
new types
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsaturyan committed May 29, 2024
1 parent ee9753a commit 87be87c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
6 changes: 2 additions & 4 deletions backend/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,7 @@ const docTemplate = `{
"scanner",
"phone",
"smart_bulb",
"smart_fridge",
"custom"
"smart_fridge"
],
"x-enum-varnames": [
"DeviceTypeComputer",
Expand All @@ -776,8 +775,7 @@ const docTemplate = `{
"DeviceTypeScanner",
"DeviceTypePhone",
"DeviceTypeSmartBulb",
"DeviceTypeSmartFridge",
"DeviceTypeCustom"
"DeviceTypeSmartFridge"
]
},
"backend_internal_entity.CreateDevice": {
Expand Down
6 changes: 2 additions & 4 deletions backend/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,7 @@
"scanner",
"phone",
"smart_bulb",
"smart_fridge",
"custom"
"smart_fridge"
],
"x-enum-varnames": [
"DeviceTypeComputer",
Expand All @@ -769,8 +768,7 @@
"DeviceTypeScanner",
"DeviceTypePhone",
"DeviceTypeSmartBulb",
"DeviceTypeSmartFridge",
"DeviceTypeCustom"
"DeviceTypeSmartFridge"
]
},
"backend_internal_entity.CreateDevice": {
Expand Down
2 changes: 0 additions & 2 deletions backend/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ definitions:
- phone
- smart_bulb
- smart_fridge
- custom
type: string
x-enum-varnames:
- DeviceTypeComputer
Expand All @@ -25,7 +24,6 @@ definitions:
- DeviceTypePhone
- DeviceTypeSmartBulb
- DeviceTypeSmartFridge
- DeviceTypeCustom
backend_internal_entity.CreateDevice:
properties:
angle:
Expand Down
4 changes: 1 addition & 3 deletions backend/internal/dbmodel/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions backend/migrations/20240529225442_add_new_type.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ ALTER TYPE device_type
ADD VALUE 'smart_bulb';
ALTER TYPE device_type
ADD VALUE 'smart_fridge';
ALTER TYPE device_type
ADD VALUE 'custom';
-- +goose StatementEnd

-- +goose Down
Expand Down

0 comments on commit 87be87c

Please sign in to comment.