chore: 重新整理代码若干;撤销对 login error 的错误的错误处理

This commit is contained in:
Mmx233
2022-10-21 13:30:28 +08:00
parent 09acd88312
commit 8f8cedc0b3
3 changed files with 76 additions and 88 deletions

View File

@@ -25,7 +25,7 @@ type LoginInfo struct {
Meta *LoginMeta
}
type LoginConf struct {
type Conf struct {
//调用 API 时直接访问 https URL
Https bool
//登录参数,不可缺省
@@ -35,6 +35,6 @@ type LoginConf struct {
api srun.Api
}
func (a *LoginConf) initApi() {
func (a *Conf) initApi() {
a.api.Init(a.Https, a.LoginInfo.Form.Domain, a.Client)
}