add: Add protocol configuration in the return node
This commit is contained in:
parent
d78d79fa2d
commit
b099331302
@ -44,6 +44,7 @@ type (
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Uuid string `json:"uuid"`
|
Uuid string `json:"uuid"`
|
||||||
Protocol string `json:"protocol"`
|
Protocol string `json:"protocol"`
|
||||||
|
Protocols string `json:"protocols"`
|
||||||
Port uint16 `json:"port"`
|
Port uint16 `json:"port"`
|
||||||
Address string `json:"address"`
|
Address string `json:"address"`
|
||||||
Tags []string `json:"tags"`
|
Tags []string `json:"tags"`
|
||||||
|
|||||||
@ -141,6 +141,7 @@ func (l *QueryUserSubscribeNodeListLogic) getServers(userSub *user.Subscribe) (u
|
|||||||
Name: n.Name,
|
Name: n.Name,
|
||||||
Uuid: userSub.UUID,
|
Uuid: userSub.UUID,
|
||||||
Protocol: n.Protocol,
|
Protocol: n.Protocol,
|
||||||
|
Protocols: server.Protocols,
|
||||||
Port: n.Port,
|
Port: n.Port,
|
||||||
Address: n.Address,
|
Address: n.Address,
|
||||||
Tags: strings.Split(n.Tags, ","),
|
Tags: strings.Split(n.Tags, ","),
|
||||||
|
|||||||
@ -2634,6 +2634,7 @@ type UserSubscribeNodeInfo struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Uuid string `json:"uuid"`
|
Uuid string `json:"uuid"`
|
||||||
Protocol string `json:"protocol"`
|
Protocol string `json:"protocol"`
|
||||||
|
Protocols string `json:"protocols"`
|
||||||
Port uint16 `json:"port"`
|
Port uint16 `json:"port"`
|
||||||
Address string `json:"address"`
|
Address string `json:"address"`
|
||||||
Tags []string `json:"tags"`
|
Tags []string `json:"tags"`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user