models

package
v0.0.0-...-1c24dd9 Latest Latest
Warning

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

Go to latest
Published: May 30, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Portlet

type Portlet struct {
	Id          int
	Pid         int
	Name        string
	X           int
	Y           int
	Url         string
	Type        string
	IsParent    bool
	IsSelected  bool
	UserPortlet []*UserPortlet `orm:"reverse(many)"` // fk 的反向关系
}

type Profile

type Profile struct {
	Id   int
	Age  int16
	User *User `orm:"reverse(one)"` // 设置反向关系(可选)
}

type QuickMenu

type QuickMenu struct {
	Id         int
	Userid     string
	LinkName   string
	LinkUrl    string
	LinkImgUrl string
	Yn         int
	ChannelId  string
}

type User

type User struct {
	Id      int
	Name    string
	Profile *Profile `orm:"rel(one)"` // OneToOne relation
}

type UserPortlet

type UserPortlet struct {
	Id        int
	X         int
	Y         int
	IsExpand  bool
	IsDisplay bool
	Portlet   *Portlet `orm:"rel(fk)"` // RelForeignKey relation
}

Jump to

Keyboard shortcuts

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