|
@@ -0,0 +1,58 @@
|
|
|
+package com.zhongzheng.modules.system.service.impl;
|
|
|
+
|
|
|
+import cn.hutool.core.lang.Validator;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.zhongzheng.common.annotation.DataScope;
|
|
|
+import com.zhongzheng.common.constant.UserConstants;
|
|
|
+import com.zhongzheng.common.core.domain.entity.SysRole;
|
|
|
+import com.zhongzheng.common.core.domain.entity.SysUser;
|
|
|
+import com.zhongzheng.common.exception.CustomException;
|
|
|
+import com.zhongzheng.common.utils.DateUtils;
|
|
|
+import com.zhongzheng.common.utils.SecurityUtils;
|
|
|
+import com.zhongzheng.common.utils.ServletUtils;
|
|
|
+import com.zhongzheng.common.utils.http.HttpUtils;
|
|
|
+import com.zhongzheng.common.utils.ip.IpUtils;
|
|
|
+import com.zhongzheng.modules.course.bo.CourseBusinessQueryBo;
|
|
|
+import com.zhongzheng.modules.order.bo.OrderShareMoneyAddBo;
|
|
|
+import com.zhongzheng.modules.system.domain.SysPost;
|
|
|
+import com.zhongzheng.modules.system.domain.SysUserPost;
|
|
|
+import com.zhongzheng.modules.system.domain.SysUserRole;
|
|
|
+import com.zhongzheng.modules.system.mapper.*;
|
|
|
+import com.zhongzheng.modules.system.service.ISysConfigService;
|
|
|
+import com.zhongzheng.modules.system.service.ISysUserService;
|
|
|
+import com.zhongzheng.modules.system.service.ISysWebService;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+
|
|
|
+import java.io.IOException;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 用户 业务层处理
|
|
|
+ *
|
|
|
+ * @author zhongzheng
|
|
|
+ */
|
|
|
+@Slf4j
|
|
|
+@Service
|
|
|
+public class SysWebServiceImpl implements ISysWebService {
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Boolean restartWebService(String url) {
|
|
|
+ String respone = "";
|
|
|
+ try {
|
|
|
+ // String url = "http://127.0.0.1:2929/v1.39/containers/nginx-test/restart";
|
|
|
+ respone = HttpUtils.postFormBody(url, null);
|
|
|
+ System.out.println(respone);
|
|
|
+ } catch (IOException e) {
|
|
|
+ throw new CustomException("重启请求错误"+e.getMessage());
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+}
|