public interface ProjectManager
| 限定符和类型 | 字段和说明 |
|---|---|
static ProjectManagerImpl |
ins |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(Project project)
新建项目
|
void |
addProjectUser(long id,
String account,
String username)
添加项目用户
|
UserQuery |
createUserQuery() |
Project |
get(long id)
获取项目
|
String |
getApproveUser(long id,
ApplyType type)
获取审批用户
|
List<Project> |
getProjectsByGroupId(String groupId)
根据团队ID获取对应的项目
|
ProjectQuery |
newQuery() |
void |
remove(long id)
删除项目
|
void |
removeProjectUser(long id,
String account)
移除项目用户
|
void |
removeProjectUsers(long id)
删除项目的所有用户
|
void |
update(Project project)
更新项目
|
void |
updateApproveUser(long id,
ApplyType type,
String account)
更新审批用户
|
static final ProjectManagerImpl ins
List<Project> getProjectsByGroupId(String groupId)
groupId - 团地IDvoid add(Project project)
project - 项目void update(Project project)
project - 项目void remove(long id)
id - 项目IDProject get(long id)
id - 项目IDvoid addProjectUser(long id,
String account,
String username)
id - 项目IDaccount - 用户账号username - 用户名称void removeProjectUser(long id,
String account)
id - 项目IDaccount - 用户账号void removeProjectUsers(long id)
id - 项目IDString getApproveUser(long id, ApplyType type)
id - 项目IDtype - 审批类型void updateApproveUser(long id,
ApplyType type,
String account)
id - 项目IDtype - 审批类型account - 用户账号ProjectQuery newQuery()
UserQuery createUserQuery()
Copyright © 2023 Bstek. All rights reserved.