CLI: Add account list command
This commit is contained in:
@@ -14,6 +14,11 @@ func init() {
|
||||
bus.AddHandler("sql", SetUsingAccount)
|
||||
bus.AddHandler("sql", UpdateAccount)
|
||||
bus.AddHandler("sql", GetAccountByName)
|
||||
bus.AddHandler("sql", GetAccountsQuery)
|
||||
}
|
||||
|
||||
func GetAccountsQuery(query *m.GetAccountsQuery) error {
|
||||
return x.Find(&query.Result)
|
||||
}
|
||||
|
||||
func GetAccountById(query *m.GetAccountByIdQuery) error {
|
||||
|
||||
Reference in New Issue
Block a user