qa: Managers can view team and manage theirs todo list
This commit is contained in:
parent
b94beb363b
commit
cd64fc90bf
13 changed files with 526 additions and 24 deletions
11
libfic/qa.go
11
libfic/qa.go
|
|
@ -242,6 +242,17 @@ func (t *Team) NewQATodo(idExercice int64) (*QATodo, error) {
|
|||
}
|
||||
}
|
||||
|
||||
// Delete the comment in the database.
|
||||
func (t *QATodo) Delete() (int64, error) {
|
||||
if res, err := DBExec("DELETE FROM teams_qa_todo WHERE id_todo = ?", t.Id); err != nil {
|
||||
return 0, err
|
||||
} else if nb, err := res.RowsAffected(); err != nil {
|
||||
return 0, err
|
||||
} else {
|
||||
return nb, err
|
||||
}
|
||||
}
|
||||
|
||||
// QAView
|
||||
|
||||
func (t *Team) GetQAView() (res []*QATodo, err error) {
|
||||
|
|
|
|||
Reference in a new issue