Commit 10d7dfb7 authored by hubin's avatar hubin

更新目录结构 权限管理开发

parent 1d0caac2
package com.hungraim.ltr; package com.hungraim.ltc;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
......
package com.hungraim.ltr; package com.hungraim.ltc;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
......
...@@ -84,35 +84,6 @@ ...@@ -84,35 +84,6 @@
<fork>true</fork> <!--重要--> <fork>true</fork> <!--重要-->
</configuration> </configuration>
</plugin> </plugin>
<!--添加mybatis generator maven插件-->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.5</version>
<configuration>
<!--generatorConfig.xml位置-->
<configurationFile>src/main/resources/mybatis-generator/generatorConfig.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<goals>
<goal>generate</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
<!--此处必须添加oracle驱动包-->
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.1.0.7.0</version>
</dependency>
</dependencies>
</plugin>
</plugins> </plugins>
</build> </build>
......
package com.hungraim.ltr; package com.hungraim.ltc;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
......
package com.hungraim.ltr.controller; package com.hungraim.ltc.controller;
import com.hungraim.ltr.util.Result; import com.hungraim.ltc.util.Result;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import org.springframework.security.oauth2.common.OAuth2AccessToken; import org.springframework.security.oauth2.common.OAuth2AccessToken;
......
package com.hungraim.ltr.controller; package com.hungraim.ltc.controller;
import com.nimbusds.jose.jwk.JWKSet; import com.nimbusds.jose.jwk.JWKSet;
import com.nimbusds.jose.jwk.RSAKey; import com.nimbusds.jose.jwk.RSAKey;
......
package com.hungraim.ltr.gateway.config; package com.hungraim.ltc.gateway.config;
import cn.hutool.http.HttpStatus; import cn.hutool.http.HttpStatus;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.hungraim.ltr.pojo.vo.system.UserLoginInfoVO; import com.hungraim.ltc.pojo.vo.system.UserLoginInfoVO;
import com.hungraim.ltr.service.UserDetailsServiceImpl; import com.hungraim.ltc.service.UserDetailsServiceImpl;
import com.hungraim.ltr.util.Result; import com.hungraim.ltc.util.Result;
import com.hungraim.ltr.util.ResultCode; import com.hungraim.ltc.util.ResultCode;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
......
package com.hungraim.ltr.gateway.config; package com.hungraim.ltc.gateway.config;
import com.hungraim.ltr.util.Result; import com.hungraim.ltc.util.Result;
import com.hungraim.ltr.util.ResultCode; import com.hungraim.ltc.util.ResultCode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.AuthenticationException;
import org.springframework.security.oauth2.common.exceptions.InvalidGrantException; import org.springframework.security.oauth2.common.exceptions.InvalidGrantException;
......
package com.hungraim.ltr.gateway.config; package com.hungraim.ltc.gateway.config;
import org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest; import org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
......
package com.hungraim.ltr.service; package com.hungraim.ltc.service;
import com.hungraim.ltr.api.SystemAdminFeignService; import com.hungraim.ltc.api.SystemAdminFeignService;
import com.hungraim.ltr.pojo.entity.system.SystemUser; import com.hungraim.ltc.pojo.entity.system.SystemUser;
import com.hungraim.ltr.pojo.vo.system.UserLoginInfoVO; import com.hungraim.ltc.pojo.vo.system.UserLoginInfoVO;
import com.hungraim.ltr.util.Result; import com.hungraim.ltc.util.Result;
import com.hungraim.ltr.util.ResultCode; import com.hungraim.ltc.util.ResultCode;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.userdetails.UserDetailsService;
...@@ -33,7 +33,7 @@ public class UserDetailsServiceImpl implements UserDetailsService { ...@@ -33,7 +33,7 @@ public class UserDetailsServiceImpl implements UserDetailsService {
} }
SystemUser systemUser = userRes.getData(); SystemUser systemUser = userRes.getData();
//根据用户id获取用户权限 //根据用户id获取用户权限
Result<List<Long>> roles = systemUserFeignService.loadUserRolesByUserId(systemUser.getUserId()); Result<List<Long>> roles = systemAdminFeignService.loadUserRolesByUserId(systemUser.getId());
UserLoginInfoVO userLoginInfoVO = new UserLoginInfoVO(systemUser); UserLoginInfoVO userLoginInfoVO = new UserLoginInfoVO(systemUser);
userLoginInfoVO.setAuthorities(roles.getData()); userLoginInfoVO.setAuthorities(roles.getData());
......
...@@ -9,6 +9,18 @@ ...@@ -9,6 +9,18 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>common-core</artifactId> <artifactId>common-core</artifactId>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>7</source>
<target>7</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies> <dependencies>
<dependency> <dependency>
......
package com.hungraim.ltr.constant; package com.hungraim.ltc.constant;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
......
package com.hungraim.ltr.constant; package com.hungraim.ltc.constant;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
......
package com.hungraim.ltr.pojo.entity.SysConfig; package com.hungraim.ltc.pojo.entity.SysConfig;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.dept; package com.hungraim.ltc.pojo.entity.dept;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.dept; package com.hungraim.ltc.pojo.entity.dept;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.eval; package com.hungraim.ltc.pojo.entity.eval;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.eval; package com.hungraim.ltc.pojo.entity.eval;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.role; package com.hungraim.ltc.pojo.entity.role;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.role; package com.hungraim.ltc.pojo.entity.role;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.role; package com.hungraim.ltc.pojo.entity.role;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.role; package com.hungraim.ltc.pojo.entity.role;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.role; package com.hungraim.ltc.pojo.entity.role;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.role; package com.hungraim.ltc.pojo.entity.role;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.role; package com.hungraim.ltc.pojo.entity.role;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.role; package com.hungraim.ltc.pojo.entity.role;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.serviceManage; package com.hungraim.ltc.pojo.entity.serviceManage;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.serviceManage; package com.hungraim.ltc.pojo.entity.serviceManage;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.serviceManage; package com.hungraim.ltc.pojo.entity.serviceManage;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.serviceManage; package com.hungraim.ltc.pojo.entity.serviceManage;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.system; package com.hungraim.ltc.pojo.entity.system;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.system; package com.hungraim.ltc.pojo.entity.system;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
...@@ -16,16 +17,20 @@ import java.util.List; ...@@ -16,16 +17,20 @@ import java.util.List;
@TableName("LTC_RESOURCE") @TableName("LTC_RESOURCE")
public class SystemResource { public class SystemResource {
private Long resourceId; @TableId
@TableField("RESOURCE_ID")
private Long id;
private String resourceName; private String resourceName;
private String resourceUrl; private String resourceUrl;
private String resourceType;
private String method; private String method;
private String resourceType;
private Long parentId; private Long parentId;
private String resourceIcon; @TableField("RESOURCE_ICON")
private Date createdTime; private String icon;
private Date createTime;
@TableField(exist = false) @TableField(exist = false)
private List<Long> roleIds; private List<Long> roleIds;
} }
package com.hungraim.ltr.pojo.entity.system; package com.hungraim.ltc.pojo.entity.system;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
...@@ -14,10 +16,14 @@ import java.util.Date; ...@@ -14,10 +16,14 @@ import java.util.Date;
@TableName("LTC_ROLE") @TableName("LTC_ROLE")
public class SystemRole { public class SystemRole {
private Long roleId; @TableId
private String roleName; @TableField("ROLE_ID")
private Long id;
@TableField("ROLE_NAME")
private String name;
private String status; private String status;
private Date createdTime; private Date createTime;
private Date updatedTime; private Date modifyTime;
} }
package com.hungraim.ltr.pojo.entity.system; package com.hungraim.ltc.pojo.entity.system;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.entity.system; package com.hungraim.ltc.pojo.entity.system;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
...@@ -16,7 +16,9 @@ import java.util.Date; ...@@ -16,7 +16,9 @@ import java.util.Date;
@TableName("LTC_USER") @TableName("LTC_USER")
public class SystemUser { public class SystemUser {
private Long userId; @TableId
@TableField("USER_ID")
private Long id;
private String account; private String account;
private String password; private String password;
private String realName; private String realName;
......
package com.hungraim.ltr.pojo.entity.system; package com.hungraim.ltc.pojo.entity.system;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.vo.system; package com.hungraim.ltc.pojo.vo.system;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.vo.system; package com.hungraim.ltc.pojo.vo.system;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.vo.system; package com.hungraim.ltc.pojo.vo.system;
import lombok.Data; import lombok.Data;
...@@ -12,7 +12,7 @@ public class ReqRoleInfo { ...@@ -12,7 +12,7 @@ public class ReqRoleInfo {
private Long id; private Long id;
private String name; private String name;
private Integer status; private String status;
private List<Long> resource; private List<Long> resource;
......
package com.hungraim.ltr.pojo.vo.system; package com.hungraim.ltc.pojo.vo.system;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.pojo.vo.system; package com.hungraim.ltc.pojo.vo.system;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import com.hungraim.ltr.pojo.entity.system.SystemUser; import com.hungraim.ltc.pojo.entity.system.SystemUser;
import lombok.Data; import lombok.Data;
import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority;
...@@ -28,7 +28,7 @@ public class UserLoginInfoVO implements UserDetails { ...@@ -28,7 +28,7 @@ public class UserLoginInfoVO implements UserDetails {
this.username = user.getAccount(); this.username = user.getAccount();
this.password = user.getPassword(); this.password = user.getPassword();
this.name = user.getRealName(); this.name = user.getRealName();
this.userId = user.getUserId(); this.userId = user.getId();
this.enable = "1".equals(user.getUserStatus()) ; this.enable = "1".equals(user.getUserStatus()) ;
} }
......
package com.hungraim.ltr.util; package com.hungraim.ltc.util;
import cn.hutool.core.util.NumberUtil; import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
......
package com.hungraim.ltr.util; package com.hungraim.ltc.util;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
......
package com.hungraim.ltr.util; package com.hungraim.ltc.util;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONObject; import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.hungraim.ltr.constant.AuthConstants; import com.hungraim.ltc.constant.AuthConstants;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.http.HttpEntity; import org.apache.http.HttpEntity;
......
package com.hungraim.ltr.util; package com.hungraim.ltc.util;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data; import lombok.Data;
......
package com.hungraim.ltr.util; package com.hungraim.ltc.util;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
......
package com.hungraim.ltr.config; package com.hungraim.ltc.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
......
package com.hungraim.ltr.redis; package com.hungraim.ltc.redis;
import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
......
package com.hungraim.ltr; package com.hungraim.ltc;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
......
package com.hungraim.ltr.gateway.config; package com.hungraim.ltc.gateway.config;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
......
package com.hungraim.ltr.gateway.config; package com.hungraim.ltc.gateway.config;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
......
package com.hungraim.ltr.gateway.config; package com.hungraim.ltc.gateway.config;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.alibaba.nacos.api.NacosFactory; import com.alibaba.nacos.api.NacosFactory;
import com.alibaba.nacos.api.config.ConfigService; import com.alibaba.nacos.api.config.ConfigService;
import com.alibaba.nacos.api.config.listener.Listener; import com.alibaba.nacos.api.config.listener.Listener;
import com.alibaba.nacos.api.exception.NacosException; import com.alibaba.nacos.api.exception.NacosException;
import com.hungraim.ltr.gateway.service.impl.NacosDynamicRouteServiceImpl; import com.hungraim.ltc.gateway.service.impl.NacosDynamicRouteServiceImpl;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner; import org.springframework.boot.CommandLineRunner;
......
package com.hungraim.ltr.gateway.config; package com.hungraim.ltc.gateway.config;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.hungraim.ltr.constant.AuthConstants; import com.hungraim.ltc.constant.AuthConstants;
import com.hungraim.ltr.gateway.security.AuthorizationManager; import com.hungraim.ltc.gateway.security.AuthorizationManager;
import com.hungraim.ltr.util.Result; import com.hungraim.ltc.util.Result;
import com.hungraim.ltr.util.ResultCode; import com.hungraim.ltc.util.ResultCode;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
......
package com.hungraim.ltr.gateway.security; package com.hungraim.ltc.gateway.security;
import cn.hutool.core.convert.Convert; import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.hungraim.ltr.constant.AuthConstants; import com.hungraim.ltc.constant.AuthConstants;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
......
package com.hungraim.ltr.gateway.service; package com.hungraim.ltc.gateway.service;
import org.springframework.cloud.gateway.route.RouteDefinition; import org.springframework.cloud.gateway.route.RouteDefinition;
......
package com.hungraim.ltr.gateway.service.impl; package com.hungraim.ltc.gateway.service.impl;
import com.alibaba.nacos.client.naming.utils.CollectionUtils; import com.alibaba.nacos.client.naming.utils.CollectionUtils;
import com.hungraim.ltr.gateway.service.INacosDynamicRouteService; import com.hungraim.ltc.gateway.service.INacosDynamicRouteService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.event.RefreshRoutesEvent; import org.springframework.cloud.gateway.event.RefreshRoutesEvent;
......
package com.hungraim.ltr.gateway.utils; package com.hungraim.ltc.gateway.utils;
/** /**
* @author hubin * @author hubin
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>long-term-care</artifactId> <artifactId>ltc</artifactId>
<groupId>com.hungraim.ism</groupId> <groupId>com.hungraim.ltc</groupId>
<version>0.0.1</version> <version>0.0.1</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
......
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>manage</artifactId>
<groupId>com.hungraim.ltc</groupId>
<version>0.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>manage-api</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-openfeign-core</artifactId>
</dependency>
<dependency>
<groupId>com.hungraim.ltc</groupId>
<artifactId>common-core</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>releases</id>
<name>Nexus Release Repository</name>
<url>http://121.5.28.27:9091/nexus/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Nexus Snapshot Repository</name>
<url>http://121.5.28.27:9091/nexus/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>
#指定依赖的镜像
FROM localhost:9999/library/java:8
#springboot
VOLUME /tmp
#容器使用端口
EXPOSE 8002
#添加jar包入容器
ADD manage/manage-service/target/manage-0.0.1.jar app.jar
#改名
RUN sh -c 'touch /app.jar'
#容器启动java
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
apiVersion: apps/v1
kind: Deployment
metadata:
name: manage-service
namespace: ltc-service
labels:
app: manage-service
spec:
replicas: 1
selector:
matchLabels:
app: manage-service
template:
metadata:
labels:
app: manage-service
spec:
imagePullSecrets:
- name: ltc-harbor
containers:
- name: manage #TODO:pod的名称,必须字段,名称唯一且对象创建后不可以被修改
image: localhost:9999/ltc/ltc-system-user-service:latest #TODO:镜像仓库的路径/镜像的名称:镜像的标签,
imagePullPolicy: Always #Always(总是去仓库下载),Never(从不去仓库下载),IfNotPresent(如果本地没有就去仓库下载),默认是"IfNotPresent"
ports:
- containerPort: 8001 #TODO:containerPort是pod内部容器的端口,targetPort映射到containerPort;例如,mysql服务需要暴露3306端口,redis暴露6379端口
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>manage</artifactId>
<groupId>com.hungraim.ltc</groupId>
<version>0.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>manage-service</artifactId>
<dependencies>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
<version>2.2.5.RELEASE</version>
</dependency>
<!--基础包-->
<dependency>
<groupId>com.hungraim.ltc</groupId>
<artifactId>common-core</artifactId>
<version>0.0.1</version>
<exclusions>
<exclusion>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-jose</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.hungraim.ltc</groupId>
<artifactId>common-mybatis</artifactId>
<version>0.0.1</version>
</dependency>
<dependency>
<groupId>com.hungraim.ltc</groupId>
<artifactId>common-redis</artifactId>
<version>0.0.1</version>
</dependency>
<!--基础包 end-->
<!-- spring boot web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork> <!--重要-->
</configuration>
</plugin>
</plugins>
</build>
</project>
package com.hungraim.ltr;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* 申请服务
*
* @author zhangch
*/
@SpringBootApplication
@EnableDiscoveryClient
public class ManageApplication {
public static void main(String[] args) {
SpringApplication.run(ManageApplication.class, args);
}
}
spring:
devtools:
restart:
enabled: true
additional-paths: src/main/java
application:
name: LTC-MANAGE-SERVICE
cloud:
nacos:
discovery:
server-addr: qw.hungraim.com:31158
namespace: 87d6f6f1-6583-46ea-ad02-7e8125f03c90
config:
namespace: 87d6f6f1-6583-46ea-ad02-7e8125f03c90
server-addr: qw.hungraim.com:31158
file-extension: yaml # 必须修改成yaml
extension-configs:
- data-id: ltc-database.yaml
group: common
refresh: true
- data-id: ltc-basic.yaml
group: common
refresh: true
- data-id: thread-config.yaml
group: system
refresh: true
server:
port: 8007
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ltc</artifactId>
<groupId>com.hungraim.ltc</groupId>
<version>0.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<packaging>pom</packaging>
<modules>
<module>manage-service</module>
<module>manage-api</module>
</modules>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies>
</dependencies>
<distributionManagement>
<repository>
<id>releases</id>
<name>Nexus Release Repository</name>
<url>http://121.5.28.27:9091/nexus/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Nexus Snapshot Repository</name>
<url>http://121.5.28.27:9091/nexus/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<relativePath/> <!-- lookup parent from repository --> <relativePath/> <!-- lookup parent from repository -->
</parent> </parent>
<packaging>pom</packaging> <packaging>pom</packaging>
<groupId>com.hungraim.ism</groupId> <groupId>com.hungraim.ltc</groupId>
<artifactId>ltc</artifactId> <artifactId>ltc</artifactId>
<version>0.0.1</version> <version>0.0.1</version>
<name>spring-cloud-init</name> <name>spring-cloud-init</name>
......
package com.hungraim.ltr; package com.hungraim.ltc;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
......
package com.hungraim.ltr.component; package com.hungraim.ltc.component;
import com.hungraim.ltr.system.service.impl.SystemResourceServiceImpl; import com.hungraim.ltc.system.service.impl.SystemResourceServiceImpl;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner; import org.springframework.boot.CommandLineRunner;
......
package com.hungraim.ltr.system.controller; package com.hungraim.ltc.system.controller;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hungraim.ltr.pojo.entity.system.SystemResource; import com.hungraim.ltc.pojo.entity.system.SystemResource;
import com.hungraim.ltr.pojo.vo.system.MainMenuVO; import com.hungraim.ltc.pojo.vo.system.MainMenuVO;
import com.hungraim.ltr.pojo.vo.system.ReqResource; import com.hungraim.ltc.pojo.vo.system.ReqResource;
import com.hungraim.ltr.system.service.ISystemResourceService; import com.hungraim.ltc.system.service.ISystemResourceService;
import com.hungraim.ltr.util.Result; import com.hungraim.ltc.util.Result;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
......
package com.hungraim.ltr.system.controller; package com.hungraim.ltc.system.controller;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hungraim.ltr.pojo.entity.system.SystemRole; import com.hungraim.ltc.pojo.entity.system.SystemRole;
import com.hungraim.ltr.pojo.entity.system.SystemRoleResource; import com.hungraim.ltc.pojo.entity.system.SystemRoleResource;
import com.hungraim.ltr.pojo.vo.system.ReqRoleInfo; import com.hungraim.ltc.pojo.vo.system.ReqRoleInfo;
import com.hungraim.ltr.system.service.ISystemRoleResourceService; import com.hungraim.ltc.system.service.ISystemRoleResourceService;
import com.hungraim.ltr.system.service.ISystemRoleService; import com.hungraim.ltc.system.service.ISystemRoleService;
import com.hungraim.ltr.util.Result; import com.hungraim.ltc.util.Result;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
......
package com.hungraim.ltr.system.controller; package com.hungraim.ltc.system.controller;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hungraim.ltr.constant.Gender; import com.hungraim.ltc.constant.Gender;
import com.hungraim.ltr.pojo.entity.system.SystemUser; import com.hungraim.ltc.pojo.entity.system.SystemUser;
import com.hungraim.ltr.pojo.entity.system.SystemUserRole; import com.hungraim.ltc.pojo.entity.system.SystemUserRole;
import com.hungraim.ltr.pojo.vo.system.ReqUserInfo; import com.hungraim.ltc.pojo.vo.system.ReqUserInfo;
import com.hungraim.ltr.system.service.ISystemUserRoleService; import com.hungraim.ltc.system.service.ISystemUserRoleService;
import com.hungraim.ltr.system.service.ISystemUserService; import com.hungraim.ltc.system.service.ISystemUserService;
import com.hungraim.ltr.system.service.impl.SystemUserRoleServiceImpl; import com.hungraim.ltc.system.service.impl.SystemUserRoleServiceImpl;
import com.hungraim.ltr.system.service.impl.SystemUserServiceImpl; import com.hungraim.ltc.system.service.impl.SystemUserServiceImpl;
import com.hungraim.ltr.util.CheckStrength; import com.hungraim.ltc.util.CheckStrength;
import com.hungraim.ltr.util.Result; import com.hungraim.ltc.util.Result;
import com.hungraim.ltr.util.ResultCode; import com.hungraim.ltc.util.ResultCode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
......
package com.hungraim.ltr.system.dao; package com.hungraim.ltc.system.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltr.pojo.entity.system.SystemResource; import com.hungraim.ltc.pojo.entity.system.SystemResource;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
import java.util.List; import java.util.List;
......
package com.hungraim.ltr.system.dao; package com.hungraim.ltc.system.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltr.pojo.entity.system.SystemRole; import com.hungraim.ltc.pojo.entity.system.SystemRole;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
/** /**
......
package com.hungraim.ltr.system.dao; package com.hungraim.ltc.system.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltr.pojo.entity.system.SystemRoleResource; import com.hungraim.ltc.pojo.entity.system.SystemRoleResource;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
......
package com.hungraim.ltr.system.dao; package com.hungraim.ltc.system.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltr.pojo.entity.system.SystemUser; import com.hungraim.ltc.pojo.entity.system.SystemUser;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
/** /**
......
package com.hungraim.ltr.system.dao; package com.hungraim.ltc.system.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltr.pojo.entity.system.SystemUserRole; import com.hungraim.ltc.pojo.entity.system.SystemUserRole;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
@Mapper @Mapper
......
package com.hungraim.ltr.system.service; package com.hungraim.ltc.system.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.hungraim.ltr.pojo.entity.system.SystemResource; import com.hungraim.ltc.pojo.entity.system.SystemResource;
import java.util.List; import java.util.List;
......
package com.hungraim.ltr.system.service; package com.hungraim.ltc.system.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.hungraim.ltr.pojo.entity.system.SystemRoleResource; import com.hungraim.ltc.pojo.entity.system.SystemRoleResource;
/** /**
......
package com.hungraim.ltr.system.service; package com.hungraim.ltc.system.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.hungraim.ltr.pojo.entity.system.SystemRole; import com.hungraim.ltc.pojo.entity.system.SystemRole;
/** /**
* 角色 * 角色
......
package com.hungraim.ltr.system.service; package com.hungraim.ltc.system.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.hungraim.ltr.pojo.entity.system.SystemUserRole; import com.hungraim.ltc.pojo.entity.system.SystemUserRole;
/** /**
* @author hubin * @author hubin
......
package com.hungraim.ltr.system.service; package com.hungraim.ltc.system.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.hungraim.ltr.pojo.entity.system.SystemUser; import com.hungraim.ltc.pojo.entity.system.SystemUser;
/** /**
* @author hubin * @author hubin
......
package com.hungraim.ltr.system.service.impl; package com.hungraim.ltc.system.service.impl;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hungraim.ltr.constant.AuthConstants; import com.hungraim.ltc.constant.AuthConstants;
import com.hungraim.ltr.pojo.entity.system.SystemResource; import com.hungraim.ltc.pojo.entity.system.SystemResource;
import com.hungraim.ltr.system.dao.SystemResourceMapper; import com.hungraim.ltc.system.dao.SystemResourceMapper;
import com.hungraim.ltr.system.service.ISystemResourceService; import com.hungraim.ltc.system.service.ISystemResourceService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
......
package com.hungraim.ltr.system.service.impl; package com.hungraim.ltc.system.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hungraim.ltr.pojo.entity.system.SystemRoleResource; import com.hungraim.ltc.pojo.entity.system.SystemRoleResource;
import com.hungraim.ltr.system.dao.SystemRoleResourceMapper; import com.hungraim.ltc.system.dao.SystemRoleResourceMapper;
import com.hungraim.ltr.system.service.ISystemRoleResourceService; import com.hungraim.ltc.system.service.ISystemRoleResourceService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
......
package com.hungraim.ltr.system.service.impl; package com.hungraim.ltc.system.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hungraim.ltr.pojo.entity.system.SystemRole; import com.hungraim.ltc.pojo.entity.system.SystemRole;
import com.hungraim.ltr.system.dao.SystemRoleMapper; import com.hungraim.ltc.system.dao.SystemRoleMapper;
import com.hungraim.ltr.system.service.ISystemRoleService; import com.hungraim.ltc.system.service.ISystemRoleService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
......
package com.hungraim.ltr.system.service.impl; package com.hungraim.ltc.system.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hungraim.ltr.pojo.entity.system.SystemUserRole; import com.hungraim.ltc.pojo.entity.system.SystemUserRole;
import com.hungraim.ltr.system.dao.SystemUserRoleMapper; import com.hungraim.ltc.system.dao.SystemUserRoleMapper;
import com.hungraim.ltr.system.service.ISystemUserRoleService; import com.hungraim.ltc.system.service.ISystemUserRoleService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
......
package com.hungraim.ltr.system.service.impl; package com.hungraim.ltc.system.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hungraim.ltr.pojo.entity.system.SystemUser; import com.hungraim.ltc.pojo.entity.system.SystemUser;
import com.hungraim.ltr.system.dao.SystemUserMapper; import com.hungraim.ltc.system.dao.SystemUserMapper;
import com.hungraim.ltr.system.dao.SystemUserRoleMapper; import com.hungraim.ltc.system.dao.SystemUserRoleMapper;
import com.hungraim.ltr.system.service.ISystemUserService; import com.hungraim.ltc.system.service.ISystemUserService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
......
package com.hungraim.ltr.api; package com.hungraim.ltc.api;
import com.hungraim.ltr.pojo.entity.system.SystemUser; import com.hungraim.ltc.pojo.entity.system.SystemUser;
import com.hungraim.ltr.util.Result; import com.hungraim.ltc.util.Result;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment