You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.4 KiB

// 自动生成模板Provider
package model
import (
"pure-admin/global"
)
// 如果含有time.Time 请自行import time包
type Provider struct {
global.MG_MODEL
Owner string `gorm:"size:50;comment:用户所属" json:"owner" ` // 用户所属
Name string `gorm:"size:50;comment:提供者名称" json:"name" ` // 提供者名称
Category string `gorm:"size:50;comment:提供者分类" json:"category" ` // 提供者分类 1-社交 2-支付 3-媒体 4-其他
Code string `gorm:"size:50;comment:提供者代码" json:"code" ` // 提供者代码 google facebook twitter tiktok
ClientID string `gorm:"size:50;comment:客户端ID" json:"client_id" ` // 客户端ID
ClientSecret string `gorm:"size:50;comment:客户端密钥" json:"client_secret" ` // 客户端密钥
Scope string `gorm:"size:50;comment:作用域" json:"scope" ` // 作用域
RedirectURI string `gorm:"size:50;comment:重定向URI" json:"redirect_uri" ` // 重定向URI
AuthURI string `gorm:"size:50;comment:认证URI" json:"auth_uri" ` // 认证URI
TokenURI string `gorm:"size:50;comment:令牌URI" json:"token_uri" ` // 令牌URI
UserInfoURI string `gorm:"size:50;comment:用户信息URI" json:"user_info_uri" ` // 用户信息URI
}
func (Provider) TableName() string {
return "provider"
}