template-monorepo/internal/model/notification
王性驊 49e7099bf2 add notification and member modules with local dev stack
Implement outbound notification (sync/async, idempotency, quota, DLQ),
member OTP/verification, SMTP/SES/Mitake providers, shared Redis wiring,
docker-compose for Mongo/Redis, and gateway config documentation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-20 15:01:08 +08:00
..
config add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00
domain add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00
mock/repository add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00
provider add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00
repository add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00
template add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00
usecase add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00
README.md add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00
const.go add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00
errors.go add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00
redis.go add notification and member modules with local dev stack 2026-05-20 15:01:08 +08:00

README.md

ji3

擴充指南

新增 Email Provider

已內建:smtp_sender.goses_sender.go。若要再加其他 ESP

  1. provider/email/ 實作 SenderNameSortSend)。
  2. config/config.go 加設定區塊,並在 collectEmailSenders 註冊。
  3. provider/email/*_test.go

新增 NotifyKind

  1. domain/enum/kind.go 常數。
  2. embed 模板 + template/registry.go
  3. 若為 OTP 類,業務呼叫時設 DoNotPersistBody: true

新增 HTTP API

  1. generate/api/ 定義路由。
  2. make gen-api
  3. internal/logic 只呼叫 domain/usecase 介面,做 types ↔ DTO 映射。

相關文件