This commit is contained in:
2025-11-19 01:28:34 +03:00
parent 469879cfd9
commit 33e49e1a00
12 changed files with 659 additions and 0 deletions

18
src/logic/business.go Normal file
View File

@@ -0,0 +1,18 @@
package logic
import (
"backend/ent"
"context"
)
type Business struct {
ctx context.Context
db *ent.Client
}
func NewBusinessLogic(ctx context.Context, client *ent.Client) *Business {
return &Business{
ctx: ctx,
db: client,
}
}