mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-23 14:32:27 +08:00
init commit
This commit is contained in:
15
air-api/client/service.go
Normal file
15
air-api/client/service.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package client
|
||||
|
||||
// 服务实例
|
||||
type Instance struct {
|
||||
ServiceName string `json:"service_name"`
|
||||
InstanceName string `json:"instance_name"`
|
||||
InstanceAddr string `json:"instance_addr"`
|
||||
}
|
||||
|
||||
// 注册中心响应实体类
|
||||
type ResponseData struct {
|
||||
Code int `json:"code"`
|
||||
Service map[string][]Instance `json:"service"`
|
||||
Instance []Instance `json:"instance"`
|
||||
}
|
||||
Reference in New Issue
Block a user