From 6b88c9a0045ac2a8b857fb8958870e9e166958c7 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Tue, 27 Jul 2021 19:16:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=F0=9F=90=9B:=20=E6=9B=B4=E6=96=B0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=96=87=E6=A1=A3=E6=B3=A8=E9=87=8A=20(#507)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/apis/sys_dept.go | 6 +++--- app/admin/apis/sys_opera_log.go | 2 +- app/admin/apis/sys_role.go | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/admin/apis/sys_dept.go b/app/admin/apis/sys_dept.go index 306e129..f37eae4 100644 --- a/app/admin/apis/sys_dept.go +++ b/app/admin/apis/sys_dept.go @@ -87,7 +87,7 @@ func (e SysDept) Get(c *gin.Context) { // @Tags 部门 // @Accept application/json // @Product application/json -// @Param data body dto.SysDeptControl true "data" +// @Param data body dto.SysDeptInsertReq true "data" // @Success 200 {string} string "{"code": 200, "message": "添加成功"}" // @Success 200 {string} string "{"code": -1, "message": "添加失败"}" // @Router /api/v1/dept [post] @@ -123,7 +123,7 @@ func (e SysDept) Insert(c *gin.Context) { // @Accept application/json // @Product application/json // @Param id path int true "id" -// @Param data body dto.SysDeptControl true "body" +// @Param data body dto.SysDeptUpdateReq true "body" // @Success 200 {string} string "{"code": 200, "message": "添加成功"}" // @Success 200 {string} string "{"code": -1, "message": "添加失败"}" // @Router /api/v1/dept/{deptId} [put] @@ -154,7 +154,7 @@ func (e SysDept) Update(c *gin.Context) { // @Summary 删除部门 // @Description 删除数据 // @Tags 部门 -// @Param data body dto.SysDeptById true "body" +// @Param data body dto.SysDeptDeleteReq true "body" // @Success 200 {string} string "{"code": 200, "message": "删除成功"}" // @Success 200 {string} string "{"code": -1, "message": "删除失败"}" // @Router /api/v1/dept [delete] diff --git a/app/admin/apis/sys_opera_log.go b/app/admin/apis/sys_opera_log.go index 4d8285b..2803924 100644 --- a/app/admin/apis/sys_opera_log.go +++ b/app/admin/apis/sys_opera_log.go @@ -90,7 +90,7 @@ func (e SysOperaLog) Get(c *gin.Context) { // @Summary 删除操作日志 // @Description 删除数据 // @Tags 操作日志 -// @Param data body dto.SysOperaLogById true "body" +// @Param data body dto.SysOperaLogDeleteReq true "body" // @Success 200 {object} response.Response "{"code": 200, "data": [...]}" // @Router /api/v1/sys-opera-log [delete] // @Security Bearer diff --git a/app/admin/apis/sys_role.go b/app/admin/apis/sys_role.go index 5c9f8af..7e28a67 100644 --- a/app/admin/apis/sys_role.go +++ b/app/admin/apis/sys_role.go @@ -98,7 +98,7 @@ func (e SysRole) Get(c *gin.Context) { // @Tags 角色/Role // @Accept application/json // @Product application/json -// @Param data body dto.SysRoleControl true "data" +// @Param data body dto.SysRoleInsertReq true "data" // @Success 200 {object} response.Response "{"code": 200, "data": [...]}" // @Router /api/v1/role [post] // @Security Bearer @@ -142,7 +142,7 @@ func (e SysRole) Insert(c *gin.Context) { // @Tags 角色/Role // @Accept application/json // @Product application/json -// @Param data body dto.SysRoleControl true "body" +// @Param data body dto.SysRoleUpdateReq true "body" // @Success 200 {object} response.Response "{"code": 200, "data": [...]}" // @Router /api/v1/role/{id} [put] // @Security Bearer @@ -180,7 +180,7 @@ func (e SysRole) Update(c *gin.Context) { // @Summary 删除用户角色 // @Description 删除数据 // @Tags 角色/Role -// @Param data body dto.SysRoleById true "body" +// @Param data body dto.SysRoleDeleteReq true "body" // @Success 200 {object} response.Response "{"code": 200, "data": [...]}" // @Router /api/v1/role [delete] // @Security Bearer