issueproperty

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueProperty

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

IssueProperty issue property 对象

func New

func New(options ...Option) *IssueProperty

New 新建 issue stream 对象

func (*IssueProperty) BatchConvert

func (ip *IssueProperty) BatchConvert(properties []dao.IssueProperty) []apistructs.IssuePropertyIndex

func (*IssueProperty) Convert

func (*IssueProperty) ConvertRelations

func (ip *IssueProperty) ConvertRelations(issueID int64, relations []apistructs.IssuePropertyInstance) (*apistructs.IssueAndPropertyAndValue, error)

[]apistructs.IssuePropertyInstance => *apistructs.IssueAndPropertyAndValue

func (*IssueProperty) CreateProperty

CreateProperty 添加事项字段

func (*IssueProperty) CreatePropertyRelation

func (ip *IssueProperty) CreatePropertyRelation(req *apistructs.IssuePropertyRelationCreateRequest) error

func (*IssueProperty) DeleteProperty

func (ip *IssueProperty) DeleteProperty(orgID int64, propertyIssueType apistructs.PropertyIssueType, PropertyID int64, index int64) error

DeleteProperty 删除事项字段

func (*IssueProperty) DeletePropertyRelation

func (ip *IssueProperty) DeletePropertyRelation(issueID int64) error

func (*IssueProperty) GetBatchProperties

func (ip *IssueProperty) GetBatchProperties(orgID int64, issuesType []apistructs.IssueType) ([]apistructs.IssuePropertyIndex, error)

func (*IssueProperty) GetByInstance

func (ip *IssueProperty) GetByInstance(id int64) (*dao.IssuePropertyRelation, error)

func (*IssueProperty) GetByName

func (ip *IssueProperty) GetByName(orgID int64, name string, propertyIssueType apistructs.PropertyIssueType) (*dao.IssueProperty, error)

GetByName 根据 name 获取 property 详情

func (*IssueProperty) GetByRelation

func (ip *IssueProperty) GetByRelation(id int64) (*dao.IssueProperty, error)

func (*IssueProperty) GetProperties

GetProperties 获取企业下的全部字段

func (*IssueProperty) GetPropertyByID

func (ip *IssueProperty) GetPropertyByID(PropertyID int64) (*apistructs.IssuePropertyIndex, error)

GetProperty 根据字段id获取字段

func (*IssueProperty) GetPropertyRelation

GetPropertyRelation 根据字段id获取字段

func (*IssueProperty) GetPropertyUpdateAt

func (ip *IssueProperty) GetPropertyUpdateAt(orgID int64) (*apistructs.IssuePropertyUpdateTimes, error)

func (*IssueProperty) UpdatePropertiesIndex

UpdatePropertiesIndex 批量修改字段排序级

func (*IssueProperty) UpdateProperty

UpdateProperty 修改公用事项字段

func (*IssueProperty) UpdatePropertyRelation

func (ip *IssueProperty) UpdatePropertyRelation(req *apistructs.IssuePropertyRelationUpdateRequest) error

type Option

type Option func(*IssueProperty)

Option 定义 IssueProperty 对象配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

Jump to

Keyboard shortcuts

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