diff --git a/cloud-common-article/src/main/java/com/cm/common/article/controller/apis/articlecategory/ArticleCategoryController.java b/cloud-common-article/src/main/java/com/cm/common/article/controller/apis/articlecategory/ArticleCategoryController.java index 44a9bca..12185a4 100644 --- a/cloud-common-article/src/main/java/com/cm/common/article/controller/apis/articlecategory/ArticleCategoryController.java +++ b/cloud-common-article/src/main/java/com/cm/common/article/controller/apis/articlecategory/ArticleCategoryController.java @@ -88,11 +88,11 @@ public class ArticleCategoryController extends AbstractController { @ApiOperation(value = "文章类别分页列表", notes = "文章类别分页列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagearticlecategory") diff --git a/cloud-common-article/src/main/java/com/cm/common/article/controller/apis/articlecontent/ArticleContentController.java b/cloud-common-article/src/main/java/com/cm/common/article/controller/apis/articlecontent/ArticleContentController.java index 1e07138..f777a24 100644 --- a/cloud-common-article/src/main/java/com/cm/common/article/controller/apis/articlecontent/ArticleContentController.java +++ b/cloud-common-article/src/main/java/com/cm/common/article/controller/apis/articlecontent/ArticleContentController.java @@ -103,7 +103,7 @@ public class ArticleContentController extends AbstractController { @ApiOperation(value = "文章内容列表", notes = "文章内容列表接口") @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiImplicitParams({ - @ApiImplicitParam(name = "articleCategoryId", value = "文章目录", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "articleCategoryId", value = "文章目录", paramType = "query", dataType = "String") }) @GetMapping("listarticlecontent") public List listArticleContent() throws SearchException { @@ -113,8 +113,8 @@ public class ArticleContentController extends AbstractController { @ApiOperation(value = "文章内容分页列表", notes = "文章内容分页列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "Integer", defaultValue = "20"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String"), @@ -137,7 +137,7 @@ public class ArticleContentController extends AbstractController { @ApiOperation(value = "统计文章数量", notes = "统计文章数量接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "articleCategoryId", value = "文章目录", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "articleCategoryId", value = "文章目录", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("countarticlecount") diff --git a/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecategory/ArticleCategoryAppController.java b/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecategory/ArticleCategoryAppController.java index 78147e1..74d6bda 100644 --- a/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecategory/ArticleCategoryAppController.java +++ b/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecategory/ArticleCategoryAppController.java @@ -94,11 +94,11 @@ public class ArticleCategoryAppController extends AbstractController { @ApiOperation(value = "文章类别分页列表", notes = "文章类别分页列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagearticlecategory") diff --git a/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecontent/ArticleContentAppController.java b/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecontent/ArticleContentAppController.java index c0e01d0..130851e 100644 --- a/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecontent/ArticleContentAppController.java +++ b/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecontent/ArticleContentAppController.java @@ -96,8 +96,8 @@ public class ArticleContentAppController extends AbstractController { @ApiOperation(value = "文章内容分页列表", notes = "文章内容分页列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "Integer", defaultValue = "20"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String"), @@ -115,7 +115,7 @@ public class ArticleContentAppController extends AbstractController { @ApiOperation(value = "统计文章数量", notes = "统计文章数量接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "articleCategoryId", value = "文章目录", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "articleCategoryId", value = "文章目录", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("countarticlecount") diff --git a/cloud-common-article/src/main/java/com/cm/common/article/controller/resources/articlecategory/ArticleCategoryResourceController.java b/cloud-common-article/src/main/java/com/cm/common/article/controller/resources/articlecategory/ArticleCategoryResourceController.java index 751cfe8..6199e37 100644 --- a/cloud-common-article/src/main/java/com/cm/common/article/controller/resources/articlecategory/ArticleCategoryResourceController.java +++ b/cloud-common-article/src/main/java/com/cm/common/article/controller/resources/articlecategory/ArticleCategoryResourceController.java @@ -94,11 +94,11 @@ public class ArticleCategoryResourceController extends AbstractController { @ApiOperation(value = "文章类别分页列表", notes = "文章类别分页列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "access_token", value = "access_token", paramType = "query"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagearticlecategory") diff --git a/cloud-common-article/src/main/java/com/cm/common/article/controller/resources/articlecontent/ArticleContentResourceController.java b/cloud-common-article/src/main/java/com/cm/common/article/controller/resources/articlecontent/ArticleContentResourceController.java index 7af216d..5c9d436 100644 --- a/cloud-common-article/src/main/java/com/cm/common/article/controller/resources/articlecontent/ArticleContentResourceController.java +++ b/cloud-common-article/src/main/java/com/cm/common/article/controller/resources/articlecontent/ArticleContentResourceController.java @@ -95,8 +95,8 @@ public class ArticleContentResourceController extends AbstractController { @ApiOperation(value = "文章内容分页列表", notes = "文章内容分页列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "access_token", value = "access_token", paramType = "query"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "Integer", defaultValue = "20"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String"), @@ -113,7 +113,7 @@ public class ArticleContentResourceController extends AbstractController { @ApiOperation(value = "统计文章数量", notes = "统计文章数量接口") @ApiImplicitParams({ @ApiImplicitParam(name = "access_token", value = "access_token", paramType = "query"), - @ApiImplicitParam(name = "articleCategoryId", value = "文章目录", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "articleCategoryId", value = "文章目录", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("countarticlecount") diff --git a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/apis/dataarea/DataAreaController.java b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/apis/dataarea/DataAreaController.java index 666dc98..f32059a 100644 --- a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/apis/dataarea/DataAreaController.java +++ b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/apis/dataarea/DataAreaController.java @@ -99,12 +99,12 @@ public class DataAreaController extends AbstractController { @ApiOperation(value = "分页地区字典列表", notes = "分页地区字典列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagearea") @@ -121,7 +121,7 @@ public class DataAreaController extends AbstractController { @ApiOperation(value = "zTree列表", notes = "zTree列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "父ID", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "id", value = "父ID", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listztreearea") diff --git a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/apis/datadictionary/DataDictionaryController.java b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/apis/datadictionary/DataDictionaryController.java index 8fb0cb8..2604ac9 100644 --- a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/apis/datadictionary/DataDictionaryController.java +++ b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/apis/datadictionary/DataDictionaryController.java @@ -99,12 +99,12 @@ public class DataDictionaryController extends AbstractController { @ApiOperation(value = "分页字典列表", notes = "分页字典列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagedictionary") @@ -121,7 +121,7 @@ public class DataDictionaryController extends AbstractController { @ApiOperation(value = "zTree列表", notes = "zTree列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "父ID", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "id", value = "父ID", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listztreedictionary") diff --git a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/app/dataarea/DataAreaAppController.java b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/app/dataarea/DataAreaAppController.java index 2d1a264..2b72f8c 100644 --- a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/app/dataarea/DataAreaAppController.java +++ b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/app/dataarea/DataAreaAppController.java @@ -108,12 +108,12 @@ public class DataAreaAppController extends AbstractController { @ApiOperation(value = "分页地区字典列表", notes = "分页地区字典列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagearea") @@ -131,7 +131,7 @@ public class DataAreaAppController extends AbstractController { @ApiOperation(value = "zTree列表", notes = "zTree列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "id", value = "父ID", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "id", value = "父ID", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listztreearea") diff --git a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/app/datadictionary/DataDictionaryAppController.java b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/app/datadictionary/DataDictionaryAppController.java index 53d751a..893bccc 100644 --- a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/app/datadictionary/DataDictionaryAppController.java +++ b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/app/datadictionary/DataDictionaryAppController.java @@ -108,12 +108,12 @@ public class DataDictionaryAppController extends AbstractController { @ApiOperation(value = "分页字典列表", notes = "分页字典列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagedictionary") @@ -131,7 +131,7 @@ public class DataDictionaryAppController extends AbstractController { @ApiOperation(value = "zTree列表", notes = "zTree列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "id", value = "父ID", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "id", value = "父ID", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listztreedictionary") diff --git a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/wechat/dataarea/DataAreaWechatController.java b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/wechat/dataarea/DataAreaWechatController.java index 87ebba6..a1efa04 100644 --- a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/wechat/dataarea/DataAreaWechatController.java +++ b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/wechat/dataarea/DataAreaWechatController.java @@ -70,12 +70,12 @@ public class DataAreaWechatController extends AbstractController { @ApiOperation(value = "分页地区字典列表", notes = "分页地区字典列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagearea") @@ -92,7 +92,7 @@ public class DataAreaWechatController extends AbstractController { @ApiOperation(value = "zTree列表", notes = "zTree列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "父ID", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "id", value = "父ID", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listztreearea") diff --git a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/wechat/datadictionary/DataDictionaryWechatController.java b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/wechat/datadictionary/DataDictionaryWechatController.java index 433d8e6..f587c62 100644 --- a/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/wechat/datadictionary/DataDictionaryWechatController.java +++ b/cloud-common-plugin-dictionary/src/main/java/com/cm/common/plugin/controller/wechat/datadictionary/DataDictionaryWechatController.java @@ -70,12 +70,12 @@ public class DataDictionaryWechatController extends AbstractController { @ApiOperation(value = "分页字典列表", notes = "分页字典列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "parentId", value = "上级ID", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagedictionary") @@ -92,7 +92,7 @@ public class DataDictionaryWechatController extends AbstractController { @ApiOperation(value = "zTree列表", notes = "zTree列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "父ID", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "id", value = "父ID", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listztreedictionary") diff --git a/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/controller/apis/dynamic/config/DynamicConfigTableController.java b/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/controller/apis/dynamic/config/DynamicConfigTableController.java index f4adeef..1ee8a56 100644 --- a/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/controller/apis/dynamic/config/DynamicConfigTableController.java +++ b/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/controller/apis/dynamic/config/DynamicConfigTableController.java @@ -112,11 +112,11 @@ public class DynamicConfigTableController extends AbstractController { @ApiOperation(value = "分页表列表", notes = "分页表列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagetable") @@ -129,8 +129,8 @@ public class DynamicConfigTableController extends AbstractController { @ApiOperation(value = "下载静态化代码", notes = "下载静态化代码接口") @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "id", paramType = "path"), - @ApiImplicitParam(name = "basePackage", value = "基础包", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "context", value = "访问路径", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "basePackage", value = "基础包", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "context", value = "访问路径", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("getgeneratorcode/{id}") @@ -143,11 +143,11 @@ public class DynamicConfigTableController extends AbstractController { @ApiOperation(value = "下载空项目", notes = "下载空项目接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "systemUrl", value = "系统地址", paramType = "form"), - @ApiImplicitParam(name = "systemPort", value = "系统端口", paramType = "form", dataType = "Integer"), - @ApiImplicitParam(name = "systemName", value = "系统名", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "systemSummary", value = "系统说明", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "oauthServerUrl", value = "认证地址", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "systemUrl", value = "系统地址", paramType = "query"), + @ApiImplicitParam(name = "systemPort", value = "系统端口", paramType = "query", dataType = "int"), + @ApiImplicitParam(name = "systemName", value = "系统名", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "systemSummary", value = "系统说明", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "oauthServerUrl", value = "认证地址", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("getemptyproject") diff --git a/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/controller/apis/dynamic/config/form/DynamicConfigFormController.java b/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/controller/apis/dynamic/config/form/DynamicConfigFormController.java index af1f68e..9aa25d1 100644 --- a/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/controller/apis/dynamic/config/form/DynamicConfigFormController.java +++ b/cloud-common-plugin-dynamic/src/main/java/com/cm/common/plugin/controller/apis/dynamic/config/form/DynamicConfigFormController.java @@ -152,11 +152,11 @@ public class DynamicConfigFormController extends AbstractController { @ApiOperation(value = "分页表单列表单", notes = "分页表单列表单接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpageform/{tableName}") diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/apis/ApiController.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/apis/ApiController.ftl index 149cac0..a29c3a5 100644 --- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/apis/ApiController.ftl +++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/apis/ApiController.ftl @@ -89,11 +89,11 @@ public class ${firstUpperTableName}Controller extends AbstractController { @ApiOperation(value = "${tableExplain}分页列表", notes = "${tableExplain}分页列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpage${lowerTableName}") diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/app/apis/AppController.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/app/apis/AppController.ftl index 0ed873f..20aafe4 100644 --- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/app/apis/AppController.ftl +++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/app/apis/AppController.ftl @@ -95,11 +95,11 @@ public class ${firstUpperTableName}AppController extends AbstractController { @ApiOperation(value = "${tableExplain}分页列表", notes = "${tableExplain}分页列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpage${lowerTableName}") diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/resources/ResourceController.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/resources/ResourceController.ftl index 4ca1a16..2dbb550 100644 --- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/resources/ResourceController.ftl +++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/controller/resources/ResourceController.ftl @@ -95,11 +95,11 @@ public class ${firstUpperTableName}ResourceController extends AbstractController @ApiOperation(value = "${tableExplain}分页列表", notes = "${tableExplain}分页列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "access_token", value = "access_token", paramType = "query"), - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpage${lowerTableName}") diff --git a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/apis/department/DepartmentController.java b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/apis/department/DepartmentController.java index f878179..7c07768 100644 --- a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/apis/department/DepartmentController.java +++ b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/apis/department/DepartmentController.java @@ -35,7 +35,7 @@ public class DepartmentController extends AbstractController { @ApiOperation(value = "部门列表", notes = "部门列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "上级部门ID", paramType = "form") + @ApiImplicitParam(name = "id", value = "上级部门ID", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listdepartments") @@ -51,7 +51,7 @@ public class DepartmentController extends AbstractController { @ApiOperation(value = "部门列表(zTree)", notes = "部门列表(zTree)接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "上级部门ID", paramType = "form") + @ApiImplicitParam(name = "id", value = "上级部门ID", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listztreedepartment") @@ -62,7 +62,7 @@ public class DepartmentController extends AbstractController { @ApiOperation(value = "部门人员列表", notes = "部门人员列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "上级部门ID", paramType = "form") + @ApiImplicitParam(name = "id", value = "上级部门ID", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listztreedepartmentwithuser") diff --git a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/apis/role/RoleController.java b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/apis/role/RoleController.java index a03e892..53733b6 100644 --- a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/apis/role/RoleController.java +++ b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/apis/role/RoleController.java @@ -35,7 +35,7 @@ public class RoleController extends AbstractController { @ApiOperation(value = "zTree列表", notes = "zTree列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "上级ID", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "id", value = "上级ID", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listztreerole") diff --git a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/app/apis/department/DepartmentAppController.java b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/app/apis/department/DepartmentAppController.java index 505e4e8..96dbda2 100644 --- a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/app/apis/department/DepartmentAppController.java +++ b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/app/apis/department/DepartmentAppController.java @@ -33,7 +33,7 @@ public class DepartmentAppController extends AbstractController { @ApiOperation(value = "部门人员列表", notes = "部门人员列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "上级部门ID", paramType = "form") + @ApiImplicitParam(name = "id", value = "上级部门ID", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listztreedepartmentwithuser") diff --git a/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/apis/file/FileController.java b/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/apis/file/FileController.java index a9081d9..86c3f41 100644 --- a/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/apis/file/FileController.java +++ b/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/apis/file/FileController.java @@ -37,7 +37,7 @@ public class FileController extends AbstractController { @ApiOperation(value = "上传文件", notes = "上传文件接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "file", value = "文件name", paramType = "form") + @ApiImplicitParam(name = "file", value = "文件name", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadfile") @@ -48,7 +48,7 @@ public class FileController extends AbstractController { @ApiOperation(value = "上传图片", notes = "上传图片接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "image", value = "文件name", paramType = "form") + @ApiImplicitParam(name = "image", value = "文件name", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadimage") @@ -59,7 +59,7 @@ public class FileController extends AbstractController { @ApiOperation(value = "上传视频", notes = "上传视频接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "video", value = "文件video", paramType = "form") + @ApiImplicitParam(name = "video", value = "文件video", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadvideo") @@ -70,7 +70,7 @@ public class FileController extends AbstractController { @ApiOperation(value = "上传音频", notes = "上传音频接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "audio", value = "文件audio", paramType = "form") + @ApiImplicitParam(name = "audio", value = "文件audio", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadaudio") @@ -81,7 +81,7 @@ public class FileController extends AbstractController { @ApiOperation(value = "文件列表", notes = "文件列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "ids", value = "id列表,逗号分隔", paramType = "form") + @ApiImplicitParam(name = "ids", value = "id列表,逗号分隔", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listfilebyfileid") @@ -117,7 +117,7 @@ public class FileController extends AbstractController { @ApiOperation(value = "上传图片", notes = "上传图片接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "image", value = "文件name", paramType = "form") + @ApiImplicitParam(name = "image", value = "文件name", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("wangeditorimage") diff --git a/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/apis/systemlogger/SystemLoggerController.java b/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/apis/systemlogger/SystemLoggerController.java index 69fbefb..e2e9b28 100755 --- a/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/apis/systemlogger/SystemLoggerController.java +++ b/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/apis/systemlogger/SystemLoggerController.java @@ -161,11 +161,11 @@ public class SystemLoggerController extends AbstractController { @ApiOperation(value = "分页系统日志列表", notes = "分页系统日志列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagesystemlogger") diff --git a/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/app/apis/file/FileAppController.java b/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/app/apis/file/FileAppController.java index cb29b04..8108a57 100644 --- a/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/app/apis/file/FileAppController.java +++ b/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/app/apis/file/FileAppController.java @@ -37,7 +37,7 @@ public class FileAppController extends AbstractController { @ApiOperation(value = "上传文件", notes = "上传文件接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "file", value = "文件name", paramType = "form") + @ApiImplicitParam(name = "file", value = "文件name", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadfile") @@ -49,7 +49,7 @@ public class FileAppController extends AbstractController { @ApiOperation(value = "上传图片", notes = "上传图片接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "image", value = "文件name", paramType = "form") + @ApiImplicitParam(name = "image", value = "文件name", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadimage") @@ -61,7 +61,7 @@ public class FileAppController extends AbstractController { @ApiOperation(value = "上传视频", notes = "上传视频接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "video", value = "文件video", paramType = "form") + @ApiImplicitParam(name = "video", value = "文件video", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadvideo") @@ -73,7 +73,7 @@ public class FileAppController extends AbstractController { @ApiOperation(value = "上传音频", notes = "上传音频接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "audio", value = "文件audio", paramType = "form") + @ApiImplicitParam(name = "audio", value = "文件audio", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadaudio") @@ -84,7 +84,7 @@ public class FileAppController extends AbstractController { @ApiOperation(value = "上传图片", notes = "上传图片接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "image", value = "文件name", paramType = "form") + @ApiImplicitParam(name = "image", value = "文件name", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("wangeditorimage") diff --git a/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/wechat/file/FileWechatController.java b/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/wechat/file/FileWechatController.java index 60c61f2..ae05b9a 100644 --- a/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/wechat/file/FileWechatController.java +++ b/cloud-common-plugin/src/main/java/com/cm/common/plugin/controller/wechat/file/FileWechatController.java @@ -38,7 +38,7 @@ public class FileWechatController extends AbstractController { @ApiOperation(value = "上传文件", notes = "上传文件接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "file", value = "文件name", paramType = "form") + @ApiImplicitParam(name = "file", value = "文件name", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadfile") @@ -50,7 +50,7 @@ public class FileWechatController extends AbstractController { @ApiOperation(value = "上传图片", notes = "上传图片接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "image", value = "文件name", paramType = "form") + @ApiImplicitParam(name = "image", value = "文件name", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadimage") @@ -62,7 +62,7 @@ public class FileWechatController extends AbstractController { @ApiOperation(value = "上传视频", notes = "上传视频接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "video", value = "文件video", paramType = "form") + @ApiImplicitParam(name = "video", value = "文件video", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadvideo") @@ -73,7 +73,7 @@ public class FileWechatController extends AbstractController { @ApiOperation(value = "上传音频", notes = "上传音频接口") @ApiImplicitParams({@ApiImplicitParam(name = "token", value = "token", paramType = "header"), - @ApiImplicitParam(name = "audio", value = "文件audio", paramType = "form") + @ApiImplicitParam(name = "audio", value = "文件audio", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("uploadaudio") @@ -84,7 +84,7 @@ public class FileWechatController extends AbstractController { @ApiOperation(value = "文件列表", notes = "文件列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "ids", value = "id列表,逗号分隔", paramType = "form") + @ApiImplicitParam(name = "ids", value = "id列表,逗号分隔", paramType = "query") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listfilebyfileid") diff --git a/cloud-manager-sms/src/main/java/com/cm/manager/sms/controller/SmsController.java b/cloud-manager-sms/src/main/java/com/cm/manager/sms/controller/SmsController.java index 8e297c3..c046fdc 100644 --- a/cloud-manager-sms/src/main/java/com/cm/manager/sms/controller/SmsController.java +++ b/cloud-manager-sms/src/main/java/com/cm/manager/sms/controller/SmsController.java @@ -89,11 +89,11 @@ public class SmsController extends AbstractController { @ApiOperation(value = "短信分页列表", notes = "短信分页列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), - @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "form", dataType = "Integer", defaultValue = "20"), - @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "form", dataType = "String"), - @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "form", dataType = "String") + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("listpagesms")