init projects, no retrieval yet

This commit is contained in:
Özgür Kesim 2023-12-27 13:20:30 +01:00
parent fcdfae85e3
commit f41cbf1481
Signed by: oec
GPG Key ID: F136A7F922D018D7

View File

@ -1,5 +1,7 @@
package main package main
import "time"
/* /*
This file is part of taler-dashboard This file is part of taler-dashboard
Copyright (C) 2023 Özgür Kesim Copyright (C) 2023 Özgür Kesim
@ -19,3 +21,31 @@ package main
@author Özgür Kesim <oec-taler@kesim.org> @author Özgür Kesim <oec-taler@kesim.org>
*/ */
type Projects []Project
type Project struct {
Id int
Name string
Description string
Status KeyVal
ViewState KeyVal `json:"view_state"`
Enabled bool
InheritGlobal bool `json:"inherit_global"`
AccessLevel KeyVal `json:"AccessLevel"`
Versions []Version
Categories []Category
// CustomFields []any `json:"custom_fields"`
}
type Version struct {
KeyVal
Released bool
Obsolete bool
Timestamp time.Time
}
type Category struct {
KeyVal
Project KeyVal
}