Jelajahi Sumber

SessionInfo

1 1 bulan lalu
induk
melakukan
c2b1387b17
1 mengubah file dengan 14 tambahan dan 0 penghapusan
  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是否可用,仅获取时赋值
+}