models

package
v0.0.0-...-5d37a61 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 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 ProjectFilter

type ProjectFilter struct {
	IDs              []int64
	Names            []string
	ShortNames       []string
	IsArchived       bool
	ResponsibleTeams []int64
}

func NewFilter

func NewFilter(req *desc.ProjectGetRequest) *ProjectFilter

func (*ProjectFilter) Apply

func (f *ProjectFilter) Apply(query sq.SelectBuilder) sq.SelectBuilder

type ProjectRow

type ProjectRow struct {
	ID               int64   `db:"id"`
	Name             string  `db:"name"`
	ShortName        string  `db:"short_name"`
	IsArchived       bool    `db:"is_archived"`
	ResponsibleTeams []int64 `db:"responsible_teams"`
	Description      string  `db:"description"`
	Department       int64   `db:"department"`
	Responsible      string  `db:"responsible"`
}

Jump to

Keyboard shortcuts

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