system setting add site_prefix

This commit is contained in:
Liujian
2024-11-26 23:49:44 +08:00
parent d984be4b85
commit e13fff633e
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -41,6 +41,7 @@ type ServiceBasic struct {
ApprovalType string `json:"approval_type"`
ServiceKind string `json:"service_kind"`
InvokeAddress string `json:"invoke_address"`
SitePrefix string `json:"site_prefix"`
}
type ServiceApiBasic struct {
+2
View File
@@ -284,6 +284,7 @@ func (i *imlCatalogueModule) ServiceDetail(ctx context.Context, sid string) (*ca
serviceDoc = commit.Data.Content
}
invokeAddress, _ := i.settingService.Get(ctx, setting.KeyInvokeAddress)
sitePrefix, _ := i.settingService.Get(ctx, setting.KeySitePrefix)
return &catalogue_dto.ServiceDetail{
Name: s.Name,
@@ -301,6 +302,7 @@ func (i *imlCatalogueModule) ServiceDetail(ctx context.Context, sid string) (*ca
ApprovalType: s.ApprovalType.String(),
ServiceKind: s.Kind.String(),
InvokeAddress: invokeAddress,
SitePrefix: sitePrefix,
},
APIDoc: apiDoc,
}, nil
+1
View File
@@ -14,6 +14,7 @@ var (
const (
KeyInvokeAddress = "system.node.invoke_address"
KeySitePrefix = "system.setting.site_prefix"
)
type imlSettingService struct {