12 lines
334 B
Go
12 lines
334 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"net/http"
|
||
|
|
)
|
||
|
|
|
||
|
|
// Login 仅执行登录流程,返回已认证的 HTTP 客户端(调用方可继续用它抓取数据)。
|
||
|
|
func (s *Service) Login(ctx context.Context, username, password, twfid string) (*http.Client, error) {
|
||
|
|
return s.newAuthenticatedClient(ctx, username, password, twfid)
|
||
|
|
}
|