models

package
v0.0.0-...-58e5cf3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewLog

type NewLog struct {
	RunTime     string `xorm:"VARCHAR(19)   NOT NULL"`
	RunEnvs     string `xorm:"VARCHAR(512)"`
	RunCmd      string `xorm:"VARCHAR(512)   NOT NULL"`
	RunArgs     string `xorm:"VARCHAR(512)"`
	RunStatus   string `xorm:"VARCHAR(16)   NOT NULL"`
	RunMsg      string `xorm:"VARCHAR(512)"`
	LogfilePath string `xorm:"VARCHAR(512)   NOT NULL"`
	ReqSrc      string `xorm:"VARCHAR(32)   NOT NULL"`
}

NewLog struct map to table sys_log without column Id

func (NewLog) Save

func (nlog NewLog) Save() error

Save insert method

func (NewLog) TableName

func (nlog NewLog) TableName() string

TableName xorm mapper NewComponent struct map to table tb_component

type SysLog

type SysLog struct {
	LogId       int    `xorm:"INTEGER NOT NULL UNIQUE PK"`
	RunTime     string `xorm:"VARCHAR(19)   NOT NULL"`
	RunEnvs     string `xorm:"VARCHAR(512)"`
	RunCmd      string `xorm:"VARCHAR(512)   NOT NULL"`
	RunArgs     string `xorm:"VARCHAR(512)"`
	RunStatus   string `xorm:"VARCHAR(16)   NOT NULL"`
	RunMsg      string `xorm:"VARCHAR(512)"`
	LogfilePath string `xorm:"VARCHAR(512)   NOT NULL"`
	ReqSrc      string `xorm:"VARCHAR(32)   NOT NULL"`
}

SysLog struct map to table sys_log

Jump to

Keyboard shortcuts

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