fix service info no prefix

This commit is contained in:
Liujian
2024-11-04 10:59:05 +08:00
parent b6dee4671a
commit cc9ffdd182
2 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -75,11 +75,14 @@ type App struct {
}
func ToService(model *service.Service) *Service {
prefix := "/"
if model.Prefix != "" {
prefix = model.Prefix
}
s := &Service{
Id: model.Id,
Name: model.Name,
Prefix: model.Prefix,
Prefix: prefix,
Description: model.Description,
Team: auto.UUID(model.Team),
ServiceType: model.ServiceType.String(),