GO CLI: modify enterprise dao functions (#17812)

GO CLI: modify enterprise dao functions
This commit is contained in:
maoyifeng
2026-08-04 20:13:03 +08:00
committed by GitHub
parent f08a9a9a50
commit 47a4ab1c45
15 changed files with 14 additions and 106 deletions

View File

@@ -65,20 +65,10 @@ type Service struct {
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
BillingProductDAO *dao.BillingProductDAO
BillingSubscriptionDAO *dao.BillingSubscriptionDAO
MemoryDAO *dao.MemoryDAO
SearchDAO *dao.SearchDAO
}
// NewService create admin service
@@ -105,20 +95,10 @@ func NewService() *Service {
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(),
BillingProductDAO: dao.NewBillingProductDAO(),
BillingSubscriptionDAO: dao.NewBillingSubscriptionDAO(),
MemoryDAO: dao.NewMemoryDAO(),
SearchDAO: dao.NewSearchDAO(),
}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseAPITokenDAO struct{}
func NewEnterpriseAPITokenDAO() *EnterpriseAPITokenDAO {
return &EnterpriseAPITokenDAO{}
}

View File

@@ -16,8 +16,8 @@
package dao
type EnterpriseBillingProductDAO struct{}
type BillingProductDAO struct{}
func NewEnterpriseBillingProductDAO() *EnterpriseBillingProductDAO {
return &EnterpriseBillingProductDAO{}
func NewBillingProductDAO() *BillingProductDAO {
return &BillingProductDAO{}
}

View File

@@ -16,8 +16,8 @@
package dao
type EnterpriseBillingSubscriptionDAO struct{}
type BillingSubscriptionDAO struct{}
func NewEnterpriseBillingSubscriptionDAO() *EnterpriseBillingSubscriptionDAO {
return &EnterpriseBillingSubscriptionDAO{}
func NewBillingSubscriptionDAO() *BillingSubscriptionDAO {
return &BillingSubscriptionDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseChatDAO struct{}
func NewEnterpriseChatDAO() *EnterpriseChatDAO {
return &EnterpriseChatDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseDocumentDAO struct{}
func NewEnterpriseDocumentDAO() *EnterpriseDocumentDAO {
return &EnterpriseDocumentDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseFileDAO struct{}
func NewEnterpriseFileDAO() *EnterpriseFileDAO {
return &EnterpriseFileDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseKnowledgebaseDAO struct{}
func NewEnterpriseKnowledgebaseDAO() *EnterpriseKnowledgebaseDAO {
return &EnterpriseKnowledgebaseDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseMemoryDAO struct{}
func NewEnterpriseMemoryDAO() *EnterpriseMemoryDAO {
return &EnterpriseMemoryDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseSearchDAO struct{}
func NewEnterpriseSearchDAO() *EnterpriseSearchDAO {
return &EnterpriseSearchDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseTaskDAO struct{}
func NewEnterpriseTaskDAO() *EnterpriseTaskDAO {
return &EnterpriseTaskDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseTenantDAO struct{}
func NewEnterpriseTenantDAO() *EnterpriseTenantDAO {
return &EnterpriseTenantDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseUserCanvasDAO struct{}
func NewEnterpriseUserCanvasDAO() *EnterpriseUserCanvasDAO {
return &EnterpriseUserCanvasDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseUserDAO struct{}
func NewEnterpriseUserDAO() *EnterpriseUserDAO {
return &EnterpriseUserDAO{}
}

View File

@@ -15,9 +15,3 @@
//
package dao
type EnterpriseUserTenantDAO struct{}
func NewEnterpriseUserTenantDAO() *EnterpriseUserTenantDAO {
return &EnterpriseUserTenantDAO{}
}