mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
system setting add site_prefix
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -14,6 +14,7 @@ var (
|
||||
|
||||
const (
|
||||
KeyInvokeAddress = "system.node.invoke_address"
|
||||
KeySitePrefix = "system.setting.site_prefix"
|
||||
)
|
||||
|
||||
type imlSettingService struct {
|
||||
|
||||
Reference in New Issue
Block a user