瀏覽代碼

SessionInfo

1 1 月之前
父節點
當前提交
c2b1387b17
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      common/common.go

+ 14 - 0
common/common.go

@@ -209,3 +209,17 @@ func DeleteTpassCookie(info models.CompanyInfo) {
 	}
 	logger.Info("删除key:" + tsessionKey + "结果: " + string(bys))
 }
+
+type SessionInfo struct {
+	URL           string //页面URL 				API接口地址
+	Selector      string //选择器  				API返回结果路径
+	SelectorValue string //每个选择器对应的值	 API对应的企业值
+	Cookies       string //cookies
+	Area          variable.Area
+	Api           bool
+	ApiURL        string
+	ApiMethod     string
+	ApiParam      string
+	ApiHeader     map[string]string
+	Valid         int //新版登录的cookie是否可用,仅获取时赋值
+}