|
@@ -16,6 +16,7 @@ import com.zhongzheng.common.utils.file.FileUtils;
|
|
import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
import com.zhongzheng.framework.config.ServerConfig;
|
|
import com.zhongzheng.framework.config.ServerConfig;
|
|
import com.zhongzheng.framework.web.service.WxLoginService;
|
|
import com.zhongzheng.framework.web.service.WxLoginService;
|
|
|
|
+import com.zhongzheng.modules.base.bo.ConfigQueryBo;
|
|
import com.zhongzheng.modules.course.vo.CourseMenuVo;
|
|
import com.zhongzheng.modules.course.vo.CourseMenuVo;
|
|
import com.zhongzheng.modules.goods.bo.GoodsQueryBo;
|
|
import com.zhongzheng.modules.goods.bo.GoodsQueryBo;
|
|
import com.zhongzheng.modules.goods.bo.GoodsStudyUrlBo;
|
|
import com.zhongzheng.modules.goods.bo.GoodsStudyUrlBo;
|
|
@@ -39,6 +40,7 @@ import com.zhongzheng.modules.system.bo.SysTenantAdminBo;
|
|
import com.zhongzheng.modules.system.domain.SysTenant;
|
|
import com.zhongzheng.modules.system.domain.SysTenant;
|
|
import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
import com.zhongzheng.modules.system.service.ISysUserService;
|
|
import com.zhongzheng.modules.system.service.ISysUserService;
|
|
|
|
+import com.zhongzheng.modules.system.service.ISysWebService;
|
|
import com.zhongzheng.modules.system.vo.SysTenantVo;
|
|
import com.zhongzheng.modules.system.vo.SysTenantVo;
|
|
import com.zhongzheng.modules.top.bo.TopSysTenantRegisterAddBo;
|
|
import com.zhongzheng.modules.top.bo.TopSysTenantRegisterAddBo;
|
|
import com.zhongzheng.modules.top.service.ITopSysTenantRegisterService;
|
|
import com.zhongzheng.modules.top.service.ITopSysTenantRegisterService;
|
|
@@ -101,6 +103,8 @@ public class CommonController
|
|
private IUserService iUserService;
|
|
private IUserService iUserService;
|
|
@Autowired
|
|
@Autowired
|
|
private ITopSysTenantRegisterService iTopSysTenantRegisterService;
|
|
private ITopSysTenantRegisterService iTopSysTenantRegisterService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISysWebService webService;
|
|
/**
|
|
/**
|
|
* 通用下载请求
|
|
* 通用下载请求
|
|
*
|
|
*
|
|
@@ -357,4 +361,11 @@ public class CommonController
|
|
}
|
|
}
|
|
return AjaxResult.success("成功",iTopSysTenantRegisterService.insertByAddBo(bo) ? 1 : 0);
|
|
return AjaxResult.success("成功",iTopSysTenantRegisterService.insertByAddBo(bo) ? 1 : 0);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation("服务restart")
|
|
|
|
+ @GetMapping("common/free/webRestart")
|
|
|
|
+ public AjaxResult<Void> webRestart(ConfigQueryBo bo) {
|
|
|
|
+ webService.restartWebService(bo.getUrl());
|
|
|
|
+ return AjaxResult.success();
|
|
|
|
+ }
|
|
}
|
|
}
|