2021-07-28 18:03:19 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
|
|
import (
|
2022-06-02 17:41:11 +08:00
|
|
|
"mayfly-go/internal/devops/domain/entity"
|
|
|
|
|
"mayfly-go/pkg/model"
|
2021-07-28 18:03:19 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type ProjectMemeber interface {
|
|
|
|
|
|
|
|
|
|
// 获取项目成员列表
|
|
|
|
|
ListMemeber(condition *entity.ProjectMember, toEntity interface{}, orderBy ...string)
|
|
|
|
|
|
|
|
|
|
Save(mp *entity.ProjectMember)
|
|
|
|
|
|
|
|
|
|
GetPageList(condition *entity.ProjectMember, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
|
|
|
|
|
|
|
|
|
|
// 根据成员id和项目id删除关联关系
|
|
|
|
|
DeleteByPidMid(projectId, accountId uint64)
|
2021-08-18 17:57:33 +08:00
|
|
|
|
|
|
|
|
DeleteMems(projectId uint64)
|
2022-04-22 17:49:21 +08:00
|
|
|
|
|
|
|
|
// 是否存在指定的项目成员关联信息
|
|
|
|
|
IsExist(projectId, accountId uint64) bool
|
2021-07-28 18:03:19 +08:00
|
|
|
}
|