project

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const APIPathGetProjectDetail = "/open_api/projects/detail"
View Source
const APIPathListProject = "/open_api/projects"
View Source
const APIPathListProjectBusiness = "/open_api/:project_key/business/all"
View Source
const APIPathListProjectTeam = "/open_api/:project_key/teams/all"
View Source
const APIPathListProjectWorkItemType = "/open_api/:project_key/work_item/all-types"

Variables

This section is empty.

Functions

This section is empty.

Types

type Business

type Business struct {
	ID string `json:"id"`

	Name string `json:"name"`

	Project string `json:"project"`

	Labels []string `json:"labels"`

	RoleOwners map[string]*user.RoleOwner `json:"role_owners"`

	Watchers []string `json:"watchers"`

	Order float64 `json:"order"`

	SuperMasters []string `json:"super_masters"`

	Parent string `json:"parent"`

	Disabled bool `json:"disabled"`

	LevelID int64 `json:"level_id"`

	Children []*Business `json:"children"`
}

type GetProjectDetailReq

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

type GetProjectDetailReqBody

type GetProjectDetailReqBody struct {
	ProjectKeys []string `json:"project_keys"`

	UserKey string `json:"user_key"`

	SimpleNames []string `json:"simple_names"`

	TenantGroupID int64 `json:"tenant_group_id"`
}

type GetProjectDetailReqBuilder

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

func NewGetProjectDetailReqBuilder

func NewGetProjectDetailReqBuilder() *GetProjectDetailReqBuilder

func (*GetProjectDetailReqBuilder) Build

func (*GetProjectDetailReqBuilder) ProjectKeys

func (builder *GetProjectDetailReqBuilder) ProjectKeys(projectKeys []string) *GetProjectDetailReqBuilder

func (*GetProjectDetailReqBuilder) SimpleNames

func (builder *GetProjectDetailReqBuilder) SimpleNames(simpleNames []string) *GetProjectDetailReqBuilder

func (*GetProjectDetailReqBuilder) TenantGroupID

func (builder *GetProjectDetailReqBuilder) TenantGroupID(tenantGroupID int64) *GetProjectDetailReqBuilder

func (*GetProjectDetailReqBuilder) UserKey

type GetProjectDetailResp

type GetProjectDetailResp struct {
	*core.APIResp `json:"-"`
	core.CodeError
	Data map[string]*Project `json:"data"`
}

type ListProjectBusinessReq

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

type ListProjectBusinessReqBuilder

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

func NewListProjectBusinessReqBuilder

func NewListProjectBusinessReqBuilder() *ListProjectBusinessReqBuilder

func (*ListProjectBusinessReqBuilder) Build

func (*ListProjectBusinessReqBuilder) ProjectKey

func (builder *ListProjectBusinessReqBuilder) ProjectKey(projectKey string) *ListProjectBusinessReqBuilder

type ListProjectBusinessResp

type ListProjectBusinessResp struct {
	*core.APIResp `json:"-"`
	core.CodeError
	Data []*Business `json:"data"`
}

type ListProjectReq

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

type ListProjectReqBody

type ListProjectReqBody struct {
	UserKey string `json:"user_key"`

	TenantGroupID int64 `json:"tenant_group_id"`

	AssetKey string `json:"asset_key"`

	Order []string `json:"order"`
}

type ListProjectReqBuilder

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

func NewListProjectReqBuilder

func NewListProjectReqBuilder() *ListProjectReqBuilder

func (*ListProjectReqBuilder) AssetKey

func (builder *ListProjectReqBuilder) AssetKey(assetKey string) *ListProjectReqBuilder

func (*ListProjectReqBuilder) Build

func (builder *ListProjectReqBuilder) Build() *ListProjectReq

func (*ListProjectReqBuilder) Order

func (builder *ListProjectReqBuilder) Order(order []string) *ListProjectReqBuilder

func (*ListProjectReqBuilder) TenantGroupID

func (builder *ListProjectReqBuilder) TenantGroupID(tenantGroupID int64) *ListProjectReqBuilder

func (*ListProjectReqBuilder) UserKey

func (builder *ListProjectReqBuilder) UserKey(userKey string) *ListProjectReqBuilder

type ListProjectResp

type ListProjectResp struct {
	*core.APIResp `json:"-"`
	core.CodeError
	Data []string `json:"data"`
}

type ListProjectTeamReq

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

type ListProjectTeamReqBuilder

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

func NewListProjectTeamReqBuilder

func NewListProjectTeamReqBuilder() *ListProjectTeamReqBuilder

func (*ListProjectTeamReqBuilder) Build

func (*ListProjectTeamReqBuilder) ProjectKey

func (builder *ListProjectTeamReqBuilder) ProjectKey(projectKey string) *ListProjectTeamReqBuilder

type ListProjectTeamResp

type ListProjectTeamResp struct {
	*core.APIResp `json:"-"`
	core.CodeError
	Data []*Team `json:"data"`
}

type ListProjectWorkItemTypeReq

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

type ListProjectWorkItemTypeReqBuilder

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

func NewListProjectWorkItemTypeReqBuilder

func NewListProjectWorkItemTypeReqBuilder() *ListProjectWorkItemTypeReqBuilder

func (*ListProjectWorkItemTypeReqBuilder) Build

func (*ListProjectWorkItemTypeReqBuilder) ProjectKey

type ListProjectWorkItemTypeResp

type ListProjectWorkItemTypeResp struct {
	*core.APIResp `json:"-"`
	core.CodeError
	Data []*workitem.WorkItemKeyType `json:"data"`
}

type Project

type Project struct {
	ProjectKey string `json:"project_key"`

	Name string `json:"name"`

	SimpleName string `json:"simple_name"`

	Administrators []string `json:"administrators"`
}

type ProjectService

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

func NewService

func NewService(config *core.Config) *ProjectService

func (*ProjectService) GetProjectDetail

func (a *ProjectService) GetProjectDetail(ctx context.Context, req *GetProjectDetailReq, options ...core.RequestOptionFunc) (*GetProjectDetailResp, error)

获取空间详情

func (*ProjectService) ListProject

func (a *ProjectService) ListProject(ctx context.Context, req *ListProjectReq, options ...core.RequestOptionFunc) (*ListProjectResp, error)

获取空间列表

func (*ProjectService) ListProjectBusiness

func (a *ProjectService) ListProjectBusiness(ctx context.Context, req *ListProjectBusinessReq, options ...core.RequestOptionFunc) (*ListProjectBusinessResp, error)

获取空间下业务线详情

func (*ProjectService) ListProjectTeam

func (a *ProjectService) ListProjectTeam(ctx context.Context, req *ListProjectTeamReq, options ...core.RequestOptionFunc) (*ListProjectTeamResp, error)

获取空间下团队人员

func (*ProjectService) ListProjectWorkItemType

获取空间下工作项类型

type Team

type Team struct {
	TeamID int64 `json:"team_id"`

	TeamName string `json:"team_name"`

	UserKeys []string `json:"user_keys"`

	Administrators []string `json:"administrators"`
}

Jump to

Keyboard shortcuts

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