From a44c7feea2fcf2fdfbc823a7516337c0e33cc130 Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 5 Jun 2017 19:53:47 +0900 Subject: [PATCH] agent GetModel interface method added --- proxy/noauthagent/agent_service.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/proxy/noauthagent/agent_service.go b/proxy/noauthagent/agent_service.go index 883bc46..1310ae8 100644 --- a/proxy/noauthagent/agent_service.go +++ b/proxy/noauthagent/agent_service.go @@ -8,11 +8,10 @@ import ( ) type NoAuthAgentService struct { - Param *NoAuthAgent `json:"param"` } func NewNoAuthAgentService() *NoAuthAgentService { - return &NoAuthAgentService{Param:&NoAuthAgent{}} + return &NoAuthAgentService{} } @@ -98,3 +97,7 @@ func(as *NoAuthAgentService)GetNoAuthList(authStatus string) (string,error) { return out,nil; } + +func (as *NoAuthAgentService) GetModel() (interface{}) { + return NewNoAuthAgent("", 0, "") +}