fix:Model doc information in api document is wrong(#161)

This commit is contained in:
zhangwenjian committed 2020-07-15 22:02:40 +08:00
1 parent 18d116bc0c
commit 073ef02c05
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -61,7 +61,7 @@ func GetDept(c *gin.Context) {
// @Tags 部门
// @Accept application/json
// @Product application/json
// @Param data body models.Dept true "data"
// @Param data body models.SysDept true "data"
// @Success 200 {string} string "{"code": 200, "message": "添加成功"}"
// @Success 200 {string} string "{"code": -1, "message": "添加失败"}"
// @Router /api/v1/dept [post]
@@ -82,7 +82,7 @@ func InsertDept(c *gin.Context) {
// @Accept application/json
// @Product application/json
// @Param id path int true "id"
// @Param data body models.Dept true "body"
// @Param data body models.SysDept true "body"
// @Success 200 {string} string "{"code": 200, "message": "添加成功"}"
// @Success 200 {string} string "{"code": -1, "message": "添加失败"}"
// @Router /api/v1/dept [put]