dto

package
v1.19.29 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminLoginDataView added in v1.18.1

type AdminLoginDataView struct {
	Apps    []AppDataView         `json:"apps"`
	Records []LoginRecordDataView `json:"records"`
}

type AppDataView added in v1.18.1

type AppDataView struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
}

type AppGroupClassified

type AppGroupClassified struct {
	Group Group     `json:"group"`
	App   []AppShow `json:"app"`
}

type AppNew

type AppNew struct {
	AppShowDetail
	AppSecret string `json:"appSecret"`
}

type AppShow

type AppShow struct {
	ID             uint   `json:"id"`
	Name           string `json:"name"`
	Callback       string `json:"callback"`
	PermitAllGroup bool   `json:"permitAllGroup"`
	LinkOff        bool   `json:"linkOff"`
	Views          uint64 `json:"views"`
}

type AppShowDetail

type AppShowDetail struct {
	AppShowOwner
	Groups []Group `json:"groups" gorm:"-"`
}

type AppShowOwner

type AppShowOwner struct {
	AppShow
	AppCode string `json:"appCode"`
}

type AppShowWithGroup

type AppShowWithGroup struct {
	AppShow
	GroupID   uint   `json:"groupID"`
	GroupName string `json:"groupName"`
}

type Group

type Group struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
}

type GroupRelateApp

type GroupRelateApp struct {
	Group
	AppID uint `json:"-"`
}

type GroupWithOrder added in v1.18.4

type GroupWithOrder struct {
	ID   uint
	UID  uint `gorm:"uid"`
	Name string
}

type LoginRecord

type LoginRecord struct {
	ID        uint   `json:"id"`
	CreatedAt int64  `json:"createdAt"`
	Useragent string `json:"useragent"`
	IP        string `json:"ip"`
	Target    string `json:"target"`
	Method    string `json:"method"`
}

type LoginRecordDataView added in v1.18.1

type LoginRecordDataView struct {
	ID        uint  `json:"id"`
	CreatedAt int64 `json:"createdAt"`

	UID uint `json:"uid" gorm:"column:uid"`
	AID uint `json:"aid" gorm:"column:aid"`

	Method      string `json:"method"`
	Destroyed   bool   `json:"destroyed"`
	ValidBefore uint64 `json:"validBefore"`
}

type LoginRecordForCancel added in v1.19.8

type LoginRecordForCancel struct {
	ID          uint   `json:"id"`
	AppCode     string `json:"appCode"`
	ValidBefore uint64 `json:"validBefore"`
}

type LoginRecordOnline added in v1.17.36

type LoginRecordOnline struct {
	LoginRecord
	ValidBefore uint64 `json:"validBefore"`

	IsMe bool `json:"isMe" gorm:"-"`
}

type SshDeploy

type SshDeploy struct {
	UID       uint `gorm:"column:uid"`
	PublicSsh string
}

type SshKeyPair

type SshKeyPair struct {
	Public  string `json:"public"`
	Private string `json:"private"`
}

type SshSecrets

type SshSecrets struct {
	Username string     `json:"username"`
	Pem      SshKeyPair `json:"pem"`
	Ssh      SshKeyPair `json:"ssh"`
}

type UserCredential

type UserCredential struct {
	ID         uint   `json:"id"`
	Name       string `json:"name"`
	CreatedAt  int    `json:"created_at"`
	LastUsedAt int    `json:"last_used_at"`
}

type UserInfoPublic added in v1.18.3

type UserInfoPublic struct {
	ID        uint    `json:"id"`
	Name      string  `json:"name"`
	AvatarUrl string  `json:"avatarUrl"`
	Groups    []Group `json:"groups" gorm:"-"`
}

type UserProfile

type UserProfile struct {
	ID         uint    `json:"id"`
	Name       string  `json:"name"`
	AvatarUrl  string  `json:"avatar_url"`
	Mfa        string  `json:"-"`
	MfaEnabled bool    `json:"mfa" gorm:"-"`
	Groups     []Group `json:"groups" gorm:"-"`
}

type UserThirdPartyIdentity

type UserThirdPartyIdentity struct {
	Phone string
}

type UserU2fStatus

type UserU2fStatus struct {
	Prefer  string `json:"prefer"`
	Phone   bool   `json:"phone"`
	Mfa     bool   `json:"mfa"`
	Passkey bool   `json:"passkey"`
}

type ViewCount

type ViewCount struct {
	// App.ID
	ID    uint   `json:"id"`
	Views uint64 `json:"views"`
}

type ViewID

type ViewID struct {
	// LoginRecord.ID
	ID uint
	// App.ID
	AID uint `gorm:"column:aid"`
}

Jump to

Keyboard shortcuts

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