dto

package
v1.3.1-beta Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusNone = iota
	StatusRunning
	StatusApply
	StatusAccept
	StatusError
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInput

type CreateInput struct {
	Version string `json:"version,omitempty"`
	Remark  string `json:"remark,omitempty"`
}

type Detail

type Detail struct {
	Id         string         `json:"id,omitempty"`
	Version    string         `json:"version,omitempty"`
	Remark     string         `json:"remark,omitempty"`
	Service    auto.Label     `json:"service,omitempty" aolabel:"service"`
	CreateTime auto.TimeLabel `json:"createTime"`
	Creator    auto.Label     `json:"creator" aolabel:"user"`
	Diffs      *dto.DiffOut   `json:"diffs,omitempty"`
}

type Release

type Release struct {
	Id          string         `json:"id,omitempty"`
	Version     string         `json:"version,omitempty"`
	Service     auto.Label     `json:"service,omitempty" aolabel:"service"`
	CreateTime  auto.TimeLabel `json:"create_time"`
	Creator     auto.Label     `json:"creator" aolabel:"user"`
	Status      Status         `json:"status,omitempty"`
	FlowId      string         `json:"flowId,omitempty"`
	Remark      string         `json:"remark,omitempty"`
	CanDelete   bool           `json:"can_delete,omitempty"`
	CanRollback bool           `json:"can_rollback,omitempty"`
}

type Status

type Status int

func (Status) MarshalJSON

func (s Status) MarshalJSON() ([]byte, error)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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