master
ky 6 years ago
parent 01022a3169
commit 815ad7b2d4

@ -4,7 +4,7 @@
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">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.huishuitong</groupId> <groupId>com.gszc</groupId>
<artifactId>server</artifactId> <artifactId>server</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging> <packaging>war</packaging>

@ -1,4 +1,4 @@
package com.huishuitong; package com.gszc;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

@ -1,6 +1,6 @@
package com.huishuitong.aop; package com.gszc.aop;
import com.huishuitong.util.LogUtils; import com.gszc.util.LogUtils;
import org.aspectj.lang.JoinPoint; import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.*; import org.aspectj.lang.annotation.*;
import org.slf4j.Logger; import org.slf4j.Logger;
@ -17,7 +17,7 @@ public class LogAspect {
private Logger logger = LogUtils.getBussinessLogger(); private Logger logger = LogUtils.getBussinessLogger();
@Pointcut("execution(public * com.huishuitong.controller.*.*(..))") @Pointcut("execution(public * com.gszc.controller.*.*(..))")
public void webLog(){ public void webLog(){
} }

@ -1,6 +1,6 @@
package com.huishuitong.build; package com.gszc.build;
import com.huishuitong.util.CloseableUtils; import com.gszc.util.CloseableUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

@ -1,4 +1,4 @@
package com.huishuitong.build; package com.gszc.build;
public class Result { public class Result {

@ -1,4 +1,4 @@
package com.huishuitong.build; package com.gszc.build;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

@ -1,4 +1,4 @@
package com.huishuitong.conf; package com.gszc.conf;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;

@ -1,9 +1,9 @@
package com.huishuitong.conf; package com.gszc.conf;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature; import com.alibaba.fastjson.serializer.SerializerFeature;
import com.huishuitong.build.Result; import com.gszc.build.Result;
import com.huishuitong.build.ResultBuilder; import com.gszc.build.ResultBuilder;
import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter; import org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter;
import org.slf4j.Logger; import org.slf4j.Logger;

@ -1,4 +1,4 @@
package com.huishuitong.conf; package com.gszc.conf;
import org.apache.shiro.authc.AuthenticationToken; import org.apache.shiro.authc.AuthenticationToken;

@ -1,7 +1,7 @@
package com.huishuitong.conf; package com.gszc.conf;
import com.huishuitong.util.JwtUtils; import com.gszc.util.JwtUtils;
import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken; import org.apache.shiro.authc.AuthenticationToken;

@ -1,4 +1,4 @@
package com.huishuitong.conf; package com.gszc.conf;
import org.apache.shiro.mgt.DefaultSessionStorageEvaluator; import org.apache.shiro.mgt.DefaultSessionStorageEvaluator;

@ -1,4 +1,4 @@
package com.huishuitong.conf; package com.gszc.conf;
import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI; import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;

@ -1,5 +1,5 @@
package com.huishuitong.conf; package com.gszc.conf;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;

@ -1,4 +1,4 @@
package com.huishuitong.constant; package com.gszc.constant;
public class RequestXml { public class RequestXml {
public static final String XML = "<exchange>\n" + public static final String XML = "<exchange>\n" +

@ -1,4 +1,4 @@
package com.huishuitong.constant; package com.gszc.constant;
public class ResultXml { public class ResultXml {
public static final String QUERY_PATIENT = "<exchange>\n" + public static final String QUERY_PATIENT = "<exchange>\n" +

@ -0,0 +1,4 @@
package com.gszc.constant;
public class ServiceCode {
}

@ -1,20 +1,7 @@
package com.huishuitong.controller; package com.gszc.controller;
import com.alibaba.fastjson.JSONObject;
import com.huishuitong.model.WxUser;
import com.huishuitong.service.LoginService;
import com.huishuitong.build.Result;
import com.huishuitong.build.ResultBuilder;
import com.huishuitong.util.JwtUtils;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@RestController @RestController
public class LoginController { public class LoginController {

@ -1,7 +1,7 @@
package com.huishuitong.mapper; package com.gszc.mapper;
import com.huishuitong.model.WxUser; import com.gszc.model.WxUser;
import com.huishuitong.util.CommonMapper; import com.gszc.util.CommonMapper;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
@Mapper @Mapper

@ -1,4 +1,4 @@
package com.huishuitong.model; package com.gszc.model;
import javax.persistence.*; import javax.persistence.*;

@ -1,4 +1,4 @@
package com.huishuitong.service; package com.gszc.service;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;

@ -1,4 +1,4 @@
package com.huishuitong.util; package com.gszc.util;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

@ -1,4 +1,4 @@
package com.huishuitong.util; package com.gszc.util;
import tk.mybatis.mapper.common.Mapper; import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper; import tk.mybatis.mapper.common.MySqlMapper;

@ -1,4 +1,4 @@
package com.huishuitong.util; package com.gszc.util;
import com.auth0.jwt.JWT; import com.auth0.jwt.JWT;

@ -1,4 +1,4 @@
package com.huishuitong.util; package com.gszc.util;
/** /**
* *

@ -1,4 +1,4 @@
package com.huishuitong.util; package com.gszc.util;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

@ -1,4 +1,4 @@
package com.huishuitong.util; package com.gszc.util;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import okhttp3.OkHttpClient; import okhttp3.OkHttpClient;

@ -1,4 +1,4 @@
package com.huishuitong.util; package com.gszc.util;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

@ -1,8 +1,8 @@
package com.huishuitong.util; package com.gszc.util;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.huishuitong.constant.RequestXml; import com.gszc.constant.RequestXml;
import org.dom4j.Document; import org.dom4j.Document;
import org.dom4j.DocumentException; import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper; import org.dom4j.DocumentHelper;

@ -1,4 +0,0 @@
package com.huishuitong.constant;
public class ServiceCode {
}

@ -29,7 +29,7 @@ mybatis:
type-aliases-package: com.oceanspot.template.util.model type-aliases-package: com.oceanspot.template.util.model
mapper-locations: classpath:mapper/*.xml mapper-locations: classpath:mapper/*.xml
mapper: mapper:
mappers: com.huishuitong.util.CommonMapper mappers: com.gszc.util.CommonMapper
not-empty: false not-empty: false
identity: MYSQL identity: MYSQL
pagehelper: pagehelper:

@ -11,7 +11,7 @@
<property name="endingDelimiter" value="`"/> <property name="endingDelimiter" value="`"/>
<plugin type="tk.mybatis.mapper.generator.MapperPlugin"> <plugin type="tk.mybatis.mapper.generator.MapperPlugin">
<property name="mappers" value="com.huishuitong.util.CommonMapper"/> <property name="mappers" value="com.gszc.util.CommonMapper"/>
</plugin> </plugin>
<jdbcConnection driverClass="com.mysql.jdbc.Driver" <jdbcConnection driverClass="com.mysql.jdbc.Driver"

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.huishuitong.mapper.WxUserMapper"> <mapper namespace="com.gszc.mapper.WxUserMapper">
<resultMap id="BaseResultMap" type="com.huishuitong.model.WxUser"> <resultMap id="BaseResultMap" type="com.gszc.model.WxUser">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->

Loading…
Cancel
Save