2026-08-09 10:43:45 +08:00
|
|
|
package impl
|
|
|
|
|
|
2026-08-09 15:10:19 +08:00
|
|
|
import "bsm/full/module/ec/delivery/internal/models"
|
2026-08-09 10:43:45 +08:00
|
|
|
|
2026-08-09 15:10:19 +08:00
|
|
|
func withModel() error {
|
|
|
|
|
if Configure.DSN == "" {
|
|
|
|
|
return nil
|
2026-08-09 10:43:45 +08:00
|
|
|
}
|
2026-08-09 15:10:19 +08:00
|
|
|
return models.New(Configure.DSN, nil)
|
2026-08-09 10:43:45 +08:00
|
|
|
}
|