package
Version:
v0.9.2
Opens a new window with list of versions in this module.
Published: Jul 25, 2023
License: Unlicense
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetLoginState 返回LoginState的值;有效登录则为1,否则为0或-1
MyGetRequest 这是一个自定义的Get请求,约定:可变参数headers仅允许传入一个设置header的map。
User 用户,包含手机号码、依据token文件判断的登录状态和token的值
func (u *User) LoadToken()
LoadToken 检查token文件并更新LoginState和Token
Login 使用短信验证码的方式登录“蔻享学术”平台,登录成功后获得token,并将token保存在可执行文件所在路径下的token文件中
Logout 删除token文件,并更新LoginState为0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.