Began work on data source test / validation, #1997 & #2043

This commit is contained in:
Torkel Ödegaard
2015-06-01 12:15:49 +02:00
parent fc43ce657c
commit e2f6633d57
8 changed files with 95 additions and 47 deletions

View File

@@ -69,7 +69,6 @@ type AddDataSourceCommand struct {
// Also acts as api DTO
type UpdateDataSourceCommand struct {
Id int64 `json:"id" binding:"Required"`
Name string `json:"name" binding:"Required"`
Type string `json:"type" binding:"Required"`
Access DsAccess `json:"access" binding:"Required"`
@@ -84,6 +83,7 @@ type UpdateDataSourceCommand struct {
JsonData map[string]interface{} `json:"jsonData"`
OrgId int64 `json:"-"`
Id int64 `json:"-"`
}
type DeleteDataSourceCommand struct {