feat: add wechat pay

This commit is contained in:
Rogee
2025-01-14 14:42:08 +08:00
parent 52c17b63bb
commit 9cd7659d14
32 changed files with 1431 additions and 110 deletions

View File

@@ -3,6 +3,8 @@ package posts
import (
"database/sql"
"backend/app/http/tenants"
"git.ipao.vip/rogeecn/atom"
"git.ipao.vip/rogeecn/atom/container"
"git.ipao.vip/rogeecn/atom/contracts"
@@ -12,9 +14,11 @@ import (
func Provide(opts ...opt.Option) error {
if err := container.Container.Provide(func(
svc *Service,
tenantSvc *tenants.Service,
) (*Controller, error) {
obj := &Controller{
svc: svc,
svc: svc,
tenantSvc: tenantSvc,
}
if err := obj.Prepare(); err != nil {
return nil, err