add comments and new parameter id for client request order

This commit is contained in:
Adrian Zuercher
2025-05-04 20:55:58 +02:00
parent c7154f0779
commit e3487eb340
15 changed files with 119 additions and 79 deletions

View File

@@ -6,9 +6,10 @@ import (
"github.com/tecamino/tecamino-json_data/utils"
)
// all avaiable datatypes of dbm
const (
NONE Type = "NONE"
BIT Type = "BIT"
BIT Type = "BIT" // BOOL
BYU Type = "BYU" // UINT8
BYS Type = "BYS" // INT8
WOS Type = "WOS" // INT16
@@ -22,8 +23,10 @@ const (
STR Type = "STRING" // STRING
)
// dbm datatype model
type Type string
// return default value of assigned datatype
func (t *Type) DefaultValue() any {
switch *t {
case BIT:
@@ -36,6 +39,7 @@ func (t *Type) DefaultValue() any {
return nil
}
// returns input parameter as assigned dbm datatype
func (t *Type) ConvertValue(v any) any {
switch *t {
case BIT: