1
0
Fork 0
empact/db/team.go

17 lines
317 B
Go

package db
type Team struct {
ID int64 `json:"id"`
Owner string `json:"owner"`
Name string `json:"name"`
}
const orgTeamsQuery = `select * from teams where owner = ?`
func OrgTeams(login string) (teams []*Team) {
if err := conn.Select(&teams, orgTeamsQuery, login); err != nil {
panic(err)
}
return
}