mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-12 18:11:34 +08:00
fix service info no prefix
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user