Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,12 @@ const docTemplate = `{
"name": "current",
"in": "query"
},
{
"maxLength": 255,
"type": "string",
"name": "search",
"in": "query"
},
{
"maximum": 100,
"minimum": 1,
Expand All @@ -450,6 +456,33 @@ const docTemplate = `{
}
}
},
"/api/v1/projects/received/chart": {
"get": {
"produces": [
"application/json"
],
"tags": [
"project"
],
"parameters": [
{
"maximum": 180,
"minimum": 1,
"type": "integer",
"name": "day",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/project.ListReceiveHistoryChartResponse"
}
}
}
}
},
"/api/v1/projects/{id}": {
"get": {
"description": "获取指定项目所有信息以及领取情况 (Get all information and claim status for a specific project)",
Expand Down Expand Up @@ -1188,6 +1221,20 @@ const docTemplate = `{
}
}
},
"project.ListReceiveHistoryChartResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/project.ReceiveHistoryChartPoint"
}
},
"error_msg": {
"type": "string"
}
}
},
"project.ListReceiveHistoryResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1273,6 +1320,20 @@ const docTemplate = `{
"ProjectStatusViolation"
]
},
"project.ReceiveHistoryChartPoint": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"date": {
"type": "string"
},
"label": {
"type": "string"
}
}
},
"project.ReportProjectRequestBody": {
"type": "object",
"required": [
Expand Down
61 changes: 61 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,12 @@
"name": "current",
"in": "query"
},
{
"maxLength": 255,
"type": "string",
"name": "search",
"in": "query"
},
{
"maximum": 100,
"minimum": 1,
Expand All @@ -441,6 +447,33 @@
}
}
},
"/api/v1/projects/received/chart": {
"get": {
"produces": [
"application/json"
],
"tags": [
"project"
],
"parameters": [
{
"maximum": 180,
"minimum": 1,
"type": "integer",
"name": "day",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/project.ListReceiveHistoryChartResponse"
}
}
}
}
},
"/api/v1/projects/{id}": {
"get": {
"description": "获取指定项目所有信息以及领取情况 (Get all information and claim status for a specific project)",
Expand Down Expand Up @@ -1179,6 +1212,20 @@
}
}
},
"project.ListReceiveHistoryChartResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/project.ReceiveHistoryChartPoint"
}
},
"error_msg": {
"type": "string"
}
}
},
"project.ListReceiveHistoryResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1264,6 +1311,20 @@
"ProjectStatusViolation"
]
},
"project.ReceiveHistoryChartPoint": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"date": {
"type": "string"
},
"label": {
"type": "string"
}
}
},
"project.ReportProjectRequestBody": {
"type": "object",
"required": [
Expand Down
39 changes: 39 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,15 @@ definitions:
total_items:
type: integer
type: object
project.ListReceiveHistoryChartResponse:
properties:
data:
items:
$ref: '#/definitions/project.ReceiveHistoryChartPoint'
type: array
error_msg:
type: string
type: object
project.ListReceiveHistoryResponse:
properties:
data:
Expand Down Expand Up @@ -383,6 +392,15 @@ definitions:
- ProjectStatusNormal
- ProjectStatusHidden
- ProjectStatusViolation
project.ReceiveHistoryChartPoint:
properties:
count:
type: integer
date:
type: string
label:
type: string
type: object
project.ReportProjectRequestBody:
properties:
reason:
Expand Down Expand Up @@ -850,6 +868,10 @@ paths:
minimum: 1
name: current
type: integer
- in: query
maxLength: 255
name: search
type: string
- in: query
maximum: 100
minimum: 1
Expand All @@ -864,6 +886,23 @@ paths:
$ref: '#/definitions/project.ListReceiveHistoryResponse'
tags:
- project
/api/v1/projects/received/chart:
get:
parameters:
- in: query
maximum: 180
minimum: 1
name: day
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/project.ListReceiveHistoryChartResponse'
tags:
- project
/api/v1/tags:
get:
consumes:
Expand Down
Loading