-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from geekcamp-vol11-team30/feature/EventNotify…
…Reservation 予約確定機能
- Loading branch information
Showing
10 changed files
with
229 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
SELECT 'up SQL query'; | ||
ALTER TABLE `event` | ||
ADD COLUMN `enables_email_notification` BOOLEAN NOT NULL DEFAULT FALSE, | ||
ADD COLUMN `expected_participants_number` INT NOT NULL DEFAULT 0, | ||
ADD COLUMN `notification_email` VARCHAR(255) NOT NULL DEFAULT ''; | ||
-- +goose StatementEnd | ||
-- +goose Down | ||
-- +goose StatementBegin | ||
SELECT 'down SQL query'; | ||
ALTER TABLE `event` DROP COLUMN `enables_email_notification`, | ||
DROP COLUMN `expected_participants_number`, | ||
DROP COLUMN `notification_email`; | ||
-- +goose StatementEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ import ( | |
"github.com/geekcamp-vol11-team30/backend/router" | ||
"github.com/geekcamp-vol11-team30/backend/service" | ||
"github.com/geekcamp-vol11-team30/backend/usecase" | ||
"github.com/geekcamp-vol11-team30/backend/util" | ||
"github.com/geekcamp-vol11-team30/backend/validator" | ||
_ "github.com/go-sql-driver/mysql" | ||
"github.com/volatiletech/sqlboiler/v4/boil" | ||
|
@@ -53,7 +52,7 @@ func run(ctx context.Context, logger *zap.Logger) error { | |
uv := validator.NewUserValidator() | ||
uu := usecase.NewUserUsecase(ur, oar, er, uv, gs, ms) | ||
au := usecase.NewAuthUsecase(cfg, logger, ar) | ||
eu := usecase.NewEventUsecase(er) | ||
eu := usecase.NewEventUsecase(cfg, er) | ||
oau := usecase.NewOauthUsecase(cfg, oar, ur, gs, ms, uu) | ||
|
||
em := middleware.NewErrorMiddleware(logger, uu) | ||
|
@@ -69,8 +68,8 @@ func run(ctx context.Context, logger *zap.Logger) error { | |
if err != nil { | ||
logger.Fatal("failed to listen port", zap.Error(err)) | ||
} | ||
err = util.SendMail(*cfg, "[email protected]", "konnitiha", "hello") | ||
fmt.Println(err) | ||
// err = util.SendMail(*cfg, "[email protected]", "konnitiha", "hello") | ||
// fmt.Println(err) | ||
|
||
e := router.NewRouter(cfg, logger, em, atm, am, uc, ac, ec, oc) | ||
s := NewServer(e, l, logger) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.