From 0f892f2a0b19d5a182afb887508237963169c804 Mon Sep 17 00:00:00 2001
From: 罗元桥 <2376770955@qq.com>
Date: 星期二, 19 十月 2021 15:23:16 +0800
Subject: [PATCH] Merge branch 'test_bak' into 'master'
---
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EventApplicationAppReleaseApi.java | 50 ++++++++++++++++++++++++++++++++++----------------
1 files changed, 34 insertions(+), 16 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EventApplicationAppReleaseApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EventApplicationAppReleaseApi.java
index f8e9445..ee90a96 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EventApplicationAppReleaseApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EventApplicationAppReleaseApi.java
@@ -1,5 +1,8 @@
package com.panzhihua.service_grid.api;
+import javax.annotation.Resource;
+
+import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.panzhihua.common.model.dtos.grid.EventApplicationAppReleaseAddDTO;
@@ -10,10 +13,8 @@
import com.panzhihua.common.model.vos.grid.EventApplicationAppReleaseDetailsVO;
import com.panzhihua.common.model.vos.grid.EventApplicationAppReleaseVO;
import com.panzhihua.service_grid.service.EventApplicationAppReleaseService;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.web.bind.annotation.*;
-import javax.annotation.Resource;
+import lombok.extern.slf4j.Slf4j;
/**
*
@@ -21,63 +22,80 @@
* @version 1.0
* @since 1.0
* @date 2021-05-26
- * */
+ */
@Slf4j
@RestController
@RequestMapping("/eventapplicationapprelease")
-public class EventApplicationAppReleaseApi{
+public class EventApplicationAppReleaseApi {
@Resource
private EventApplicationAppReleaseService eventApplicationAppReleaseService;
/**
* 新增APP应用版本信息
+ *
* @param eventApplicationAppReleaseAddDTO
* @return 新增结果
*/
@PostMapping("/add")
- R add(@RequestBody EventApplicationAppReleaseAddDTO eventApplicationAppReleaseAddDTO){
+ R add(@RequestBody EventApplicationAppReleaseAddDTO eventApplicationAppReleaseAddDTO) {
return eventApplicationAppReleaseService.add(eventApplicationAppReleaseAddDTO);
- };
+ }
/**
* 修改APP应用版本信息
+ *
* @param eventApplicationAppReleaseEditDTO
* @return 维护结果
*/
@PostMapping("/edit")
- R edit(@RequestBody EventApplicationAppReleaseEditDTO eventApplicationAppReleaseEditDTO){
+ R edit(@RequestBody EventApplicationAppReleaseEditDTO eventApplicationAppReleaseEditDTO) {
return eventApplicationAppReleaseService.edit(eventApplicationAppReleaseEditDTO);
- };
+ }
/**
* 分页查找APP应用版本信息
+ *
* @param pageEventApplicationAppReleaseDTO
* @return 维护结果
*/
@PostMapping("/page")
- R<IPage<EventApplicationAppReleaseVO>> query(@RequestBody PageEventApplicationAppReleaseDTO pageEventApplicationAppReleaseDTO){
+ R<IPage<EventApplicationAppReleaseVO>>
+ query(@RequestBody PageEventApplicationAppReleaseDTO pageEventApplicationAppReleaseDTO) {
return eventApplicationAppReleaseService.query(pageEventApplicationAppReleaseDTO);
- };
+ }
/**
* 删除APP应用版本信息
+ *
* @param EventApplicationAppReleaseDeleteDTO
* @return 平台用户信息
*/
@PostMapping("/delete")
- R delete(@RequestBody EventApplicationAppReleaseDeleteDTO EventApplicationAppReleaseDeleteDTO){
+ R delete(@RequestBody EventApplicationAppReleaseDeleteDTO EventApplicationAppReleaseDeleteDTO) {
return eventApplicationAppReleaseService.delete(EventApplicationAppReleaseDeleteDTO);
- };
+ }
/**
* 查询APP应用版本信息详细信息
- * @param id APP应用版本信息 id
+ *
+ * @param id
+ * APP应用版本信息 id
* @return 查找结果
*/
@PostMapping("/{id}")
- R<EventApplicationAppReleaseDetailsVO> eventApplicationAppReleaseDetails(@PathVariable("id") Long id){
+ R<EventApplicationAppReleaseDetailsVO> eventApplicationAppReleaseDetails(@PathVariable("id") Long id) {
return eventApplicationAppReleaseService.eventApplicationAppReleaseDetails(id);
- };
+ }
+
+ /**
+ * 获取最新版本信息
+ *
+ * @return 版本信息
+ */
+ @GetMapping("/edition")
+ public R editionUpdate() {
+ return eventApplicationAppReleaseService.editionUpdate();
+ }
}
--
Gitblit v1.7.1