More general backend work, in the middle of the night... Zzzz

This commit is contained in:
Torkel Ödegaard
2014-12-17 03:09:54 +01:00
parent c7ed348ee8
commit adf4e72cf8
6 changed files with 49 additions and 5 deletions

View File

@@ -38,6 +38,19 @@ type Collaborator struct {
Role string `json:"role"`
}
type DataSource struct {
Id int64 `json:"id"`
AccountId int64 `json:"accountId"`
Name string `json:"name"`
Type models.DsType `json:"type"`
Access models.DsAccess `json:"access"`
Url string `json:"url"`
Password string `json:"password"`
User string `json:"user"`
BasicAuth bool `json:"basicAuth"`
}
func NewCurrentUser(account *models.Account) *CurrentUser {
model := &CurrentUser{}
if account != nil {