Documentation ¶
Index ¶
- type IssueProperty
- func (ip *IssueProperty) BatchConvert(properties []dao.IssueProperty) []apistructs.IssuePropertyIndex
- func (ip *IssueProperty) Convert(is *dao.IssueProperty) *apistructs.IssuePropertyIndex
- func (ip *IssueProperty) ConvertRelations(issueID int64, relations []apistructs.IssuePropertyInstance) (*apistructs.IssueAndPropertyAndValue, error)
- func (ip *IssueProperty) CreateProperty(req *apistructs.IssuePropertyCreateRequest) (*apistructs.IssuePropertyIndex, error)
- func (ip *IssueProperty) CreatePropertyRelation(req *apistructs.IssuePropertyRelationCreateRequest) error
- func (ip *IssueProperty) DeleteProperty(orgID int64, propertyIssueType apistructs.PropertyIssueType, PropertyID int64, ...) error
- func (ip *IssueProperty) DeletePropertyRelation(issueID int64) error
- func (ip *IssueProperty) GetBatchProperties(orgID int64, issuesType []apistructs.IssueType) ([]apistructs.IssuePropertyIndex, error)
- func (ip *IssueProperty) GetByInstance(id int64) (*dao.IssuePropertyRelation, error)
- func (ip *IssueProperty) GetByName(orgID int64, name string, propertyIssueType apistructs.PropertyIssueType) (*dao.IssueProperty, error)
- func (ip *IssueProperty) GetByRelation(id int64) (*dao.IssueProperty, error)
- func (ip *IssueProperty) GetProperties(req apistructs.IssuePropertiesGetRequest) ([]apistructs.IssuePropertyIndex, error)
- func (ip *IssueProperty) GetPropertyByID(PropertyID int64) (*apistructs.IssuePropertyIndex, error)
- func (ip *IssueProperty) GetPropertyRelation(req *apistructs.IssuePropertyRelationGetRequest) (*apistructs.IssueAndPropertyAndValue, error)
- func (ip *IssueProperty) GetPropertyUpdateAt(orgID int64) (*apistructs.IssuePropertyUpdateTimes, error)
- func (ip *IssueProperty) UpdatePropertiesIndex(req *apistructs.IssuePropertyIndexUpdateRequest) ([]apistructs.IssuePropertyIndex, error)
- func (ip *IssueProperty) UpdateProperty(req *apistructs.IssuePropertyUpdateRequest) (*apistructs.IssuePropertyIndex, error)
- func (ip *IssueProperty) UpdatePropertyRelation(req *apistructs.IssuePropertyRelationUpdateRequest) error
- type Option
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 (*IssueProperty) BatchConvert ¶
func (ip *IssueProperty) BatchConvert(properties []dao.IssueProperty) []apistructs.IssuePropertyIndex
func (*IssueProperty) Convert ¶
func (ip *IssueProperty) Convert(is *dao.IssueProperty) *apistructs.IssuePropertyIndex
func (*IssueProperty) ConvertRelations ¶
func (ip *IssueProperty) ConvertRelations(issueID int64, relations []apistructs.IssuePropertyInstance) (*apistructs.IssueAndPropertyAndValue, error)
[]apistructs.IssuePropertyInstance => *apistructs.IssueAndPropertyAndValue
func (*IssueProperty) CreateProperty ¶
func (ip *IssueProperty) CreateProperty(req *apistructs.IssuePropertyCreateRequest) (*apistructs.IssuePropertyIndex, error)
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 ¶
func (ip *IssueProperty) GetProperties(req apistructs.IssuePropertiesGetRequest) ([]apistructs.IssuePropertyIndex, error)
GetProperties 获取企业下的全部字段
func (*IssueProperty) GetPropertyByID ¶
func (ip *IssueProperty) GetPropertyByID(PropertyID int64) (*apistructs.IssuePropertyIndex, error)
GetProperty 根据字段id获取字段
func (*IssueProperty) GetPropertyRelation ¶
func (ip *IssueProperty) GetPropertyRelation(req *apistructs.IssuePropertyRelationGetRequest) (*apistructs.IssueAndPropertyAndValue, error)
GetPropertyRelation 根据字段id获取字段
func (*IssueProperty) GetPropertyUpdateAt ¶
func (ip *IssueProperty) GetPropertyUpdateAt(orgID int64) (*apistructs.IssuePropertyUpdateTimes, error)
func (*IssueProperty) UpdatePropertiesIndex ¶
func (ip *IssueProperty) UpdatePropertiesIndex(req *apistructs.IssuePropertyIndexUpdateRequest) ([]apistructs.IssuePropertyIndex, error)
UpdatePropertiesIndex 批量修改字段排序级
func (*IssueProperty) UpdateProperty ¶
func (ip *IssueProperty) UpdateProperty(req *apistructs.IssuePropertyUpdateRequest) (*apistructs.IssuePropertyIndex, error)
UpdateProperty 修改公用事项字段
func (*IssueProperty) UpdatePropertyRelation ¶
func (ip *IssueProperty) UpdatePropertyRelation(req *apistructs.IssuePropertyRelationUpdateRequest) error
Click to show internal directories.
Click to hide internal directories.