init projects, no retrieval yet
This commit is contained in:
parent
fcdfae85e3
commit
f41cbf1481
30
projects.go
30
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user