feat:完善项目

This commit is contained in:
henry
2021-11-16 11:46:44 +08:00
parent 78128277ff
commit 978918e5aa
14 changed files with 193 additions and 19 deletions

View File

@ -32,6 +32,11 @@ type Dashboard struct{}
* @apiSuccess (200) {String} data.notice.id ID
* @apiSuccess (200) {String} data.notice.title 公告标题
* @apiSuccess (200) {Time} data.notice.created_at 公告创建时间
* @apiSuccess (200) {Object} data.evaluate 评价信息
* @apiSuccess (200) {String} data.evaluate.name ID
* @apiSuccess (200) {Number} data.evaluate.praise 好评数
* @apiSuccess (200) {Number} data.evaluate.middle 中评数
* @apiSuccess (200) {Number} data.evaluate.negative 差评数
* @apiSuccess (200) {Number} code 成功响应状态码!
* @apiSuccess (200) {String} msg 成功提示
*
@ -48,11 +53,17 @@ type Dashboard struct{}
* "breakdown_title": ""
* "username": ""
* "created_at": ""
* ]
* ],
* "notice": [
* "id": "",
* "title": "",
* "created_at": "2021-11-01"
* ],
* "evaluate": [
* "name": "",
* "praise": 1,
* "middle": 0,
* "negative": 0,
* ]
* }
* }
@ -104,7 +115,3 @@ func (*Dashboard) Repair(c *gin.Context) {
data, err := dashboard.NewRepair()(getSession()(c).(*service.Session)).Static(form.Date)
APIResponse(err, data)(c)
}
func (*Dashboard) Score(c *gin.Context) {
}