JM-WechatMini/model/app/oauth2_client.go
2023-11-02 04:34:46 +08:00

19 lines
475 B
Go

package app
import (
"miniapp/global"
)
// OAuth2Client OAuth2客户端信息
type OAuth2Client struct {
global.GVA_MODEL
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"
}