feat: 项目与资源强校验&更新静态文件

This commit is contained in:
meilin.huang
2022-04-22 17:49:21 +08:00
parent a9d6c5f7ee
commit 41c660894c
91 changed files with 302 additions and 250 deletions

View File

@@ -30,3 +30,7 @@ func (p *projectMemeberRepo) DeleteByPidMid(projectId, accountId uint64) {
func (p *projectMemeberRepo) DeleteMems(projectId uint64) {
model.DeleteByCondition(&entity.ProjectMember{ProjectId: projectId})
}
func (p *projectMemeberRepo) IsExist(projectId, accountId uint64) bool {
return model.CountBy(&entity.ProjectMember{ProjectId: projectId, AccountId: accountId}) > 0
}