feat:完善项目

This commit is contained in:
henry
2021-11-16 16:39:21 +08:00
parent 978918e5aa
commit 48319d9632
8 changed files with 83 additions and 12 deletions

View File

@ -685,6 +685,35 @@ func (*Manage) MaterialSupplierDelete(c *gin.Context) {
APIResponse(err)(c)
}
/**
* @api {post} /api/v1/manage/notice 公告信息
* @apiVersion 1.0.0
* @apiName ManageNotice
* @apiGroup Manage
*
* @apiHeader {string} x-token token
*
* @apiSuccess (200) {Object} data 数据信息
* @apiSuccess (200) {String} data.id ID
* @apiSuccess (200) {String} data.title 标题
* @apiSuccess (200) {Time} data.created_at 创建时间
* @apiSuccess (200) {Number} code 成功响应状态码!
* @apiSuccess (200) {String} msg 成功提示
*
* @apiSuccessExample {json} Success response:
* HTTPS 200 OK
* {
* "code": 200
* "msg": "ok"
* "data": [
* {
* "id": "EgmJ4Ga7LQ",
* "title": "装甲车-11",
* "created_at": "",
* }
* ]
* }
*/
func (*Manage) Notice(c *gin.Context) {
form := &struct {
PageForm
@ -697,6 +726,39 @@ func (*Manage) Notice(c *gin.Context) {
APIResponse(err, data)(c)
}
/**
* @api {post} /api/v1/manage/notice/detail 公告详细信息
* @apiVersion 1.0.0
* @apiName ManageNoticeDetail
* @apiGroup Manage
*
* @apiHeader {string} x-token token
*
* @apiParam {String} id ID
*
* @apiSuccess (200) {Object} data 数据信息
* @apiSuccess (200) {String} data.id ID
* @apiSuccess (200) {String} data.title 标题
* @apiSuccess (200) {String} data.content 内容
* @apiSuccess (200) {Time} data.created_at 创建时间
* @apiSuccess (200) {Number} code 成功响应状态码!
* @apiSuccess (200) {String} msg 成功提示
*
* @apiSuccessExample {json} Success response:
* HTTPS 200 OK
* {
* "code": 200
* "msg": "ok"
* "data": [
* {
* "id": "EgmJ4Ga7LQ",
* "title": "装甲车-11",
* "content": "内容",
* "created_at": "",
* }
* ]
* }
*/
func (*Manage) NoticeDetail(c *gin.Context) {
form := new(IDStringForm)