Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plan ¶
type Plan struct {
ID string `db:"id" json:"id"`
Name string `db:"name" json:"name"`
LookupKey string `db:"lookup_key" json:"lookup_key"`
Description string `db:"description" json:"description"`
EnvironmentID string `db:"environment_id" json:"environment_id"`
types.BaseModel
}
func FromEntList ¶
FromEntList converts a list of Ent Plans to domain Plans
type Repository ¶
type Repository interface {
// Core operations
Create(ctx context.Context, plan *Plan) error
Get(ctx context.Context, id string) (*Plan, error)
List(ctx context.Context, filter *types.PlanFilter) ([]*Plan, error)
ListAll(ctx context.Context, filter *types.PlanFilter) ([]*Plan, error)
Count(ctx context.Context, filter *types.PlanFilter) (int, error)
Update(ctx context.Context, plan *Plan) error
Delete(ctx context.Context, id string) error
// Lookup operations
GetByLookupKey(ctx context.Context, lookupKey string) (*Plan, error)
}
Repository defines the interface for plan persistence operations
Click to show internal directories.
Click to hide internal directories.