feat: update by query

This commit is contained in:
Rogee
2024-12-19 22:56:54 +08:00
parent e3be1079b4
commit 24553e9875
13 changed files with 43 additions and 32 deletions

View File

@@ -8,7 +8,7 @@ import (
"github.com/gofiber/fiber/v3"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
hashids "github.com/speps/go-hashids/v2"
"github.com/speps/go-hashids/v2"
)
// @provider

View File

@@ -7,7 +7,7 @@ import (
"git.ipao.vip/rogeecn/atom/container"
"git.ipao.vip/rogeecn/atom/contracts"
"git.ipao.vip/rogeecn/atom/utils/opt"
hashids "github.com/speps/go-hashids/v2"
"github.com/speps/go-hashids/v2"
)
func Provide(opts ...opt.Option) error {
@@ -23,7 +23,6 @@ func Provide(opts ...opt.Option) error {
}); err != nil {
return err
}
if err := container.Container.Provide(func(
controller *Controller,
) (contracts.HttpRoute, error) {
@@ -37,7 +36,6 @@ func Provide(opts ...opt.Option) error {
}, atom.GroupRoutes); err != nil {
return err
}
if err := container.Container.Provide(func(
db *sql.DB,
hashIds *hashids.HashID,
@@ -53,6 +51,5 @@ func Provide(opts ...opt.Option) error {
}); err != nil {
return err
}
return nil
}