workbench

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueUrlQueries

type IssueUrlQueries struct {
	ExpiredQuery     string
	TodayExpireQuery string
	UndoQuery        string
}

type Option

type Option func(bench *Workbench)

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle with bundle bdl

func WithMenuSvc

func WithMenuSvc(menuSvc menupb.MenuServiceServer) Option

func WithProjectSvc

func WithProjectSvc(tenantProjectSvc projectpb.ProjectServiceServer) Option

func WithTranslator

func WithTranslator(tran i18n.Translator) Option

type Query

type Query struct {
	AssigneeIDs        []string                      `json:"assigneeIDs,omitempty"`
	FinishedAtStartEnd []*int64                      `json:"finishedAtStartEnd"`
	StateBelongs       []apistructs.IssueStateBelong `json:"stateBelongs,omitempty"`
}

type UrlParams

type UrlParams struct {
	Env         string `json:"env"`
	AddonId     string `json:"addonId"`
	TerminusKey string `json:"terminusKey"`
	TenantGroup string `json:"tenantGroup"`
}

type Workbench

type Workbench struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *Workbench

func (*Workbench) GetAppNum

func (w *Workbench) GetAppNum(identity apistructs.Identity, query string) (int, error)

func (*Workbench) GetIssueQueries

func (w *Workbench) GetIssueQueries(userID string) (IssueUrlQueries, error)

func (*Workbench) GetMspUrlParams

func (w *Workbench) GetMspUrlParams(userID, orgID string, project *projpb.Project) (urlParams UrlParams, err error)

GetMspUrlParams get url params used by icon

func (*Workbench) GetMspUrlParamsMap

func (w *Workbench) GetMspUrlParamsMap(identity apistructs.Identity, projectIDs []uint64, limit int) (urlParams map[string]UrlParams, err error)

GetMspUrlParamsMap get url params used by icon

func (*Workbench) GetProjIssueQueries

func (w *Workbench) GetProjIssueQueries(userID string, projIDs []uint64, limit int) (data map[uint64]IssueUrlQueries, err error)

func (*Workbench) GetProjNum

func (w *Workbench) GetProjNum(identity apistructs.Identity, query string) (int, error)

func (*Workbench) GetUrlCommonParams

func (w *Workbench) GetUrlCommonParams(userID, orgID string, projectIDs []uint64) (urlParams []UrlParams, err error)

GetUrlCommonParams get url params used by icon

func (*Workbench) ListAppWbData

func (w *Workbench) ListAppWbData(identity apistructs.Identity, req apistructs.ApplicationListRequest, limit int) (data *apistructs.AppWorkbenchResponseData, err error)

ListAppWbData default set pageSize/pageNo; when need query, set query field

func (*Workbench) ListIssueStreams

func (w *Workbench) ListIssueStreams(issueIDs []uint64, limit int) (data map[uint64]apistructs.IssueStream, err error)

func (*Workbench) ListProjWbOverviewData

func (w *Workbench) ListProjWbOverviewData(identity apistructs.Identity, projects []apistructs.ProjectDTO) (list []apistructs.WorkbenchProjOverviewItem, err error)

func (*Workbench) ListQueryProjWbData

func (w *Workbench) ListQueryProjWbData(identity apistructs.Identity, page apistructs.PageRequest, query string) (data *apistructs.WorkbenchProjOverviewRespData, err error)

func (*Workbench) ListSubAppWbData

func (w *Workbench) ListSubAppWbData(identity apistructs.Identity, limit int) (data *apistructs.AppWorkbenchResponseData, err error)

func (*Workbench) ListSubProjWbData

func (w *Workbench) ListSubProjWbData(identity apistructs.Identity) (data *apistructs.WorkbenchProjOverviewRespData, err error)

Jump to

Keyboard shortcuts

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