19 lines
243 B
Go
19 lines
243 B
Go
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,
|
|
}
|
|
}
|