auth

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	gorm.Model

	AppName     string `gorm:"column:app_name" json:"app_name"`
	AppID       string `gorm:"column:app_id" json:"app_id"`
	AppSecret   string `gorm:"column:app_secret" json:"app_secret"`
	RedirectUri string `gorm:"column:redirect_uri" json:"redirect_uri"`
	Description string `gorm:"column:description" json:"description"`
	Status      uint8  `gorm:"column:status" json:"status"`
}

func (*App) Create

func (a *App) Create(db *gorm.DB) (id uint, err error)

func (*App) Delete

func (a *App) Delete(db *gorm.DB) (err error)

func (*App) First

func (a *App) First(db *gorm.DB) (app *App, err error)

func (*App) TableName

func (a *App) TableName() string

func (*App) Updates

func (a *App) Updates(db *gorm.DB, m map[string]interface{}) (err error)

Jump to

Keyboard shortcuts

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