Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 9f8cd4d

Browse files
Merge branch 'master' into dev
2 parents 0f73797 + cd79e09 commit 9f8cd4d

16 files changed

+149
-254
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/custom.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Custom issue template
3+
about: Describe this issue template's purpose here.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Author: ph4nt0mer
33
* @Date: 2022-08-31 17:03:03
44
* @LastEditors: ph4nt0mer
5-
* @LastEditTime: 2022-09-06 11:26:22
5+
* @LastEditTime: 2022-09-02 15:51:36
66
* @FilePath: /quake_go/main.go
77
* @Description:
88
*

src/apis/AggregationServiceGet.go

-23
This file was deleted.

src/apis/AggregationServicePost.go

-23
This file was deleted.

src/apis/FaviconPost.go

-21
This file was deleted.

src/apis/FilterableServiceGET.go

-13
This file was deleted.

src/apis/InfoGet.go

-22
This file was deleted.

src/apis/ScrollServicePost.go

-19
This file was deleted.

src/apis/SearchServicePost.go

-38
This file was deleted.

src/apis/api.go

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
* @Author: ph4nt0mer
3+
* @Date: 2022-09-01 15:36:10
4+
* @LastEditors: ph4nt0mer [email protected]
5+
* @LastEditTime: 2022-09-01 22:55:24
6+
* @FilePath: /quake_go/src/apis/api.go
7+
* @Description:
8+
*
9+
* Copyright (c) 2022 by ph4nt0mer, All Rights Reserved.
10+
*/
11+
package apis
12+
13+
import (
14+
"fmt"
15+
"quake/src/setting"
16+
"quake/src/tools"
17+
)
18+
19+
func FilterableServiceGET(token string) {
20+
// 获取服务数据筛选字段
21+
// curl -X GET "https://quake.360.cn/api/v3/filterable/field/quake_service" -H "X-QuakeToken: d17140ae-xxxx-xxx-xxxx-c0818b2bbxxx"
22+
uri := "/filterable/field/quake_service"
23+
tools.ApisGet(setting.URL+uri, token)
24+
}
25+
func SearchServicePost(query string, start string, size string, token string) {
26+
// 服务数据实时查询接口
27+
// curl -X POST "https://quake.360.cn/api/v3/search/quake_service" -H "X-QuakeToken: d17140ae-xxxx-xxx-xxxx-c0818b2bbxxx" -H "Content-Type: application/json" -d '{
28+
// "query": "service: http",
29+
// "start": 20,
30+
// "size": 10,
31+
// "ignore_cache": false,
32+
// "start_time": "2021-01-01 00:00:00",
33+
// "end_time": "2021-02-01 00:00:00"
34+
// }'
35+
if query == "" || query == "?" {
36+
fmt.Println("No query specified")
37+
return
38+
}
39+
uri := "/search/quake_service"
40+
payload := "{\"query\":\"" + query +
41+
"\",\"start\":\"" + start + "\",\"size\":\"" + size +
42+
"\"}"
43+
tools.ApisPost(setting.URL+uri, payload, start, size, token)
44+
}
45+
func ScrollServicePost(query string, start string, size string, token string) {
46+
// 服务数据深度查询接口
47+
// curl -X POST "https://quake.360.cn/api/v3/scroll/quake_service" -H "X-QuakeToken: d17140ae-xxxx-xxx-xxxx-c0818b2bbxxx" -H "Content-Type: application/json" -d '{
48+
// "query": "service: http",
49+
// "size": 100,
50+
// "ignore_cache": false,
51+
// "start_time": "2021-01-07 00:13:14",
52+
// "end_time": "2021-05-20 01:13:14"
53+
// }'
54+
uri := "/scroll/quake_service"
55+
tools.ApisPost(setting.URL+uri, query, start, size, token)
56+
}
57+
func AggregationServiceGet(token string) {
58+
// 获取聚合数据筛选字段
59+
// curl -X GET "https://quake.360.cn/api/v3/aggregation/quake_service" -H "X-QuakeToken: d17140ae-xxxx-xxx-xxxx-c0818b2bbxxx"
60+
uri := "/aggregation/quake_service"
61+
tools.ApisGet(setting.URL+uri, token)
62+
}
63+
func AggregationServicePost(query string, start string, size string, token string) {
64+
// 获取聚合数据筛选字段
65+
// curl -X GET "https://quake.360.cn/api/v3/aggregation/quake_service" -H "X-QuakeToken: d17140ae-xxxx-xxx-xxxx-c0818b2bbxxx"
66+
uri := "/aggregation/quake_service"
67+
tools.ApisPost(setting.URL+uri, query, start, size, token)
68+
}
69+
func InfoGet(token string) {
70+
// 个人信息接口
71+
uri := "/user/info"
72+
tools.ApisGet(setting.URL+uri, token)
73+
}
74+
func FaviconPost(query string, start string, size string, token string) {
75+
uri := "/query/similar_icon/aggregation"
76+
tools.ApisGet(setting.URL+uri, token)
77+
}

src/model/aggregation.go

-18
This file was deleted.

src/model/info.go

-48
This file was deleted.

0 commit comments

Comments
 (0)