From 1f76fdffffaa1bf46ad4f458139348c99ec0a5a1 Mon Sep 17 00:00:00 2001 From: lyric Date: Tue, 9 Aug 2016 15:38:15 +0800 Subject: [PATCH] modify client model --- README.md | 9 --------- model.go | 1 - models/client.go | 5 ----- 3 files changed, 15 deletions(-) diff --git a/README.md b/README.md index 21ea8bf..aa31a91 100644 --- a/README.md +++ b/README.md @@ -36,15 +36,6 @@ $ go get -u gopkg.in/oauth2.v3 ``` -#### Or use [glide](https://github.com/Masterminds/glide) - -``` bash -$ cd $GOPATH/src -$ git clone https://github.com/go-oauth2/oauth2 gopkg.in/oauth2.v3 -$ cd gopkg.in/oauth2.v3 -$ glide install -``` - ### Create file `server.go` ``` go diff --git a/model.go b/model.go index 3ef41ee..2f960b3 100644 --- a/model.go +++ b/model.go @@ -8,7 +8,6 @@ type ( GetID() string GetSecret() string GetDomain() string - GetExtraData() interface{} } // TokenInfo the token information model interface diff --git a/models/client.go b/models/client.go index 8e44b27..a3cb525 100644 --- a/models/client.go +++ b/models/client.go @@ -21,8 +21,3 @@ func (c *Client) GetSecret() string { func (c *Client) GetDomain() string { return c.Domain } - -// GetExtraData extension data related to the client -func (c *Client) GetExtraData() interface{} { - return nil -}