From fa6d6712af5c2403548b2cd01cf3730c709a1e0f Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 13 Dec 2017 19:17:03 +0900 Subject: [PATCH] ing --- modules/config/model/Connection.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/config/model/Connection.go b/modules/config/model/Connection.go index 59d020f..df342d4 100644 --- a/modules/config/model/Connection.go +++ b/modules/config/model/Connection.go @@ -1,8 +1,10 @@ package model +import "encoding/json" + type Connection struct { - IP string `json:"ip,omitempty"` - Port string `json:"port,omitempty"` - PortType string `json:"portType,omitempty"` - SSL bool `json:"ssl,omitempty"` + IP string `json:"ip,omitempty"` + Port json.Number `json:"port,Number,omitempty"` + PortType string `json:"portType,omitempty"` + SSL bool `json:"ssl,omitempty"` }