system_apikey_dto

package
v1.9.3-beta Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKey

type APIKey struct {
	*Item
}

func ToAPIKey

func ToAPIKey(e *system_apikey.APIKey) *APIKey

type AuthorizationItem

type AuthorizationItem struct {
	Id      string       `json:"id"`
	Name    string       `json:"name"`
	Apikeys []SimpleItem `json:"apikeys"`
}

type Create

type Create struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	Value   string `json:"value"`
	Expired int64  `json:"expired"`
}

type Item

type Item struct {
	*SimpleItem
	Creator  auto.Label     `json:"creator" aolabel:"user"`
	Updater  auto.Label     `json:"updater" aolabel:"user"`
	CreateAt auto.TimeLabel `json:"create_time"`
	UpdateAt auto.TimeLabel `json:"update_time"`
}

func ToAPIKeyItem

func ToAPIKeyItem(e *system_apikey.APIKey) *Item

type SimpleItem

type SimpleItem struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	Value   string `json:"value"`
	Expired int64  `json:"expired"`
}

func ToAPIKeySimpleItem

func ToAPIKeySimpleItem(e *system_apikey.APIKey) *SimpleItem

type Update

type Update struct {
	Name    *string `json:"name"`
	Value   *string `json:"value"`
	Expired *int64  `json:"expired"`
}

Jump to

Keyboard shortcuts

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