Documentation ¶
Index ¶
- Constants
- type Business
- type GetProjectDetailReq
- type GetProjectDetailReqBody
- type GetProjectDetailReqBuilder
- func (builder *GetProjectDetailReqBuilder) Build() *GetProjectDetailReq
- func (builder *GetProjectDetailReqBuilder) ProjectKeys(projectKeys []string) *GetProjectDetailReqBuilder
- func (builder *GetProjectDetailReqBuilder) SimpleNames(simpleNames []string) *GetProjectDetailReqBuilder
- func (builder *GetProjectDetailReqBuilder) TenantGroupID(tenantGroupID int64) *GetProjectDetailReqBuilder
- func (builder *GetProjectDetailReqBuilder) UserKey(userKey string) *GetProjectDetailReqBuilder
- type GetProjectDetailResp
- type ListProjectBusinessReq
- type ListProjectBusinessReqBuilder
- type ListProjectBusinessResp
- type ListProjectReq
- type ListProjectReqBody
- type ListProjectReqBuilder
- func (builder *ListProjectReqBuilder) AssetKey(assetKey string) *ListProjectReqBuilder
- func (builder *ListProjectReqBuilder) Build() *ListProjectReq
- func (builder *ListProjectReqBuilder) Order(order []string) *ListProjectReqBuilder
- func (builder *ListProjectReqBuilder) TenantGroupID(tenantGroupID int64) *ListProjectReqBuilder
- func (builder *ListProjectReqBuilder) UserKey(userKey string) *ListProjectReqBuilder
- type ListProjectResp
- type ListProjectTeamReq
- type ListProjectTeamReqBuilder
- type ListProjectTeamResp
- type ListProjectWorkItemTypeReq
- type ListProjectWorkItemTypeReqBuilder
- type ListProjectWorkItemTypeResp
- type Project
- type ProjectService
- func (a *ProjectService) GetProjectDetail(ctx context.Context, req *GetProjectDetailReq, ...) (*GetProjectDetailResp, error)
- func (a *ProjectService) ListProject(ctx context.Context, req *ListProjectReq, options ...core.RequestOptionFunc) (*ListProjectResp, error)
- func (a *ProjectService) ListProjectBusiness(ctx context.Context, req *ListProjectBusinessReq, ...) (*ListProjectBusinessResp, error)
- func (a *ProjectService) ListProjectTeam(ctx context.Context, req *ListProjectTeamReq, ...) (*ListProjectTeamResp, error)
- func (a *ProjectService) ListProjectWorkItemType(ctx context.Context, req *ListProjectWorkItemTypeReq, ...) (*ListProjectWorkItemTypeResp, error)
- type Team
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 GetProjectDetailReqBuilder ¶
type GetProjectDetailReqBuilder struct {
// contains filtered or unexported fields
}
func NewGetProjectDetailReqBuilder ¶
func NewGetProjectDetailReqBuilder() *GetProjectDetailReqBuilder
func (*GetProjectDetailReqBuilder) Build ¶
func (builder *GetProjectDetailReqBuilder) Build() *GetProjectDetailReq
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 ¶
func (builder *GetProjectDetailReqBuilder) UserKey(userKey string) *GetProjectDetailReqBuilder
type GetProjectDetailResp ¶
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 (builder *ListProjectBusinessReqBuilder) Build() *ListProjectBusinessReq
func (*ListProjectBusinessReqBuilder) ProjectKey ¶
func (builder *ListProjectBusinessReqBuilder) ProjectKey(projectKey string) *ListProjectBusinessReqBuilder
type ListProjectBusinessResp ¶
type ListProjectReq ¶
type ListProjectReq struct {
// contains filtered or unexported fields
}
type ListProjectReqBody ¶
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 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 (builder *ListProjectTeamReqBuilder) Build() *ListProjectTeamReq
func (*ListProjectTeamReqBuilder) ProjectKey ¶
func (builder *ListProjectTeamReqBuilder) ProjectKey(projectKey string) *ListProjectTeamReqBuilder
type ListProjectTeamResp ¶
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 (builder *ListProjectWorkItemTypeReqBuilder) Build() *ListProjectWorkItemTypeReq
func (*ListProjectWorkItemTypeReqBuilder) ProjectKey ¶
func (builder *ListProjectWorkItemTypeReqBuilder) ProjectKey(projectKey string) *ListProjectWorkItemTypeReqBuilder
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 ¶
func (a *ProjectService) ListProjectWorkItemType(ctx context.Context, req *ListProjectWorkItemTypeReq, options ...core.RequestOptionFunc) (*ListProjectWorkItemTypeResp, error)
获取空间下工作项类型
Click to show internal directories.
Click to hide internal directories.