models

package
v0.0.0-...-861d2e8 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Test

type Test struct {
	Id       *string    `json:"id,omitempty" db:",pk" filter:",C,G"`
	Name     *string    `json:"name,omitempty" filter:",C"`
	Type     *int       `json:"type,omitempty" filter:",C"` // type不可编辑
	Status   *int       `json:"status,omitempty" db:",logic" filter:",C"`
	Creator  *string    `json:"creator,omitempty" filter:"userid,G,D"`
	Remark   *string    `json:"remark,omitempty" filter:"test"`
	User     *string    `json:"user,omitempty" filter:",G,D,C,PSU"`
	Items    []string   `json:"items,omitempty"`
	Created  *time.Time `json:"created,omitempty" db:",add_now" filter:",G,F,C,TR"`
	Modified *time.Time `json:"modified,omitempty" filter:",G"`
	ogo.BaseModel
}

以下struct需要跟数据库映射

func (*Test) Test

func (this *Test) Test(v reflect.Value) reflect.Value

Jump to

Keyboard shortcuts

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