add get line group list api

This commit is contained in:
Jay
2018-12-10 15:13:06 +08:00
parent 874ab24f6b
commit 35379d5c8c
3 changed files with 42 additions and 3 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ func GetCommandCount(where ...interface{}) (c int, err error) {
}
// GetCommands -
func GetCommands(where map[string]string, offset, limit int, order map[string]string) (cmds []*Commands, err error) {
func GetCommands(where map[string]string, offset, limit int, order map[string]string) (cmds []*CommandsWithGroup, err error) {
query := `select c.*, (case when g.name is null then '' else g.name end) as group_name from "public"."commands"
left join "public"."line_group" g
on g.id = c.group `