From 52ec7ab3633dd2b3f41018d08692d9acb7835bbf Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Mon, 20 Feb 2023 09:34:32 +0800 Subject: [PATCH] =?UTF-8?q?:rocket:=20=E6=B7=BB=E5=8A=A0sw=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PushApplicationController.java | 10 +++++++++- .../commonbiz/controller/PushCustomTypeController.java | 8 ++++++++ .../commonbiz/controller/PushPassListController.java | 8 ++++++++ .../commonbiz/controller/PushThirdPartyController.java | 8 ++++++++ .../controller/PushThirdPartyManageController.java | 8 ++++++++ .../commonbiz/controller/PushUserManageController.java | 8 ++++++++ 6 files changed, 49 insertions(+), 1 deletion(-) diff --git a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushApplicationController.java b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushApplicationController.java index d050b019..99e5445c 100644 --- a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushApplicationController.java +++ b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushApplicationController.java @@ -11,6 +11,8 @@ import com.cloud.kicc.common.log.annotation.SysLog; import com.cloud.kicc.commonbiz.api.entity.PushApplication; import com.cloud.kicc.commonbiz.service.IPushApplicationService; import com.cloud.kicc.system.api.entity.OauthClientDetails; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; @@ -29,6 +31,7 @@ import java.util.Arrays; @RestController @RequestMapping(AppConstants.APP_COMMON + "/pushApplication") @RequiredArgsConstructor +@Api(tags = "推送应用") public class PushApplicationController { private final IPushApplicationService iPushApplicationService; @@ -39,36 +42,41 @@ public class PushApplicationController { .eq(StrUtil.isNotBlank(pushApplication.getStatus()), PushApplication::getStatus, pushApplication.getStatus()); } + @ApiOperation("分页查询") @GetMapping("/list") public R list(Page page, PushApplication pushApplication) { IPage list = iPushApplicationService.page(page, getQueryWrapper(pushApplication)); return R.ok(list.getRecords(), list.getTotal()); } + @ApiOperation("根据ID查询") @GetMapping("/{id:\\w+}") public R getById(@PathVariable("id") String id) { return R.ok(iPushApplicationService.getById(id)); } + @ApiOperation("保存") @PostMapping("/save") public R save(@Valid @RequestBody PushApplication pushApplication) { iPushApplicationService.save(pushApplication); return R.ok(); } + @ApiOperation("修改") @PutMapping("/update") public R update(@Valid @RequestBody PushApplication pushApplication) { iPushApplicationService.updateById(pushApplication); return R.ok(); } + @ApiOperation("删除") @DeleteMapping("/remove/{ids:[\\w,]+}") public R removeById(@PathVariable String[] ids) { iPushApplicationService.removeByIds(Arrays.asList(ids)); return R.ok(); } - + diff --git a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushCustomTypeController.java b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushCustomTypeController.java index 1d3ba337..92b80efa 100644 --- a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushCustomTypeController.java +++ b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushCustomTypeController.java @@ -9,6 +9,8 @@ import com.cloud.kicc.common.core.api.R; import com.cloud.kicc.common.core.constant.AppConstants; import com.cloud.kicc.commonbiz.api.entity.PushCustomType; import com.cloud.kicc.commonbiz.service.IPushCustomTypeService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; @@ -26,6 +28,7 @@ import java.util.Arrays; @RestController @RequestMapping(AppConstants.APP_COMMON + "/pushCustomType") @RequiredArgsConstructor +@Api(tags = "推送自定义通知类型") public class PushCustomTypeController { private final IPushCustomTypeService iPushCustomTypeService; @@ -35,29 +38,34 @@ public class PushCustomTypeController { .eq(StrUtil.isNotBlank(pushCustomType.getName()), PushCustomType::getName, pushCustomType.getName()); } + @ApiOperation("分页查询") @GetMapping("/list") public R list(Page page, PushCustomType pushCustomType) { IPage list = iPushCustomTypeService.page(page, getQueryWrapper(pushCustomType)); return R.ok(list.getRecords(), list.getTotal()); } + @ApiOperation("根据ID查询") @GetMapping("/{id:\\w+}") public R getById(@PathVariable("id") String id) { return R.ok(iPushCustomTypeService.getById(id)); } + @ApiOperation("保存") @PostMapping("/save") public R save(@Valid @RequestBody PushCustomType pushCustomType) { iPushCustomTypeService.save(pushCustomType); return R.ok(); } + @ApiOperation("修改") @PutMapping("/update") public R update(@Valid @RequestBody PushCustomType pushCustomType) { iPushCustomTypeService.updateById(pushCustomType); return R.ok(); } + @ApiOperation("删除") @DeleteMapping("/remove/{ids:[\\w,]+}") public R removeById(@PathVariable String[] ids) { iPushCustomTypeService.removeByIds(Arrays.asList(ids)); diff --git a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushPassListController.java b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushPassListController.java index a32e18c4..51909eb0 100644 --- a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushPassListController.java +++ b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushPassListController.java @@ -9,6 +9,8 @@ import com.cloud.kicc.common.core.api.R; import com.cloud.kicc.common.core.constant.AppConstants; import com.cloud.kicc.commonbiz.api.entity.PushPassList; import com.cloud.kicc.commonbiz.service.IPushPassListService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; @@ -26,6 +28,7 @@ import java.util.Arrays; @RestController @RequestMapping(AppConstants.APP_COMMON + "/pushPassList") @RequiredArgsConstructor +@Api(tags = "推送黑名单白名单列表") public class PushPassListController { private final IPushPassListService iPushPassListService; @@ -36,29 +39,34 @@ public class PushPassListController { .eq(StrUtil.isNotBlank(pushBlacklist.getType()), PushPassList::getType, pushBlacklist.getType()); } + @ApiOperation("分页查询") @GetMapping("/list") public R list(Page page, PushPassList pushPassList) { IPage list = iPushPassListService.page(page, getQueryWrapper(pushPassList)); return R.ok(list.getRecords(), list.getTotal()); } + @ApiOperation("根据ID查询") @GetMapping("/{id:\\w+}") public R getById(@PathVariable("id") String id) { return R.ok(iPushPassListService.getById(id)); } + @ApiOperation("保存") @PostMapping("/save") public R save(@Valid @RequestBody PushPassList pushPassList) { iPushPassListService.save(pushPassList); return R.ok(); } + @ApiOperation("修改") @PutMapping("/update") public R update(@Valid @RequestBody PushPassList pushPassList) { iPushPassListService.updateById(pushPassList); return R.ok(); } + @ApiOperation("删除") @DeleteMapping("/remove/{ids:[\\w,]+}") public R removeById(@PathVariable String[] ids) { iPushPassListService.removeByIds(Arrays.asList(ids)); diff --git a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushThirdPartyController.java b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushThirdPartyController.java index e669d719..b976e8b1 100644 --- a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushThirdPartyController.java +++ b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushThirdPartyController.java @@ -9,6 +9,8 @@ import com.cloud.kicc.common.core.api.R; import com.cloud.kicc.common.core.constant.AppConstants; import com.cloud.kicc.commonbiz.api.entity.PushThirdParty; import com.cloud.kicc.commonbiz.service.IPushThirdPartyService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; @@ -26,6 +28,7 @@ import java.util.Arrays; @RestController @RequestMapping(AppConstants.APP_COMMON + "/pushThirdParty") @RequiredArgsConstructor +@Api(tags = "第三方推送信息") public class PushThirdPartyController { private final IPushThirdPartyService iPushThirdPartyService; @@ -36,29 +39,34 @@ public class PushThirdPartyController { .eq(StrUtil.isNotBlank(pushThirdParty.getStatus()), PushThirdParty::getStatus, pushThirdParty.getStatus()); } + @ApiOperation("分页查询") @GetMapping("/list") public R list(Page page, PushThirdParty pushThirdParty) { IPage list = iPushThirdPartyService.page(page, getQueryWrapper(pushThirdParty)); return R.ok(list.getRecords(), list.getTotal()); } + @ApiOperation("根据ID查询") @GetMapping("/{id:\\w+}") public R getById(@PathVariable("id") String id) { return R.ok(iPushThirdPartyService.getById(id)); } + @ApiOperation("保存") @PostMapping("/save") public R save(@Valid @RequestBody PushThirdParty pushThirdParty) { iPushThirdPartyService.save(pushThirdParty); return R.ok(); } + @ApiOperation("修改") @PutMapping("/update") public R update(@Valid @RequestBody PushThirdParty pushThirdParty) { iPushThirdPartyService.updateById(pushThirdParty); return R.ok(); } + @ApiOperation("删除") @DeleteMapping("/remove/{ids:[\\w,]+}") public R removeById(@PathVariable String[] ids) { iPushThirdPartyService.removeByIds(Arrays.asList(ids)); diff --git a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushThirdPartyManageController.java b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushThirdPartyManageController.java index bc39349e..9f89d246 100644 --- a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushThirdPartyManageController.java +++ b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushThirdPartyManageController.java @@ -9,6 +9,8 @@ import com.cloud.kicc.common.core.api.R; import com.cloud.kicc.common.core.constant.AppConstants; import com.cloud.kicc.commonbiz.api.entity.PushThirdPartyManage; import com.cloud.kicc.commonbiz.service.IPushThirdPartyManageService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; @@ -26,6 +28,7 @@ import java.util.Arrays; @RestController @RequestMapping(AppConstants.APP_COMMON + "/pushThirdPartyManage") @RequiredArgsConstructor +@Api(tags = "第三方管理") public class PushThirdPartyManageController { private final IPushThirdPartyManageService iPushThirdPartyManageService; @@ -35,29 +38,34 @@ public class PushThirdPartyManageController { .eq(StrUtil.isNotBlank(pushThirdPartyManage.getEnterpName()), PushThirdPartyManage::getEnterpName, pushThirdPartyManage.getEnterpName()); } + @ApiOperation("分页查询") @GetMapping("/list") public R list(Page page, PushThirdPartyManage pushThirdPartyManage) { IPage list = iPushThirdPartyManageService.page(page, getQueryWrapper(pushThirdPartyManage)); return R.ok(list.getRecords(), list.getTotal()); } + @ApiOperation("根据ID查询") @GetMapping("/{id:\\w+}") public R getById(@PathVariable("id") String id) { return R.ok(iPushThirdPartyManageService.getById(id)); } + @ApiOperation("保存") @PostMapping("/save") public R save(@Valid @RequestBody PushThirdPartyManage pushThirdPartyManage) { iPushThirdPartyManageService.save(pushThirdPartyManage); return R.ok(); } + @ApiOperation("修改") @PutMapping("/update") public R update(@Valid @RequestBody PushThirdPartyManage pushThirdPartyManage) { iPushThirdPartyManageService.updateById(pushThirdPartyManage); return R.ok(); } + @ApiOperation("删除") @DeleteMapping("/remove/{ids:[\\w,]+}") public R removeById(@PathVariable String[] ids) { iPushThirdPartyManageService.removeByIds(Arrays.asList(ids)); diff --git a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushUserManageController.java b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushUserManageController.java index 2ac8401b..84624e64 100644 --- a/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushUserManageController.java +++ b/kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/controller/PushUserManageController.java @@ -11,6 +11,8 @@ import com.cloud.kicc.commonbiz.api.entity.PushThirdPartyManage; import com.cloud.kicc.commonbiz.api.entity.PushUserManage; import com.cloud.kicc.commonbiz.service.IPushThirdPartyManageService; import com.cloud.kicc.commonbiz.service.IPushUserManageService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; @@ -30,6 +32,7 @@ import java.util.Arrays; @RestController @RequestMapping(AppConstants.APP_COMMON + "/pushUserManage") @RequiredArgsConstructor +@Api(tags = "第三方用户推送管理") public class PushUserManageController { private final IPushUserManageService iPushUserManageService; @@ -39,29 +42,34 @@ public class PushUserManageController { .eq(StrUtil.isNotBlank(pushUserManage.getNickName()), PushUserManage::getNickName, pushUserManage.getNickName()); } + @ApiOperation("分页查询") @GetMapping("/list") public R list(Page page, PushUserManage pushUserManage) { IPage list = iPushUserManageService.page(page, getQueryWrapper(pushUserManage)); return R.ok(list.getRecords(), list.getTotal()); } + @ApiOperation("根据ID查询") @GetMapping("/{id:\\w+}") public R getById(@PathVariable("id") String id) { return R.ok(iPushUserManageService.getById(id)); } + @ApiOperation("保存") @PostMapping("/save") public R save(@Valid @RequestBody PushUserManage pushUserManage) { iPushUserManageService.save(pushUserManage); return R.ok(); } + @ApiOperation("修改") @PutMapping("/update") public R update(@Valid @RequestBody PushUserManage pushUserManage) { iPushUserManageService.updateById(pushUserManage); return R.ok(); } + @ApiOperation("删除") @DeleteMapping("/remove/{ids:[\\w,]+}") public R removeById(@PathVariable String[] ids) { iPushUserManageService.removeByIds(Arrays.asList(ids));