Documentation ¶
Index ¶
- type Label
- func (l *Label) Create(req *apistructs.ProjectLabelCreateRequest) (int64, error)
- func (l *Label) CreateRelation(lr *dao.LabelRelation) error
- func (l *Label) Delete(labelID int64) error
- func (l *Label) DeleteRelations(refType apistructs.ProjectLabelType, refID uint64) error
- func (l *Label) GetByID(id int64) (apistructs.ProjectLabel, error)
- func (l *Label) List(req *apistructs.ProjectLabelListRequest) (int64, []apistructs.ProjectLabel, error)
- func (l *Label) ListByNamesAndProjectID(req apistructs.ListByNamesAndProjectIDRequest) ([]apistructs.ProjectLabel, error)
- func (l *Label) ListLabelByIDs(ids []uint64) ([]apistructs.ProjectLabel, error)
- func (l *Label) Update(req *apistructs.ProjectLabelUpdateRequest) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Label ¶
type Label struct {
// contains filtered or unexported fields
}
Label 标签封装
func (*Label) Create ¶
func (l *Label) Create(req *apistructs.ProjectLabelCreateRequest) (int64, error)
Create 创建标签
func (*Label) CreateRelation ¶
func (l *Label) CreateRelation(lr *dao.LabelRelation) error
CreateRelation 创建标签关联关系
func (*Label) DeleteRelations ¶
func (l *Label) DeleteRelations(refType apistructs.ProjectLabelType, refID uint64) error
func (*Label) GetByID ¶
func (l *Label) GetByID(id int64) (apistructs.ProjectLabel, error)
GetByID 标签ByID
func (*Label) List ¶
func (l *Label) List(req *apistructs.ProjectLabelListRequest) (int64, []apistructs.ProjectLabel, error)
List 标签列表
func (*Label) ListByNamesAndProjectID ¶
func (l *Label) ListByNamesAndProjectID(req apistructs.ListByNamesAndProjectIDRequest) ([]apistructs.ProjectLabel, error)
ListByNamesAndProjectID list label by names and projectID
func (*Label) ListLabelByIDs ¶
func (l *Label) ListLabelByIDs(ids []uint64) ([]apistructs.ProjectLabel, error)
ListLabelByIDs list label by ids
func (*Label) Update ¶
func (l *Label) Update(req *apistructs.ProjectLabelUpdateRequest) error
Update 更新标签
Click to show internal directories.
Click to hide internal directories.