entities

package
v0.0.0-...-a2883fb Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudStatusPending = "pending"
	CloudStatusApprove = "approve"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloud

type Cloud struct {
	ID        common.ID
	Name      string
	Url       string
	Status    string
	CreatedBy string
	CreatedAt time.Time
	UpdatedAt time.Time
}

func NewCloud

func NewCloud(x CloudDto, finds ...*Cloud) *Cloud

func (*Cloud) SetStatus

func (x *Cloud) SetStatus(status string)

func (*Cloud) SetUrl

func (x *Cloud) SetUrl(url string)

func (*Cloud) Validate

func (x *Cloud) Validate() (err *multierror.Error)

type CloudDto

type CloudDto struct {
	ID        *common.ID
	Name      string
	Url       string
	Status    string
	CreatedBy string
	File      File
}

type CloudQueryParams

type CloudQueryParams struct {
	Search    string
	Status    string
	CreatedAt time.Time
}

type File

type File struct {
	Origin      string
	Name        string
	Size        int
	MimeType    string
	ContentType string
	Directory   string
}

Jump to

Keyboard shortcuts

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