agent GetModel interface method added

This commit is contained in:
geek 2017-06-05 19:53:47 +09:00
parent 5e898d1485
commit a44c7feea2

View File

@ -8,11 +8,10 @@ import (
) )
type NoAuthAgentService struct { type NoAuthAgentService struct {
Param *NoAuthAgent `json:"param"`
} }
func NewNoAuthAgentService() *NoAuthAgentService { func NewNoAuthAgentService() *NoAuthAgentService {
return &NoAuthAgentService{Param:&NoAuthAgent{}} return &NoAuthAgentService{}
} }
@ -98,3 +97,7 @@ func(as *NoAuthAgentService)GetNoAuthList(authStatus string) (string,error) {
return out,nil; return out,nil;
} }
func (as *NoAuthAgentService) GetModel() (interface{}) {
return NewNoAuthAgent("", 0, "")
}