gateway/core/service.go

17 lines
288 B
Go

package core
type serviceMap struct {
Path string
Service string
Enable bool
}
func NewServiceMapItem(k, v string, e bool) serviceMap {
//var sma []serviceMap
// 从Nacos读取规则
// gateway:
// - path: /user
// service: mb-user-service
return serviceMap{k, v, e}
}