Sketch
This commit is contained in:
18
src/logic/business.go
Normal file
18
src/logic/business.go
Normal 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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user