aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--projects.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/projects.go b/projects.go
index ab889f1..50ca2f0 100644
--- a/projects.go
+++ b/projects.go
@@ -1,5 +1,7 @@
package main
+import "time"
+
/*
This file is part of taler-dashboard
Copyright (C) 2023 Özgür Kesim
@@ -19,3 +21,31 @@ package main
@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
+}