Просмотр исходного кода

Merge branch 'crm1.0' into debug

Roc 3 лет назад
Родитель
Сommit
3a594b6c09
1 измененных файлов с 23 добавлено и 3 удалено
  1. 23 3
      models/db_init.go

+ 23 - 3
models/db_init.go

@@ -6,17 +6,27 @@ import (
 	"hongze/hongze_mobile_admin/models/tables/admin_record"
 	"hongze/hongze_mobile_admin/models/tables/approval_flow"
 	"hongze/hongze_mobile_admin/models/tables/approval_flow_node"
+	"hongze/hongze_mobile_admin/models/tables/company"
 	"hongze/hongze_mobile_admin/models/tables/company_approval"
 	"hongze/hongze_mobile_admin/models/tables/company_approval_message"
 	"hongze/hongze_mobile_admin/models/tables/company_contract"
 	"hongze/hongze_mobile_admin/models/tables/company_delay_permission"
+	"hongze/hongze_mobile_admin/models/tables/company_log"
 	"hongze/hongze_mobile_admin/models/tables/company_operation_record"
 	"hongze/hongze_mobile_admin/models/tables/company_permission_log"
 	"hongze/hongze_mobile_admin/models/tables/company_product"
 	"hongze/hongze_mobile_admin/models/tables/company_product_log"
 	"hongze/hongze_mobile_admin/models/tables/company_report_permission"
+	"hongze/hongze_mobile_admin/models/tables/contract"
+	"hongze/hongze_mobile_admin/models/tables/contract_approval"
+	"hongze/hongze_mobile_admin/models/tables/contract_approval_record"
+	"hongze/hongze_mobile_admin/models/tables/contract_operation_record"
+	"hongze/hongze_mobile_admin/models/tables/contract_service_detail"
+	"hongze/hongze_mobile_admin/models/tables/contract_service_template"
+	"hongze/hongze_mobile_admin/models/tables/contract_template"
 	"hongze/hongze_mobile_admin/models/tables/h5_admin_session"
 	"hongze/hongze_mobile_admin/models/tables/report"
+	"hongze/hongze_mobile_admin/models/tables/resource"
 	"hongze/hongze_mobile_admin/models/tables/wx_token"
 	"hongze/hongze_mobile_admin/models/tables/wx_user"
 	"hongze/hongze_mobile_admin/utils"
@@ -44,21 +54,31 @@ func init() {
 	orm.RegisterModel(
 		new(admin.Admin),
 		new(admin_record.AdminRecord),
+		new(approval_flow.ApprovalFlow),
+		new(approval_flow_node.ApprovalFlowNode),
+		new(company.Company),
 		new(company_approval.CompanyApproval),
 		new(company_approval_message.CompanyApprovalMessage),
 		new(company_contract.CompanyContract),
 		new(company_delay_permission.CompanyDelayPermission),
+		new(company_log.CompanyLog),
 		new(company_operation_record.CompanyOperationRecord),
 		new(company_permission_log.CompanyPermissionLog),
 		new(company_product.CompanyProduct),
 		new(company_product_log.CompanyProductLog),
 		new(company_report_permission.CompanyReportPermission),
+		new(contract.Contract),
+		new(contract_approval.ContractApproval),
+		new(contract_approval_record.ContractApprovalRecord),
+		new(contract_operation_record.ContractOperationRecord),
+		new(contract_service_detail.ContractServiceDetail),
+		new(contract_service_template.ContractServiceTemplate),
+		new(contract_template.ContractTemplate),
 		new(h5_admin_session.H5AdminSession),
+		new(report.Report),
+		new(resource.Resource),
 		new(wx_token.WxToken),
 		new(wx_user.WxUser),
-		new(report.Report),
-		new(approval_flow.ApprovalFlow),
-		new(approval_flow_node.ApprovalFlowNode),
 	)
 
 }