generated from yandex-praktikum/go-musthave-group-diploma-tpl
-
Notifications
You must be signed in to change notification settings - Fork 0
Bugfixinorderlogic #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Zagir2000
wants to merge
19
commits into
master
Choose a base branch
from
bugfixinorderlogic
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or 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
* flag.go опечатка * main.go создали структуру хранения токенов * ../../go.mod новые зависимости * ../../go.sum новые зависимости + ../../internal/gofermart/auth/cache/cache.go добавляем и храним токены + ../../internal/gofermart/auth/hashpassword.go хешируем пароль + ../../internal/gofermart/auth/jwt.go создаем токены + ../../internal/gofermart/handlers/auth.go аутентификация + ../../internal/gofermart/handlers/hadnlestruct.go структуры - ../../internal/gofermart/handlers/handlers.go регистарция и авторизация(надо сделать перенаправление) * ../../internal/gofermart/handlers/router.go новые хенделры * ../../internal/gofermart/migrations/0001_init.up.sql изменили наименование для корректности + ../../internal/gofermart/models/models.go для удобавста данные юзера будем хранить в отедльном пакете + ../../internal/gofermart/pkg/errors.go пакет для ошибок для удобства + ../../internal/gofermart/storage/auth.go добавление и чтение из бд * ../../internal/gofermart/storage/db.go операции с бд(миграции, соединение и тд) * ../../internal/gofermart/storage/interfacestorage.go интерфейс логики для работы с бд
* internal/gofermart/auth/jwt.go поправлено * internal/gofermart/handlers/auth.go поправлено + internal/gofermart/handlers/orders.go добавили новый хэндер для загрузки заказов * internal/gofermart/handlers/router.go новый пост хэндлер + internal/gofermart/migrations/0002_orders.up.sql * internal/gofermart/models/models.go структура заказа * internal/gofermart/storage/auth.go поправлено * internal/gofermart/storage/interfacestorage.go новая функция + internal/gofermart/storage/order.go добавление заказов в бд + internal/luna/luna.go алгоритм луна * pkg/errors.go ошибки
* ../../internal/gofermart/handlers/orders.go поправлено на инт64 * ../../internal/gofermart/migrations/0002_orders.up.sql новые поля * ../../internal/gofermart/models/models.go новые поля * ../../internal/gofermart/storage/auth.go проверяем только логин * ../../internal/gofermart/storage/order.go добавляем статус * ../../internal/luna/luna.go поправлено на инт64
* main.go поправлено * ../../internal/gofermart/handlers/auth.go нулевой баланс при авторизации + ../../internal/gofermart/handlers/balance.go хэндлер баланс * ../../internal/gofermart/handlers/hadnlestruct.go поправлено * ../../internal/gofermart/handlers/orders.go поправлено * ../../internal/gofermart/handlers/router.go новые хэгдлеры * ../../internal/gofermart/migrations/0002_orders.up.sql поправлены миграции: дата и убрали уникальный номер с логина + ../../internal/gofermart/migrations/0003_balance.up.sql миграции для баланса * ../../internal/gofermart/models/models.go новые структуры для баланса + ../../internal/gofermart/storage/balance.go бд баланса * ../../internal/gofermart/storage/db.go поправлено * ../../internal/gofermart/storage/interfacestorage.go вз-е с бд * ../../internal/gofermart/storage/order.go логика при списании и начислении
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.