add get line group list api
This commit is contained in:
+1
-1
@@ -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 `
|
||||
|
||||
Reference in New Issue
Block a user