uic

package
v3.11.1+incompatible Latest Latest
Warning

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

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

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 int64
}

func (Session) DeleteSessionByUid

func (this Session) DeleteSessionByUid() (err error)

func (Session) ExpiredUnixGen

func (this Session) ExpiredUnixGen() int64

func (Session) FindVaildSession

func (this Session) FindVaildSession() Session

will find vaild session and delete other expired session

func (Session) TableName

func (this Session) TableName() string

func (Session) UUIDGen

func (this Session) UUIDGen() 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"`
	Creator int    `json:"creator"`
}

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) IsThirdPartyUser

func (this User) IsThirdPartyUser() bool

func (User) TableName

func (this User) TableName() string

func (User) UserNameExist

func (this User) UserNameExist() bool

Jump to

Keyboard shortcuts

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