commondata

package
v3.0.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CC_time_type_parse_flag = "cc_time_type"
)

Variables

Functions

func GetInstTableName

func GetInstTableName(objID string) string

GetInstTableName returns inst data table name

func TranslateClassificationName

func TranslateClassificationName(defLang language.DefaultCCLanguageIf, att *metadata.ObjClassification) string

func TranslateEnumName

func TranslateEnumName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectAttDes, val interface{}) interface{}

func TranslateInstName

func TranslateInstName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectDes) string

func TranslateObjectName

func TranslateObjectName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectDes) string

func TranslatePropertyGroupName

func TranslatePropertyGroupName(defLang language.DefaultCCLanguageIf, att *metadata.PropertyGroup) string

func TranslatePropertyName

func TranslatePropertyName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectAttDes) string

Types

type DataBase

type DataBase struct {
	ID         int       `gorm:"auto_increment;primary_key"`
	CreateTime time.Time `gorm:"column:CreateTime"`
}

type ObjQueryInput

type ObjQueryInput struct {
	Condition interface{} `json:"condition"`
	Fields    string      `json:"fields"`
	Start     int         `json:"start"`
	Limit     int         `json:"limit"`
	Sort      string      `json:"sort"`
}

func (*ObjQueryInput) ConvTime

func (o *ObjQueryInput) ConvTime() error

ConvTime 将查询条件中字段包含cc_type key ,子节点变为time.Time

Jump to

Keyboard shortcuts

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