Versions in this module Expand all Collapse all v1 v1.0.0 Mar 23, 2020 Changes in this version + func AddTeam(name, resume string, creator int64, uids []int64) (int64, error) + func AdminRegister() error + func GetAllStrategyCount(mine int, query, username string) (int64, error) + func IsCreatorOfTeam(uid, tid int64) (bool, error) + func IsMemberOfTeam(uid, tid int64) (bool, error) + func RemoveTeamById(tid int64) error + func TeamCountOfUser(query string, uid int64) (int64, error) + func UserLogin(name, password string) (int64, error) + func UserRegister(name, password string) (int64, error) + type Event dataobj.Event + var EventRepo *Event + func (this *Event) GetByStrategyId(strategyId int64, before int) ([]*Event, error) + func (this *Event) Insert() error + func (this *Event) String() string + type ItemStatus struct + Id int64 + Ip string + PushTime int64 + RespCode string + RespTime int + Result int64 + Sid int64 + var ItemStatusRepo *ItemStatus + func (this *ItemStatus) DeleteOld(d int64) error + func (this *ItemStatus) GetByIpAndSid(ip string, sid int64) ([]*ItemStatus, error) + func (this *ItemStatus) PK() string + func (this *ItemStatus) Save() error + type RelSidIp struct + Id int64 + Ip string + Sid int64 + Ts int64 + var RelSidIpRepo *RelSidIp + func (this *RelSidIp) DeleteOld(d int64) error + func (this *RelSidIp) GetBySid(sid int64) ([]*RelSidIp, error) + func (this *RelSidIp) Save() error + type RelTeamUser struct + Id int64 + Tid int64 + Uid int64 + type Strategy dataobj.Strategy + func GetAllStrategy(mine, limit, offset int, query, username string) ([]*Strategy, error) + func GetAllStrategyByCron() ([]*Strategy, error) + func GetStrategyById(sid int64) (*Strategy, error) + func (this *Strategy) Add() (int64, error) + func (this *Strategy) Delete() error + func (this *Strategy) Update() error + type Team struct + Created time.Time + Creator int64 + CreatorName string + Id int64 + Name string + Resume string + func GetTeamById(id int64) (*Team, error) + func GetTeamsByIds(ids string) ([]*Team, error) + func QueryTeams(query string, limit int) ([]*Team, error) + func TeamsOfUser(query string, uid int64, limit, offset int) ([]*Team, error) + func (this *Team) Update(uids []int64) error + type User struct + Cnname string + Created time.Time + Email string + Id int64 + Name string + Password string + Phone string + Role int + Wechat string + func CheckPw(name string, passwd string) (*User, error) + func GetUserById(id int64) (*User, error) + func GetUserByName(name string) (*User, error) + func GetUserPwById(id int64) (*User, error) + func QueryUsers(query string, limit int) ([]*User, error) + func UsersInfoOfTeam(tid int64) ([]*User, error) + func UsersOfTeam(tid int64) ([]*User, error) + func (this *User) ChangePasswd(oldPasswd, newPasswd string) error + func (this *User) Save() error + func (this *User) UpdateProfile() error