Files
template-go-backend/src/logic/business.go
2025-11-19 01:29:21 +03:00

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,
}
}