fix some issue

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2021-08-13 08:56:26 +08:00 committed by Gaius
parent 7f46ba5e90
commit 14b5d5db22
No known key found for this signature in database
GPG Key ID: 8B4E5D1290FA2FFB
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
package model
type Settings struct {
ID uint `gorm:"primarykey;comment:id" json:"id"`
Model
Key string `gorm:"column:key;type:varchar(256);index:uk_settings_key,unique;not null;comment:setting key" json:"key"`
Value string `gorm:"column:value;type:varchar(256);not null;comment:setting value" json:"value"`
}

View File

@ -149,8 +149,8 @@ func Init(console bool, verbose bool, publicPath string, service service.REST, e
oa.DELETE("/:id", h.DestroyOauth)
oa.PUT("/:id", h.UpdateOauth)
oa.POST("", h.CreateOauth)
oa.GET("/:oauth_name/signin", h.OauthSignin)
oa.GET("/:oauth_name/callback", h.OauthCallback(jwt))
oa.GET("/signin/:oauth_name", h.OauthSignin)
oa.GET("/callback/:oauth_name", h.OauthCallback(jwt))
// Security Group
sg := apiv1.Group("/security-groups")