aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2023-12-27 13:20:30 +0100
committerÖzgür Kesim <oec@codeblau.de>2023-12-27 13:20:30 +0100
commitf41cbf148196f77b4ce0e2c912e14ee31dbf7837 (patch)
treea6c6fe2a9ed700e377be147be4a04bf1f36bf461
parentfcdfae85e3643ce76bfdf6114d960034a04f241a (diff)
init projects, no retrieval yet
-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
+}