Skip to content

Commit c98ca6e

Browse files
chore(ci): auto-generate swagger & license [skip ci]
1 parent 36d9fb1 commit c98ca6e

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

docs/docs.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,9 +1005,16 @@ const docTemplate = `{
10051005
"createdAt": {
10061006
"type": "string"
10071007
},
1008+
"deleted": {
1009+
"type": "boolean"
1010+
},
10081011
"id": {
10091012
"type": "string"
10101013
},
1014+
"status": {
1015+
"description": "pending / approved / rejected",
1016+
"type": "string"
1017+
},
10111018
"title": {
10121019
"type": "string"
10131020
},

docs/swagger.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,9 +984,16 @@
984984
"createdAt": {
985985
"type": "string"
986986
},
987+
"deleted": {
988+
"type": "boolean"
989+
},
987990
"id": {
988991
"type": "string"
989992
},
993+
"status": {
994+
"description": "pending / approved / rejected",
995+
"type": "string"
996+
},
990997
"title": {
991998
"type": "string"
992999
},

docs/swagger.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,13 @@ definitions:
313313
$ref: '#/definitions/dto.CourseVO'
314314
createdAt:
315315
type: string
316+
deleted:
317+
type: boolean
316318
id:
317319
type: string
320+
status:
321+
description: pending / approved / rejected
322+
type: string
318323
title:
319324
type: string
320325
updatedAt:

types/mapping/proposal_status.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2025 Boyuan-IT-Club
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
package mapping
216

317
var ProposalStatusMap = map[int32]string{

0 commit comments

Comments
 (0)