modules

package
v0.0.0-...-9951748 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModule

type BaseModule struct {
}

func (*BaseModule) ConvertToJson

func (b *BaseModule) ConvertToJson() string

type Department

type Department struct {
	ID       bson.ObjectId `bson:"_id"`
	Name     string
	Code     string
	Manager  string
	ParentID string
	IsUse    bool
	Remark   string
}

func (*Department) Validate

func (d *Department) Validate(v *revel.Validation)

type Function

type Function struct {
	ID         bson.ObjectId `bson:"_id"`
	Name       string
	Code       string
	ModuleCode string
	ModuleID   string
	IsUse      bool
	Remark     string
}

type Machine

type Machine struct {
	ID       bson.ObjectId `bson:"_id"`
	Name     string
	Code     string
	IP       string
	ParentID string
}

type Module

type Module struct {
	ID          bson.ObjectId `bson:"_id"`
	Name        string
	Code        string
	ParentID    string
	URL         string
	IsUse       bool
	Sort        int
	Remark      string
	DisplayType int
}

type Role

type Role struct {
	RoleID   bson.ObjectId `bson:"_id"`
	RoleName string
	RoleCode string
	IsUse    bool
	Remark   string
	ParentID string
	Sort     int
}

func (*Role) Validate

func (r *Role) Validate(v *revel.Validation)

type RolePermission

type RolePermission struct {
	PermissionId bson.ObjectId `bson:"_id"`
	FunctionCode string
	FunctionID   string
	ModuleCode   string
	ModuleID     string
	RoleCode     string
	RoleID       string
	ParentPerID  string
	IsModule     bool
	//是否引用:true:子节点点选中,自己没选中;false:自己选中
	IsRef bool
}

type User

type User struct {
	UserID       bson.ObjectId `bson:"_id"`
	LoginName    string
	Password     string
	JobNumber    string
	UserName     string
	DepID        string
	RoleIDs      []string
	EngName      string
	PinYin       string
	Abbreviation string
	Telephone    string
	Mobilephone  string
	Email        string
	IsUse        bool
}

Jump to

Keyboard shortcuts

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