add api line router
This commit is contained in:
1 parent
0b8aeee181
commit
31dcbe81bb
4 files changed
+90
-54
No files matched your search
@@ -51,6 +51,15 @@ func GetLineGroup(id string) (g *LineGroup, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
// GetLineGroupList -
|
||||
func GetLineGroupList() (ls []*LineGroup, err error) {
|
||||
err = x.Select(&ls, `select * from "public"."line_group" order by "name"`)
|
||||
if err == sql.ErrNoRows {
|
||||
return nil, nil
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// AddLineGroup -
|
||||
func AddLineGroup(name, owner string, notify bool) (g *LineGroup, err error) {
|
||||
g = &LineGroup{}
|
||||
|
||||
Reference in new issue
Block a user