MSP-5186 Rename Service to AppGroup (without update controller and service names and endpoints)

This commit is contained in:
Синельник Тимур Романович committed 2025-04-01 20:26:06 +03:00
1 parent d012a022d8
commit 42b0dbd0dc
22 files changed
+230 -177

No files matched your search

+6 -5
View File
@@ -1,8 +1,9 @@
package tests_test
import (
"github.com/txix-open/isp-kit/test/dbt"
"isp-system-service/entity"
"github.com/txix-open/isp-kit/test/dbt"
)
func InsertDomain(db *dbt.TestDb, value entity.Domain) {
@@ -15,9 +16,9 @@ func InsertDomain(db *dbt.TestDb, value entity.Domain) {
db.Must().ExecNamed(q, value)
}
func InsertService(db *dbt.TestDb, value entity.Service) {
func InsertAppGroup(db *dbt.TestDb, value entity.AppGroup) {
q := `
INSERT INTO service
INSERT INTO application_group
(id, name, description, domain_id, created_at, updated_at)
VALUES
(:id, :name, :description, :domain_id, :created_at, :updated_at)
@@ -28,9 +29,9 @@ func InsertService(db *dbt.TestDb, value entity.Service) {
func InsertApplication(db *dbt.TestDb, value entity.Application) {
q := `
INSERT INTO application
(id, name, description, service_id, created_at, updated_at)
(id, name, description, application_group_id, created_at, updated_at)
VALUES
(:id, :name, :description, :service_id, :created_at, :updated_at)
(:id, :name, :description, :application_group_id, :created_at, :updated_at)
`
db.Must().ExecNamed(q, value)
}