mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2025-11-13 09:53:53 +00:00
28 lines
638 B
Go
28 lines
638 B
Go
package resolvespec
|
|
|
|
// Legacy interfaces for backward compatibility
|
|
type GormTableNameInterface interface {
|
|
TableName() string
|
|
}
|
|
|
|
type GormTableSchemaInterface interface {
|
|
TableSchema() string
|
|
}
|
|
|
|
type GormTableCRUDRequest struct {
|
|
Request *string `json:"_request"`
|
|
}
|
|
|
|
func (r *GormTableCRUDRequest) SetRequest(request string) {
|
|
r.Request = &request
|
|
}
|
|
|
|
func (r GormTableCRUDRequest) GetRequest() string {
|
|
return *r.Request
|
|
}
|
|
|
|
// New interfaces that replace the legacy ones above
|
|
// These are now defined in database.go:
|
|
// - TableNameProvider (replaces GormTableNameInterface)
|
|
// - SchemaProvider (replaces GormTableSchemaInterface)
|