Documentation ¶
Index ¶
- func CountNumOfTeam() (c int64, err error)
- func DeleteSessionById(id int64) (int64, error)
- func DeleteTeamById(id int64) (int64, error)
- func DeleteUserById(id int64) (int64, error)
- func InsertRegisterUser(name, password, email string) (int64, error)
- func PutUsersInTeam(tid int64, uids string) error
- func QueryAllTeams(query string) orm.QuerySeter
- func QueryMineTeams(query string, uid int64) (orm.QuerySeter, error)
- func QueryUsers(query string) orm.QuerySeter
- func ReadSessionByName(name string) (sig string, expired int)
- func ReadSessionByUid(uid int64) (sig string, expired int)
- func ReadTeamIdByName(name string) int64
- func ReadUserIdByName(name string) int64
- func RemoveSessionByUid(uid int64) (num int64, err error)
- func SaveSessionAttrs(uid int64, sig string, expired int) (int64, error)
- func SaveTeamAttrs(name, resume string, creator int64) (int64, error)
- func SelectTeamIdByName(name string) int64
- func SelectUserIdByName(name string) int64
- func Sessions() orm.QuerySeter
- func Tids(uid int64) ([]int64, error)
- func Uids(tid int64) ([]int64, error)
- func UnlinkByTeamId(id int64) error
- func UnlinkByUserId(id int64) error
- func UserIds(tid int64) []int64
- func Users() orm.QuerySeter
- type RelTeamUser
- type Session
- type Team
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountNumOfTeam ¶
func DeleteSessionById ¶
func DeleteTeamById ¶
func DeleteUserById ¶
func InsertRegisterUser ¶
func PutUsersInTeam ¶
func QueryAllTeams ¶
func QueryAllTeams(query string) orm.QuerySeter
func QueryMineTeams ¶
func QueryMineTeams(query string, uid int64) (orm.QuerySeter, error)
func QueryUsers ¶
func QueryUsers(query string) orm.QuerySeter
func ReadSessionByName ¶
func ReadSessionByUid ¶
func ReadTeamIdByName ¶
func ReadUserIdByName ¶
func RemoveSessionByUid ¶
func SelectTeamIdByName ¶
func SelectUserIdByName ¶
func Sessions ¶
func Sessions() orm.QuerySeter
func UnlinkByTeamId ¶
func UnlinkByUserId ¶
func Users ¶
func Users() orm.QuerySeter
Types ¶
type RelTeamUser ¶
type Team ¶
type Team struct { Id int64 `json:"id"` Name string `json:"name"` Resume string `json:"resume"` Creator int64 `json:"creator"` Created time.Time `json:"-" orm:"-"` }
func ReadTeamById ¶
func ReadTeamByName ¶
func SelectTeamById ¶
func (*Team) UpdateUsers ¶
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" orm:"column(im)"` QQ string `json:"qq" orm:"column(qq)"` Role int `json:"role"` Created time.Time `json:"-" orm:"-"` }
func MembersByTeamId ¶
func MembersByTeamName ¶
func ReadUserById ¶
func ReadUserByName ¶
func SelectUserById ¶
Click to show internal directories.
Click to hide internal directories.