gateway/core/service.go
2021-09-07 17:12:29 +08:00

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}
}