|
@@ -1,4 +1,87 @@
|
|
|
package com.huimv.manage.controller;
|
|
|
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/serviceManage")
|
|
|
public class ServiceManageController {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新购
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/newInstance")
|
|
|
+ public String newInstance(@RequestParam(value = "pageNum") Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize") Integer pageSize,
|
|
|
+ @RequestParam(value = "pageSize") String searchStr) {
|
|
|
+ if (StringUtils.isEmpty(searchStr)){
|
|
|
+ return "";
|
|
|
+ }else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 续费
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/refreshInstance")
|
|
|
+ public String refreshInstance(@RequestParam(value = "pageNum") Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize") Integer pageSize,
|
|
|
+ @RequestParam(value = "pageSize") String searchStr) {
|
|
|
+ if (StringUtils.isEmpty(searchStr)){
|
|
|
+ return "";
|
|
|
+ }else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 服务过期
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/expireInstance")
|
|
|
+ public String expireInstance(@RequestParam(value = "pageNum") Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize") Integer pageSize,
|
|
|
+ @RequestParam(value = "pageSize") String searchStr) {
|
|
|
+ if (StringUtils.isEmpty(searchStr)){
|
|
|
+ return "";
|
|
|
+ }else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 释放实力
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/releaseInstance")
|
|
|
+ public String releaseInstance(@RequestParam(value = "pageNum") Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize") Integer pageSize,
|
|
|
+ @RequestParam(value = "pageSize") String searchStr) {
|
|
|
+ if (StringUtils.isEmpty(searchStr)){
|
|
|
+ return "";
|
|
|
+ }else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 升级
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/upgrade")
|
|
|
+ public String upgrade(@RequestParam(value = "pageNum") Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize") Integer pageSize,
|
|
|
+ @RequestParam(value = "pageSize") String searchStr) {
|
|
|
+ if (StringUtils.isEmpty(searchStr)){
|
|
|
+ return "";
|
|
|
+ }else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|