default http behavior on is my self

This commit is contained in:
mr
2024-08-21 08:54:29 +02:00
parent c6ea2195ed
commit e31815f576
5 changed files with 50 additions and 46 deletions

View File

@@ -19,6 +19,23 @@ const (
BOOKING
)
var defaultAPI = [...]string{
"",
"oc-catalog",
"oc-catalog",
"oc-catalog",
"oc-catalog",
"oc-catalog",
"oc-workflow",
"",
"oc-workspace",
"",
"oc-peer",
"oc-shared",
"oc-shared",
"oc-datacenter",
}
var Str = [...]string{
"invalid",
"data_resource",
@@ -40,6 +57,10 @@ func FromInt(i int) string {
return Str[i]
}
func (d DataType) API() string {
return defaultAPI[d]
}
func (d DataType) String() string {
return Str[d]
}