Lee-WineList/model/entity/oauth2_client.go
2023-04-24 17:19:41 +08:00

19 lines
490 B
Go

package entity
import (
"Lee-WineList/common/types"
)
// OAuth2Client OAuth2客户端信息
type OAuth2Client struct {
types.BaseDbModel
ClientId string `gorm:"type:varchar(255) not null"`
ClientSecret string `gorm:"type:varchar(255) not null"`
Grant string `gorm:"type:varchar(255) not null"` // 允许的授权范围,支持类型: oauth2.GrantType
Domain string `gorm:"type:varchar(255)"`
}
func (OAuth2Client) TableName() string {
return "t_oauth2_client"
}