add comments and new parameter id for client request order
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user