fix: align favorite batch endpoint
This commit is contained in:
+40
-36
@@ -42,40 +42,41 @@ type result struct {
|
||||
}
|
||||
|
||||
type audit struct {
|
||||
baseURL string
|
||||
wsURL string
|
||||
apiKey string
|
||||
tenantCode string
|
||||
client *http.Client
|
||||
results []result
|
||||
tokenA string
|
||||
userA string
|
||||
usernameA string
|
||||
phoneA string
|
||||
passA string
|
||||
tokenB string
|
||||
userB string
|
||||
usernameB string
|
||||
phoneB string
|
||||
passB string
|
||||
groupTopic string
|
||||
groupVer int
|
||||
groupQR string
|
||||
friendReq string
|
||||
p2pTopic string
|
||||
meQR string
|
||||
meQRPurpose string
|
||||
meetingID string
|
||||
meetingVer int
|
||||
dailyID string
|
||||
dailyVer int
|
||||
monthlyID string
|
||||
monthlyVer int
|
||||
actionTok string
|
||||
abuseReason string
|
||||
profileVer int
|
||||
privacyVer int
|
||||
feedbackCat string
|
||||
baseURL string
|
||||
wsURL string
|
||||
apiKey string
|
||||
tenantCode string
|
||||
client *http.Client
|
||||
results []result
|
||||
tokenA string
|
||||
userA string
|
||||
usernameA string
|
||||
phoneA string
|
||||
passA string
|
||||
tokenB string
|
||||
userB string
|
||||
usernameB string
|
||||
phoneB string
|
||||
passB string
|
||||
groupTopic string
|
||||
groupVer int
|
||||
groupQR string
|
||||
friendReq string
|
||||
p2pTopic string
|
||||
meQR string
|
||||
meQRPurpose string
|
||||
meetingID string
|
||||
meetingVer int
|
||||
dailyID string
|
||||
dailyVer int
|
||||
monthlyID string
|
||||
monthlyVer int
|
||||
mailboxNoticeVersion string
|
||||
actionTok string
|
||||
abuseReason string
|
||||
profileVer int
|
||||
privacyVer int
|
||||
feedbackCat string
|
||||
}
|
||||
|
||||
func main() {
|
||||
@@ -265,8 +266,11 @@ func (a *audit) run() {
|
||||
return fmt.Sprintf("report_id=%s version=%d", a.monthlyID, a.monthlyVer)
|
||||
})
|
||||
a.testHTTP("9", "9.monthly-stats", "月报统计", "GET", "/v1/im/reports/monthly/statistics?month="+month, nil, a.tokenA, false, []int{200}, nil)
|
||||
a.testHTTP("9", "9.mailbox-config", "总经理信箱配置", "GET", "/v1/im/executive-mailbox/config", nil, a.tokenA, false, []int{200}, nil)
|
||||
a.testHTTP("9", "9.mailbox-submit", "总经理信箱提交", "POST", "/v1/im/executive-mailbox/submissions", map[string]any{"subject": "联调建议", "content": "自动化测试提交", "anonymous": false, "attachment_file_ids": []string{}, "notice_version": "v1"}, a.tokenA, true, []int{200, 400, 403}, nil)
|
||||
a.testHTTP("9", "9.mailbox-config", "总经理信箱配置", "GET", "/v1/im/executive-mailbox/config", nil, a.tokenA, false, []int{200}, func(r imResp) string {
|
||||
a.mailboxNoticeVersion = asString(dig(r.Data, "notice", "version"))
|
||||
return "notice_version=" + a.mailboxNoticeVersion
|
||||
})
|
||||
a.testHTTP("9", "9.mailbox-submit", "总经理信箱提交", "POST", "/v1/im/executive-mailbox/submissions", map[string]any{"subject": "联调建议", "content": "自动化测试提交", "anonymous": false, "attachment_file_ids": []string{}, "notice_version": a.mailboxNoticeVersion}, a.tokenA, true, []int{200, 400, 403}, nil)
|
||||
|
||||
a.testHTTP("10", "10.me", "我的账号", "GET", "/v1/im/me", nil, a.tokenA, false, []int{200}, nil)
|
||||
a.testHTTP("10", "10.profile", "个人资料", "GET", "/v1/im/me/profile", nil, a.tokenA, false, []int{200}, func(r imResp) string {
|
||||
|
||||
Reference in New Issue
Block a user