From 776340914e080fafaa9511c6c4b54495561a27e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AF=E6=9C=9F?= Date: Wed, 20 Mar 2019 00:03:00 +0800 Subject: [PATCH] Fix dump command Signed-off-by: Kerie --- models/oauth2_application.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/oauth2_application.go b/models/oauth2_application.go index dd80a79b485e9..b562392b26ff5 100644 --- a/models/oauth2_application.go +++ b/models/oauth2_application.go @@ -41,7 +41,7 @@ type OAuth2Application struct { } // TableName sets the table name to `oauth2_application` -func (app *OAuth2Application) TableName() string { +func (OAuth2Application) TableName() string { return "oauth2_application" } @@ -265,7 +265,7 @@ type OAuth2AuthorizationCode struct { } // TableName sets the table name to `oauth2_authorization_code` -func (code *OAuth2AuthorizationCode) TableName() string { +func (OAuth2AuthorizationCode) TableName() string { return "oauth2_authorization_code" } @@ -349,7 +349,7 @@ type OAuth2Grant struct { } // TableName sets the table name to `oauth2_grant` -func (grant *OAuth2Grant) TableName() string { +func (OAuth2Grant) TableName() string { return "oauth2_grant" }