mlib

package
v0.0.0-...-5de2d51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verson = "1.0.0"

Functions

func StartHttpServer

func StartHttpServer(port int)

Types

type BzError

type BzError struct {
	Code    string
	Message string
}

func (BzError) Error

func (m BzError) Error() string

type NsEntityMeta

type NsEntityMeta struct {
	Name     string        `json:"name,omitempty"`
	Label    string        `json:"label,omitempty"`
	Type     string        `json:"type,omitempty"`
	Digest   string        `json:"digest,omitempty"`
	ListSort string        `json:"listSort,omitempty"`
	Fields   []NsFieldMeta `json:"fields,omitempty"`
}

type NsFieldMeta

type NsFieldMeta struct {
	Name            string       `json:"name,omitempty"`
	Label           string       `json:"label,omitempty"`
	Type            NsFieldType  `json:"type,omitempty"`
	Scale           NsFieldScale `json:"scale,omitempty"`
	OptionBill      string       `json:"optionBill,omitempty"`
	DefaultValueStr string       `json:"defaultValueStr,omitempty"`
	RefEntity       string       `json:"refEntity,omitempty"`
}

type NsFieldScale

type NsFieldScale string
const (
	ScaleSingle NsFieldScale = "Single"
	ScaleList   NsFieldScale = "List"
)

type NsFieldType

type NsFieldType string
const (
	FtString    NsFieldType = "String"
	FtInt       NsFieldType = "Int"
	FtLong      NsFieldType = "Long"
	FtDouble    NsFieldType = "Double"
	FtBoolean   NsFieldType = "Boolean"
	FtDate      NsFieldType = "Date"
	FtComponent NsFieldType = "Component"
	FtImage     NsFieldType = "Image"
	FtReference NsFieldType = "Reference"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL