Reorganaze modules, add auth processing.
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"go.uber.org/fx"
|
||||
|
||||
"payouts/internal/config"
|
||||
"payouts/internal/models"
|
||||
"payouts/internal/service/database/orm"
|
||||
)
|
||||
|
||||
var Module = fx.Options(
|
||||
@@ -24,6 +26,7 @@ func WithContext(ctx context.Context) Optional {
|
||||
}
|
||||
|
||||
type Service interface {
|
||||
CreatePayout(models.PayoutReq, *orm.User, ...Optional)
|
||||
}
|
||||
|
||||
type Param struct {
|
||||
|
||||
Reference in New Issue
Block a user