package
Version:
v1.0.30
Opens a new window with list of versions in this module.
Published: Aug 6, 2022
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package model
@Description:
AddUser
*
- @Description:
- @param user
- @return error
CheckUserCookie
*
- @Description: 获取用户成绩
- @param user
- @return bool
DeleteUser
@Description:
* @param uid
* @return error
func SetPush(push func(id, message string))
UpdateUser
*
- @Description:
- @param user
- @return error
UserCount
*
- @Description:
- @param uid
- @return int
type User struct {
Nick string `json:"nick"`
UID string `json:"uid"`
Token string `json:"token"`
LoginTime int64 `json:"login_time"`
PushId string `json:"push_id"`
}
User
*
Find
*
- @Description:
- @param uid
- @return *User
Query
*
- @Description:
- @return []*User
- @return error
QueryByPushID
*
- @Description:
- @return []*User
- @return error
func (u *User) ToBrowserCookies() []playwright.BrowserContextAddCookiesOptionsCookies
ToCookies
*
- @Description: 获取user的cookie
- @receiver u
- @return []*http.Cookie
Source Files
¶
Click to show internal directories.
Click to hide internal directories.