Documentation
¶
Index ¶
- type IssueUrlQueries
- type Option
- type Query
- type UrlParams
- type Workbench
- func (w *Workbench) GetAppNum(identity apistructs.Identity, query string) (int, error)
- func (w *Workbench) GetIssueQueries(userID string) (IssueUrlQueries, error)
- func (w *Workbench) GetMspUrlParams(userID, orgID string, project *projpb.Project) (urlParams UrlParams, err error)
- func (w *Workbench) GetMspUrlParamsMap(identity apistructs.Identity, projectIDs []uint64, limit int) (urlParams map[string]UrlParams, err error)
- func (w *Workbench) GetProjIssueQueries(userID string, projIDs []uint64, limit int) (data map[uint64]IssueUrlQueries, err error)
- func (w *Workbench) GetProjNum(identity apistructs.Identity, query string) (int, error)
- func (w *Workbench) GetUrlCommonParams(userID, orgID string, projectIDs []uint64) (urlParams []UrlParams, err error)
- func (w *Workbench) ListAppWbData(identity apistructs.Identity, req apistructs.ApplicationListRequest, limit int) (data *apistructs.AppWorkbenchResponseData, err error)
- func (w *Workbench) ListIssueStreams(issueIDs []uint64, limit int) (data map[uint64]apistructs.IssueStream, err error)
- func (w *Workbench) ListProjWbOverviewData(identity apistructs.Identity, projects []apistructs.ProjectDTO) (list []apistructs.WorkbenchProjOverviewItem, err error)
- func (w *Workbench) ListQueryProjWbData(identity apistructs.Identity, page apistructs.PageRequest, query string) (data *apistructs.WorkbenchProjOverviewRespData, err error)
- func (w *Workbench) ListSubAppWbData(identity apistructs.Identity, limit int) (data *apistructs.AppWorkbenchResponseData, err error)
- func (w *Workbench) ListSubProjWbData(identity apistructs.Identity) (data *apistructs.WorkbenchProjOverviewRespData, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IssueUrlQueries ¶
type Option ¶
type Option func(bench *Workbench)
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 Workbench ¶
type Workbench struct {
// contains filtered or unexported fields
}
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 (*Workbench) GetProjNum ¶
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)
Click to show internal directories.
Click to hide internal directories.