From 85d380491cf4fee22adaeccd9a4264a576c0cff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 10 Feb 2023 10:26:27 +0800 Subject: [PATCH] 1 --- controllers/version_config_controller.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/controllers/version_config_controller.go b/controllers/version_config_controller.go index aa80bc61e..ca887b722 100644 --- a/controllers/version_config_controller.go +++ b/controllers/version_config_controller.go @@ -12,8 +12,8 @@ type VersionController struct { // @Title 添加小程序的版本控制 // @Description 添加小程序的版本控制 // @Param token header string true "认证token" -// @Param appId header string true "小程序id" -// @Param version header string true "小程序版本" +// @Param appId query string true "小程序id" +// @Param version query string true "小程序版本" // @Success 200 {object} controllers.CallResult // @Failure 200 {object} controllers.CallResult // @router /AddVersionController [post] @@ -27,8 +27,8 @@ func (c *VersionController) AddVersionController() { // @Title 修改小程序的版本控制 // @Description 修改小程序的版本控制 // @Param token header string true "认证token" -// @Param appId header string true "小程序id" -// @Param version header string true "小程序版本" +// @Param appId query string true "小程序id" +// @Param version query string true "小程序版本" // @Success 200 {object} controllers.CallResult // @Failure 200 {object} controllers.CallResult // @router /UpdateVersionController [post] @@ -42,7 +42,7 @@ func (c *VersionController) UpdateVersionController() { // @Title 获取版本控制 // @Description 获取版本控制 // @Param token header string false "认证token" -// @Param appId header string false "小程序id" +// @Param appId query string false "小程序id" // @Success 200 {object} controllers.CallResult // @Failure 200 {object} controllers.CallResult // @router /GetVersionController [get]