Files
MonkeyCode/backend/db/predicate/predicate.go
Haoxin Li 9388e149d6 feat: Add CodeSnippet entity and related functionality
- Introduced CodeSnippet schema with fields for snippet details and relationships to WorkspaceFile.
- Enhanced WorkspaceFileUpdate and WorkspaceFileUpdateOne to manage snippets, including adding, removing, and clearing snippet relationships.
- Updated Swagger documentation to include new API endpoints for CLI command execution and workspace file management.
- Implemented domain structures for handling code files and AST parsing results.
- Refactored Workspace and WorkspaceFile use cases to support new functionalities.
- Adjusted CLI command execution to handle code file information in JSON format.
- Improved error handling and logging throughout the workspace and file management processes.
2025-07-25 19:35:00 +08:00

71 lines
2.2 KiB
Go

// Code generated by ent, DO NOT EDIT.
package predicate
import (
"entgo.io/ent/dialect/sql"
)
// Admin is the predicate function for admin builders.
type Admin func(*sql.Selector)
// AdminLoginHistory is the predicate function for adminloginhistory builders.
type AdminLoginHistory func(*sql.Selector)
// ApiKey is the predicate function for apikey builders.
type ApiKey func(*sql.Selector)
// BillingPlan is the predicate function for billingplan builders.
type BillingPlan func(*sql.Selector)
// BillingQuota is the predicate function for billingquota builders.
type BillingQuota func(*sql.Selector)
// BillingRecord is the predicate function for billingrecord builders.
type BillingRecord func(*sql.Selector)
// BillingUsage is the predicate function for billingusage builders.
type BillingUsage func(*sql.Selector)
// CodeSnippet is the predicate function for codesnippet builders.
type CodeSnippet func(*sql.Selector)
// Extension is the predicate function for extension builders.
type Extension func(*sql.Selector)
// InviteCode is the predicate function for invitecode builders.
type InviteCode func(*sql.Selector)
// Model is the predicate function for model builders.
type Model func(*sql.Selector)
// ModelProvider is the predicate function for modelprovider builders.
type ModelProvider func(*sql.Selector)
// ModelProviderModel is the predicate function for modelprovidermodel builders.
type ModelProviderModel func(*sql.Selector)
// Setting is the predicate function for setting builders.
type Setting func(*sql.Selector)
// Task is the predicate function for task builders.
type Task func(*sql.Selector)
// TaskRecord is the predicate function for taskrecord builders.
type TaskRecord func(*sql.Selector)
// User is the predicate function for user builders.
type User func(*sql.Selector)
// UserIdentity is the predicate function for useridentity builders.
type UserIdentity func(*sql.Selector)
// UserLoginHistory is the predicate function for userloginhistory builders.
type UserLoginHistory func(*sql.Selector)
// Workspace is the predicate function for workspace builders.
type Workspace func(*sql.Selector)
// WorkspaceFile is the predicate function for workspacefile builders.
type WorkspaceFile func(*sql.Selector)