feat(auth): 重构认证模块,添加登录和检查Token功能,更新路由和数据结构
This commit is contained in:
@@ -10,13 +10,6 @@ import (
|
||||
)
|
||||
|
||||
func Provide(opts ...opt.Option) error {
|
||||
if err := container.Container.Provide(func() (*auth, error) {
|
||||
obj := &auth{}
|
||||
|
||||
return obj, nil
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := container.Container.Provide(func() (*contents, error) {
|
||||
obj := &contents{}
|
||||
|
||||
@@ -32,7 +25,6 @@ func Provide(opts ...opt.Option) error {
|
||||
return err
|
||||
}
|
||||
if err := container.Container.Provide(func(
|
||||
auth *auth,
|
||||
contents *contents,
|
||||
middlewares *middlewares.Middlewares,
|
||||
orders *orders,
|
||||
@@ -40,7 +32,6 @@ func Provide(opts ...opt.Option) error {
|
||||
users *users,
|
||||
) (contracts.HttpRoute, error) {
|
||||
obj := &Routes{
|
||||
auth: auth,
|
||||
contents: contents,
|
||||
middlewares: middlewares,
|
||||
orders: orders,
|
||||
|
||||
Reference in New Issue
Block a user