apps

package
v0.0.0-...-2383c70 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRequest

type GetRequest struct {
	Id uint64 `json:"id"`
}

func (*GetRequest) SetId

func (r *GetRequest) SetId(id uint64)

func (*GetRequest) SetIdByString

func (r *GetRequest) SetIdByString(id string) error

type ResourceMeta

type ResourceMeta struct {
	// 自增Id
	Id uint64 `json:"id" gorm:"column:id;type:uint;primary_key;" unique:"true" description:"Id"`
	// 创建时间
	CreatedAt time.Time `` /* 126-byte string literal not displayed */
	// 更新时间
	UpdatedAt *time.Time `json:"updated_at" gorm:"column:updated_at;type:timestamp;" optional:"true" description:"更新时间"`
	// 删除时间
	DeletedAt *time.Time `json:"deleted_at" gorm:"column:deleted_at;type:timestamp;index" optional:"true" description:"删除时间"`
}

func NewResourceMeta

func NewResourceMeta() *ResourceMeta

type Scope

type Scope struct {
	// 空间
	NamespaceId *uint64 `` /* 129-byte string literal not displayed */
	// 访问范围定义, 比如 Env=Dev
	Scope map[string]string `` /* 129-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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