db

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*gorm.DB
}

func (*Client) CreateDevFlow

func (db *Client) CreateDevFlow(f *DevFlow) error

func (*Client) DeleteDevFlow

func (db *Client) DeleteDevFlow(id string) error

func (*Client) GetDevFlow

func (db *Client) GetDevFlow(id string) (f *DevFlow, err error)

func (*Client) GetDevFlowByUnique

func (db *Client) GetDevFlowByUnique(appID, issueID uint64, branch string) (f *DevFlow, err error)

func (*Client) ListDevFlowByAppIDAndBranch

func (db *Client) ListDevFlowByAppIDAndBranch(appID uint64, branch string) (fs []DevFlow, err error)

func (*Client) ListDevFlowByFlowRuleNameAndAppIDs

func (db *Client) ListDevFlowByFlowRuleNameAndAppIDs(flowRuleName string, appIDs ...uint64) (fs []DevFlow, err error)

func (*Client) ListDevFlowByIssueID

func (db *Client) ListDevFlowByIssueID(issueID uint64) (fs []DevFlow, err error)

func (*Client) UpdateDevFlow

func (db *Client) UpdateDevFlow(f *DevFlow) error

type DevFlow

type DevFlow struct {
	Model
	Scope
	Operator

	Branch               string
	IssueID              uint64
	FlowRuleName         string
	JoinTempBranchStatus string
	IsJoinTempBranch     bool
}

func (*DevFlow) Covert

func (f *DevFlow) Covert() *pb.DevFlow

func (DevFlow) TableName

func (DevFlow) TableName() string

type Model

type Model struct {
	ID        fields.UUID `gorm:"primaryKey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt soft_delete.DeletedAt
}

type Operator

type Operator struct {
	Creator string
}

type Scope

type Scope struct {
	OrgID   uint64
	OrgName string
	AppID   uint64
	AppName string
}

Jump to

Keyboard shortcuts

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