Skip to content

Commit f92860e

Browse files
authored
chore: remove duplicated security requirements (#1302)
close #1300
1 parent d48b633 commit f92860e

File tree

6 files changed

+0
-32
lines changed

6 files changed

+0
-32
lines changed

docs/docs.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5033,9 +5033,6 @@ const docTemplate = `{
50335033
"/answer/api/v1/report": {
50345034
"post": {
50355035
"security": [
5036-
{
5037-
"ApiKeyAuth": []
5038-
},
50395036
{
50405037
"ApiKeyAuth": []
50415038
}
@@ -5075,9 +5072,6 @@ const docTemplate = `{
50755072
"/answer/api/v1/report/review": {
50765073
"put": {
50775074
"security": [
5078-
{
5079-
"ApiKeyAuth": []
5080-
},
50815075
{
50825076
"ApiKeyAuth": []
50835077
}
@@ -5180,9 +5174,6 @@ const docTemplate = `{
51805174
"/answer/api/v1/review/pending/post": {
51815175
"put": {
51825176
"security": [
5183-
{
5184-
"ApiKeyAuth": []
5185-
},
51865177
{
51875178
"ApiKeyAuth": []
51885179
}
@@ -6295,9 +6286,6 @@ const docTemplate = `{
62956286
"/answer/api/v1/user/email/verification/send": {
62966287
"post": {
62976288
"security": [
6298-
{
6299-
"ApiKeyAuth": []
6300-
},
63016289
{
63026290
"ApiKeyAuth": []
63036291
}

docs/swagger.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5006,9 +5006,6 @@
50065006
"/answer/api/v1/report": {
50075007
"post": {
50085008
"security": [
5009-
{
5010-
"ApiKeyAuth": []
5011-
},
50125009
{
50135010
"ApiKeyAuth": []
50145011
}
@@ -5048,9 +5045,6 @@
50485045
"/answer/api/v1/report/review": {
50495046
"put": {
50505047
"security": [
5051-
{
5052-
"ApiKeyAuth": []
5053-
},
50545048
{
50555049
"ApiKeyAuth": []
50565050
}
@@ -5153,9 +5147,6 @@
51535147
"/answer/api/v1/review/pending/post": {
51545148
"put": {
51555149
"security": [
5156-
{
5157-
"ApiKeyAuth": []
5158-
},
51595150
{
51605151
"ApiKeyAuth": []
51615152
}
@@ -6268,9 +6259,6 @@
62686259
"/answer/api/v1/user/email/verification/send": {
62696260
"post": {
62706261
"security": [
6271-
{
6272-
"ApiKeyAuth": []
6273-
},
62746262
{
62756263
"ApiKeyAuth": []
62766264
}

docs/swagger.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6037,7 +6037,6 @@ paths:
60376037
$ref: '#/definitions/handler.RespBody'
60386038
security:
60396039
- ApiKeyAuth: []
6040-
- ApiKeyAuth: []
60416040
summary: add report
60426041
tags:
60436042
- Report
@@ -6062,7 +6061,6 @@ paths:
60626061
$ref: '#/definitions/handler.RespBody'
60636062
security:
60646063
- ApiKeyAuth: []
6065-
- ApiKeyAuth: []
60666064
summary: review report
60676065
tags:
60686066
- Report
@@ -6121,7 +6119,6 @@ paths:
61216119
$ref: '#/definitions/handler.RespBody'
61226120
security:
61236121
- ApiKeyAuth: []
6124-
- ApiKeyAuth: []
61256122
summary: update review
61266123
tags:
61276124
- Review
@@ -6785,7 +6782,6 @@ paths:
67856782
type: string
67866783
security:
67876784
- ApiKeyAuth: []
6788-
- ApiKeyAuth: []
67896785
summary: UserVerifyEmailSend
67906786
tags:
67916787
- User

internal/controller/report_controller.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ func NewReportController(
5959
// AddReport add report
6060
// @Summary add report
6161
// @Description add report <br> source (question, answer, comment, user)
62-
// @Security ApiKeyAuth
6362
// @Tags Report
6463
// @Accept json
6564
// @Produce json
@@ -130,7 +129,6 @@ func (rc *ReportController) GetUnreviewedReportPostPage(ctx *gin.Context) {
130129
// ReviewReport review report
131130
// @Summary review report
132131
// @Description review report
133-
// @Security ApiKeyAuth
134132
// @Tags Report
135133
// @Accept json
136134
// @Produce json

internal/controller/review_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ func (rc *ReviewController) GetUnreviewedPostPage(ctx *gin.Context) {
8686
// UpdateReview update review
8787
// @Summary update review
8888
// @Description update review
89-
// @Security ApiKeyAuth
9089
// @Tags Review
9190
// @Accept json
9291
// @Produce json

internal/controller/user_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ func (uc *UserController) UserVerifyEmail(ctx *gin.Context) {
335335
// UserVerifyEmailSend godoc
336336
// @Summary UserVerifyEmailSend
337337
// @Description UserVerifyEmailSend
338-
// @Security ApiKeyAuth
339338
// @Tags User
340339
// @Accept json
341340
// @Produce json

0 commit comments

Comments
 (0)