Skip to content

refactor(admin): migrate to non-DTO pattern for cleaner architecture#83

Merged
devzeeh merged 11 commits into
developmentfrom
refactor/admin
Jul 24, 2026
Merged

refactor(admin): migrate to non-DTO pattern for cleaner architecture#83
devzeeh merged 11 commits into
developmentfrom
refactor/admin

Conversation

@devzeeh

@devzeeh devzeeh commented Jul 24, 2026

Copy link
Copy Markdown
Owner

refactor(admin): migrate to non-DTO pattern for cleaner architecture

  • Removed dto.go entirely to eliminate the standalone DTO file pattern.
  • Moved all HTTP request payloads into handler.go to keep them localized to their respective handlers.
  • Consolidated core domain results and view models into a unified model.go.
  • Strengthened clean architecture principles by separating transport objects from database entities.

dependabot Bot and others added 11 commits July 10, 2026 18:11
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.45.0 to 0.52.0.
- [Commits](golang/crypto@v0.45.0...v0.52.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.52.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…x/crypto-0.52.0

deps: bump golang.org/x/crypto from 0.45.0 to 0.52.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.52.0 to 0.54.0.
- [Commits](golang/crypto@v0.52.0...v0.54.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…x/crypto-0.54.0

deps: bump golang.org/x/crypto from 0.52.0 to 0.54.0
Project is in v0.0.1-rc status.
- Separate handler, service, repository, model, validator, jwt, mailer, middleware, utils, and routes into individual files
- Remove deprecated strings.Title in favor of golang.org/x/text/cases
- Add mutex to otpStore to fix concurrent read/write race condition
- Extract all SMTP logic into mailer.go to remove duplication
- Add ValidateForgotPasswordRequest to catch invalid email input
- Move RateLimitMiddleware to middleware package
- Register all auth routes via auth.RegisterRoutes in main.go
- Removed `dto.go` entirely to eliminate the standalone DTO file pattern.
- Moved all HTTP request payloads into `handler.go` to keep them localized to their respective handlers.
- Consolidated core domain results and view models into a unified `model.go`.
- Strengthened clean architecture principles by separating transport objects from database entities.
@devzeeh
devzeeh merged commit db5b5d4 into development Jul 24, 2026
2 checks passed
@devzeeh
devzeeh deleted the refactor/admin branch July 24, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant