优化结构

This commit is contained in:
Yvan
2026-08-27 22:33:43 +08:00
parent 5052835fcb
commit e407d3ac10
86 changed files with 3151 additions and 726 deletions
+2 -5
View File
@@ -1,10 +1,7 @@
package task
import "gorm.io/gorm"
import dataprovider "kra/internal/data/provider"
// Provider is the minimal database seam required by the task tables.
// Task persistence must not depend on the full data runtime or system repos.
type Provider interface {
DB() *gorm.DB
DatabaseReady() bool
}
type Provider = dataprovider.Database