From 602ff269880217e9804d72b08252384c9d646c08 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Thu, 3 Jun 2021 09:23:48 +0800 Subject: [PATCH] =?UTF-8?q?docs=F0=9F=93=9D:=20=20=E4=BF=AE=E6=94=B9api?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/apis/sys_api.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/admin/apis/sys_api.go b/app/admin/apis/sys_api.go index b81e889f..b5b2e1e7 100644 --- a/app/admin/apis/sys_api.go +++ b/app/admin/apis/sys_api.go @@ -64,7 +64,7 @@ func (e SysApi) GetSysApiList(c *gin.Context) { // @Tags 接口管理 // @Param id path string false "id" // @Success 200 {object} response.Response{data=models.SysApi} "{"code": 200, "data": [...]}" -// @Router /api/v1/sys_api/{id} [get] +// @Router /api/v1/sys-api/{id} [get] // @Security Bearer func (e SysApi) GetSysApi(c *gin.Context) { control := new(dto.SysApiById) @@ -102,7 +102,7 @@ func (e SysApi) GetSysApi(c *gin.Context) { // @Product application/json // @Param data body dto.SysApiControl true "body" // @Success 200 {object} response.Response "{"code": 200, "message": "修改成功"}" -// @Router /api/v1/sys_api/{id} [put] +// @Router /api/v1/sys-api/{id} [put] // @Security Bearer func (e SysApi) UpdateSysApi(c *gin.Context) { req := new(dto.SysApiControl) @@ -137,7 +137,7 @@ func (e SysApi) UpdateSysApi(c *gin.Context) { // @Tags 接口管理 // @Param ids body []int false "ids" // @Success 200 {object} response.Response "{"code": 200, "message": "删除成功"}" -// @Router /api/v1/sys_api [delete] +// @Router /api/v1/sys-api [delete] // @Security Bearer func (e SysApi) DeleteSysApi(c *gin.Context) { @@ -145,7 +145,7 @@ func (e SysApi) DeleteSysApi(c *gin.Context) { s := service.SysApi{} err := e.MakeContext(c). MakeOrm(). - Bind(control). + Bind(control, binding.Form). MakeService(&s.Service). Errors if err != nil {