feat: add wechat pay
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user