modelbase

package
v0.0.0-...-2bc4271 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelBase

type ModelBase struct{}

ModelBase model

func NewModelBase

func NewModelBase() *ModelBase

NewModelBase creates Model Base

func (*ModelBase) DoValidateBase

func (mb *ModelBase) DoValidateBase(model interface{}) messagemodel.IMessage

DoValidateBase validates fields

func (*ModelBase) IsSpecified

func (mb *ModelBase) IsSpecified(value string, isMandatory string) bool

IsSpecified validates mandatory

func (*ModelBase) IsValidMaxLength

func (mb *ModelBase) IsValidMaxLength(value string, maxLength string) bool

IsValidMaxLength validates max length

func (*ModelBase) IsValidValue

func (mb *ModelBase) IsValidValue(value string, validValue string) bool

IsValidValue validates valid values

Jump to

Keyboard shortcuts

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