models

package
v0.0.0-...-d125d34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppType

type AppType uint8
const (
	HorizonOAuthAPP AppType = 1
	DirectOAuthAPP  AppType = 2
)

type OauthApp

type OauthApp struct {
	ID          uint      `gorm:"primarykey"`
	Name        string    `gorm:"column:name"`
	ClientID    string    `gorm:"column:client_id"`
	RedirectURL string    `gorm:"column:redirect_url"`
	HomeURL     string    `gorm:"column:home_url"`
	Desc        string    `gorm:"column:description"`
	OwnerType   OwnerType `gorm:"column:owner_type"`
	OwnerID     uint      `gorm:"column:owner_id"`
	AppType     AppType   `gorm:"column:app_type"`

	CreatedAt time.Time `gorm:"column:created_at"`
	CreatedBy uint      `gorm:"column:created_by"`

	UpdatedAt time.Time `gorm:"column:updated_at"`
	UpdatedBy uint      `gorm:"column:updated_by"`
}

func (*OauthApp) IsGroupOwnerType

func (a *OauthApp) IsGroupOwnerType() bool

type OauthClientSecret

type OauthClientSecret struct {
	ID           uint      `gorm:"column:id" json:"id"`
	ClientID     string    `gorm:"column:client_id" json:"clientID"`
	ClientSecret string    `gorm:"column:client_secret" json:"clientSecret"`
	CreatedAt    time.Time `gorm:"column:created_at" json:"createdAt"`
	CreatedBy    uint      `gorm:"column:created_by" json:"createdBy"`
}

type OwnerType

type OwnerType uint8
const (
	GroupOwnerType OwnerType = 1
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL