mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 07:10:29 +08:00
GO CLI: add empty enterprise dao functions (#17795)
GO CLI: add empty enterprise dao new functions
This commit is contained in:
@@ -64,6 +64,21 @@ type Service struct {
|
||||
ingestionTaskDAO *dao.IngestionTaskDAO
|
||||
ingestionTaskLogDao *dao.IngestionTaskLogDAO
|
||||
ingestionTaskSvc *servicepkg.IngestionTaskService
|
||||
|
||||
enterpriseUserDAO *dao.EnterpriseUserDAO
|
||||
enterpriseTaskDAO *dao.EnterpriseTaskDAO
|
||||
enterpriseFileDAO *dao.EnterpriseFileDAO
|
||||
enterpriseAPITokenDAO *dao.EnterpriseAPITokenDAO
|
||||
enterpriseBillingProductDAO *dao.EnterpriseBillingProductDAO
|
||||
enterpriseBillingSubscriptionDAO *dao.EnterpriseBillingSubscriptionDAO
|
||||
enterpriseChatDAO *dao.EnterpriseChatDAO
|
||||
enterpriseDocumentDAO *dao.EnterpriseDocumentDAO
|
||||
enterpriseMemoryDAO *dao.EnterpriseMemoryDAO
|
||||
enterpriseSearchDAO *dao.EnterpriseSearchDAO
|
||||
enterpriseTenantDAO *dao.EnterpriseTenantDAO
|
||||
enterpriseUserCanvasDAO *dao.EnterpriseUserCanvasDAO
|
||||
enterpriseUserTenantDAO *dao.EnterpriseUserTenantDAO
|
||||
enterpriseKnowledgebaseDAO *dao.EnterpriseKnowledgebaseDAO
|
||||
}
|
||||
|
||||
// NewService create admin service
|
||||
@@ -89,6 +104,21 @@ func NewService() *Service {
|
||||
ingestionTaskDAO: dao.NewIngestionTaskDAO(),
|
||||
ingestionTaskLogDao: dao.NewIngestionTaskLogDAO(),
|
||||
ingestionTaskSvc: servicepkg.NewIngestionTaskService(),
|
||||
|
||||
enterpriseUserDAO: dao.NewEnterpriseUserDAO(),
|
||||
enterpriseTaskDAO: dao.NewEnterpriseTaskDAO(),
|
||||
enterpriseFileDAO: dao.NewEnterpriseFileDAO(),
|
||||
enterpriseAPITokenDAO: dao.NewEnterpriseAPITokenDAO(),
|
||||
enterpriseBillingProductDAO: dao.NewEnterpriseBillingProductDAO(),
|
||||
enterpriseBillingSubscriptionDAO: dao.NewEnterpriseBillingSubscriptionDAO(),
|
||||
enterpriseChatDAO: dao.NewEnterpriseChatDAO(),
|
||||
enterpriseDocumentDAO: dao.NewEnterpriseDocumentDAO(),
|
||||
enterpriseMemoryDAO: dao.NewEnterpriseMemoryDAO(),
|
||||
enterpriseSearchDAO: dao.NewEnterpriseSearchDAO(),
|
||||
enterpriseTenantDAO: dao.NewEnterpriseTenantDAO(),
|
||||
enterpriseUserCanvasDAO: dao.NewEnterpriseUserCanvasDAO(),
|
||||
enterpriseUserTenantDAO: dao.NewEnterpriseUserTenantDAO(),
|
||||
enterpriseKnowledgebaseDAO: dao.NewEnterpriseKnowledgebaseDAO(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseAPITokenDAO struct{}
|
||||
|
||||
func NewEnterpriseAPITokenDAO() *EnterpriseAPITokenDAO {
|
||||
return &EnterpriseAPITokenDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseBillingProductDAO struct{}
|
||||
|
||||
func NewEnterpriseBillingProductDAO() *EnterpriseBillingProductDAO {
|
||||
return &EnterpriseBillingProductDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseBillingSubscriptionDAO struct{}
|
||||
|
||||
func NewEnterpriseBillingSubscriptionDAO() *EnterpriseBillingSubscriptionDAO {
|
||||
return &EnterpriseBillingSubscriptionDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseChatDAO struct{}
|
||||
|
||||
func NewEnterpriseChatDAO() *EnterpriseChatDAO {
|
||||
return &EnterpriseChatDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseDocumentDAO struct{}
|
||||
|
||||
func NewEnterpriseDocumentDAO() *EnterpriseDocumentDAO {
|
||||
return &EnterpriseDocumentDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseFileDAO struct{}
|
||||
|
||||
func NewEnterpriseFileDAO() *EnterpriseFileDAO {
|
||||
return &EnterpriseFileDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseKnowledgebaseDAO struct{}
|
||||
|
||||
func NewEnterpriseKnowledgebaseDAO() *EnterpriseKnowledgebaseDAO {
|
||||
return &EnterpriseKnowledgebaseDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseMemoryDAO struct{}
|
||||
|
||||
func NewEnterpriseMemoryDAO() *EnterpriseMemoryDAO {
|
||||
return &EnterpriseMemoryDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseSearchDAO struct{}
|
||||
|
||||
func NewEnterpriseSearchDAO() *EnterpriseSearchDAO {
|
||||
return &EnterpriseSearchDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseTaskDAO struct{}
|
||||
|
||||
func NewEnterpriseTaskDAO() *EnterpriseTaskDAO {
|
||||
return &EnterpriseTaskDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseTenantDAO struct{}
|
||||
|
||||
func NewEnterpriseTenantDAO() *EnterpriseTenantDAO {
|
||||
return &EnterpriseTenantDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseUserCanvasDAO struct{}
|
||||
|
||||
func NewEnterpriseUserCanvasDAO() *EnterpriseUserCanvasDAO {
|
||||
return &EnterpriseUserCanvasDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseUserDAO struct{}
|
||||
|
||||
func NewEnterpriseUserDAO() *EnterpriseUserDAO {
|
||||
return &EnterpriseUserDAO{}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,9 @@
|
||||
//
|
||||
|
||||
package dao
|
||||
|
||||
type EnterpriseUserTenantDAO struct{}
|
||||
|
||||
func NewEnterpriseUserTenantDAO() *EnterpriseUserTenantDAO {
|
||||
return &EnterpriseUserTenantDAO{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user