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.

21 lines
982 B

// 自动生成模板Application
package model
import "shop-api/global"
// 如果含有time.Time 请自行import time包
type Application struct {
global.MG_MODEL
Owner string `gorm:"size:50;comment:用户所属" json:"owner" ` // 用户所属
Name string `gorm:"size:50;comment:应用名称" json:"name" ` // 应用名称
Appid string `gorm:"size:50;comment:应用ID" json:"appid" ` // 应用ID
Logo string `gorm:"size:255;comment:应用logo" json:"logo" ` // 应用logo
Organization string `gorm:"size:50;comment:组织" json:"organization" ` // 组织
Provider string `gorm:"type:text;comment:提供者" json:"provider" ` // 提供者
ClientID string `gorm:"size:50;comment:客户端ID" json:"clientID" ` // 客户端ID
ClientSecret string `gorm:"size:50;comment:客户端密钥" json:"clientSecret" ` // 客户端密钥
}
func (Application) TableName() string {
return "application"
}