uic

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RelTeamUser

type RelTeamUser struct {
	ID  int64
	Tid int64
	Uid int64
}

func (RelTeamUser) Me

func (this RelTeamUser) Me()

func (RelTeamUser) TableName

func (this RelTeamUser) TableName() string

type Session

type Session struct {
	ID      int64
	Uid     int64
	Sig     string
	Expired int
}

func (Session) TableName

func (this Session) TableName() string

type Team

type Team struct {
	ID      int64  `json:"id,"`
	Name    string `json:"name"`
	Resume  string `json:"resume"`
	Creator int64  `json:"creator"`
}

func (Team) GetCreatorName

func (this Team) GetCreatorName() (userName string, err error)

func (Team) Members

func (this Team) Members() (users []User, err error)

func (Team) TableName

func (this Team) TableName() string

type User

type User struct {
	ID     int64  `json:"id" `
	Name   string `json:"name"`
	Cnname string `json:"cnname"`
	Passwd string `json:"-"`
	Email  string `json:"email"`
	Phone  string `json:"phone"`
	IM     string `json:"im" gorm:"column:im"`
	QQ     string `json:"qq" gorm:"column:qq"`
	Role   int    `json:"role"`
}

func (User) FindUser

func (this User) FindUser() (user User, err error)

func (User) IsAdmin

func (this User) IsAdmin() bool

func (User) IsSuperAdmin

func (this User) IsSuperAdmin() bool

func (User) TableName

func (this User) TableName() string

Jump to

Keyboard shortcuts

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