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