Documentation ¶
Overview ¶
Package model @Description:
Index ¶
- func AddUser(user *User) error
- func AddWechatUser(user *WechatUser) error
- func DeleteUser(uid string) error
- func SearchAnswer(title string) string
- func SetPush(push func(id, kind, message string))
- func TokenToCookies(token string) []*http.Cookie
- func UpdateUser(user *User) error
- func UpdateWechatUser(user *WechatUser) error
- func WechatUserCount(openID string) int
- type User
- type WechatUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWechatUser ¶
func AddWechatUser(user *WechatUser) error
func SearchAnswer ¶
func TokenToCookies ¶
func UpdateWechatUser ¶
func UpdateWechatUser(user *WechatUser) error
func WechatUserCount ¶
Types ¶
type User ¶
type User struct { Nick string `xorm:"TEXT" json:"nick,omitempty"` Uid string `xorm:"TEXT" json:"uid,omitempty"` Token string `xorm:"TEXT" json:"token,omitempty"` LoginTime int64 `xorm:"integer" json:"loginTime,omitempty"` PushId string `xorm:"TEXT" json:"pushId,omitempty"` Status int `xorm:"integer" json:"status,omitempty"` }
User *
- @Description:
func QueryFailUser ¶
func (*User) ToBrowserCookies ¶
func (u *User) ToBrowserCookies() []playwright.BrowserContextAddCookiesOptionsCookies
type WechatUser ¶
type WechatUser struct { OpenId string `xorm:"TEXT" json:"openId,omitempty"` Remark string `xorm:"TEXT" json:"remark,omitempty"` Status int `xorm:"INTEGER" json:"status,omitempty"` LastRequestTime int64 `xorm:"INTEGER" json:"lastRequestTime,omitempty"` }
func FindWechatUser ¶
func FindWechatUser(openID string) (*WechatUser, error)
func QueryWechatUser ¶
func QueryWechatUser() ([]*WechatUser, error)
Click to show internal directories.
Click to hide internal directories.