(feat) support datasource delete by name api

This commit is contained in:
huydx
2017-02-10 23:30:14 +09:00
committed by huydx
parent bccb650010
commit 143cbe921f
5 changed files with 51 additions and 9 deletions
+6 -1
View File
@@ -120,11 +120,16 @@ type UpdateDataSourceCommand struct {
Id int64 `json:"-"`
}
type DeleteDataSourceCommand struct {
type DeleteDataSourceByIdCommand struct {
Id int64
OrgId int64
}
type DeleteDataSourceByNameCommand struct {
Name string
OrgId int64
}
// ---------------------
// QUERIES