Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
7cd16329
Commit
7cd16329
authored
Oct 08, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新协议
parent
8edd5129
Show whitespace changes
Inline
Side-by-side
Showing
120 changed files
with
1747 additions
and
241 deletions
+1747
-241
src/main/java/com/stylefeng/guns/GunsApplication.java
+15
-0
src/main/java/com/stylefeng/guns/GunsServletInitializer.java
+15
-0
src/main/java/com/stylefeng/guns/config/EhCacheConfig.java
+15
-0
src/main/java/com/stylefeng/guns/config/SpringSessionConfig.java
+15
-0
src/main/java/com/stylefeng/guns/config/SwaggerConfig.java
+15
-0
src/main/java/com/stylefeng/guns/config/datasource/MultiDataSourceConfig.java
+15
-0
src/main/java/com/stylefeng/guns/config/datasource/SingleDataSourceConfig.java
+15
-0
src/main/java/com/stylefeng/guns/config/properties/BeetlProperties.java
+15
-0
src/main/java/com/stylefeng/guns/config/properties/GunsProperties.java
+15
-0
src/main/java/com/stylefeng/guns/config/web/BeetlConfig.java
+15
-0
src/main/java/com/stylefeng/guns/config/web/ShiroConfig.java
+15
-0
src/main/java/com/stylefeng/guns/config/web/WebConfig.java
+15
-0
src/main/java/com/stylefeng/guns/core/aop/GlobalExceptionHandler.java
+15
-0
src/main/java/com/stylefeng/guns/core/aop/LogAop.java
+15
-0
src/main/java/com/stylefeng/guns/core/aop/PermissionAop.java
+5
-3
src/main/java/com/stylefeng/guns/core/beetl/BeetlConfiguration.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/annotion/BussinessLog.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/annotion/Permission.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/Const.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/DatasourceEnum.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/JwtConstants.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/cache/Cache.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/cache/CacheKey.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/DeleteDict.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/DeptDict.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/DictMap.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/LogDict.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/MenuDict.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/NoticeMap.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/RoleDict.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/UserDict.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/base/AbstractDictMap.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/base/SystemDict.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/factory/DictFieldWarpperFactory.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/factory/ConstantFactory.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/factory/IConstantFactory.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/factory/MutiStrFactory.java
+15
-1
src/main/java/com/stylefeng/guns/core/common/constant/factory/PageFactory.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/state/BizLogType.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/state/ExpenseState.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/state/LogSucceed.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/state/LogType.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/state/ManagerStatus.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/state/MenuOpenStatus.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/state/MenuStatus.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/constant/state/Order.java
+15
-0
src/main/java/com/stylefeng/guns/core/common/exception/BizExceptionEnum.java
+15
-1
src/main/java/com/stylefeng/guns/core/common/exception/InvalidKaptchaException.java
+15
-0
src/main/java/com/stylefeng/guns/core/controller/GlobalController.java
+15
-0
src/main/java/com/stylefeng/guns/core/controller/GunsErrorView.java
+15
-0
src/main/java/com/stylefeng/guns/core/intercept/RestApiInteceptor.java
+15
-0
src/main/java/com/stylefeng/guns/core/intercept/SessionHolderInterceptor.java
+15
-0
src/main/java/com/stylefeng/guns/core/log/LogManager.java
+15
-0
src/main/java/com/stylefeng/guns/core/log/LogObjectHolder.java
+15
-0
src/main/java/com/stylefeng/guns/core/log/factory/LogFactory.java
+15
-0
src/main/java/com/stylefeng/guns/core/log/factory/LogTaskFactory.java
+15
-0
src/main/java/com/stylefeng/guns/core/node/MenuNode.java
+15
-0
src/main/java/com/stylefeng/guns/core/node/ZTreeNode.java
+15
-0
src/main/java/com/stylefeng/guns/core/page/PageInfoBT.java
+15
-0
src/main/java/com/stylefeng/guns/core/shiro/ShiroDbRealm.java
+15
-0
src/main/java/com/stylefeng/guns/core/shiro/ShiroUser.java
+15
-0
src/main/java/com/stylefeng/guns/core/shiro/factory/IShiro.java
+15
-0
src/main/java/com/stylefeng/guns/core/shiro/factory/ShiroFactroy.java
+15
-0
src/main/java/com/stylefeng/guns/core/tag/DictSelectorTag.java
+15
-0
src/main/java/com/stylefeng/guns/core/util/ApiMenuFilter.java
+15
-0
src/main/java/com/stylefeng/guns/core/util/Contrast.java
+15
-0
src/main/java/com/stylefeng/guns/core/util/JwtTokenUtil.java
+15
-0
src/main/java/com/stylefeng/guns/core/util/KaptchaUtil.java
+15
-0
src/main/java/com/stylefeng/guns/modular/api/ApiController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/controller/BlackboardController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/controller/DeptController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/controller/DictController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/controller/KaptchaController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/controller/LogController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/controller/LoginController.java
+15
-1
src/main/java/com/stylefeng/guns/modular/system/controller/LoginLogController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/controller/MenuController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/controller/NoticeController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/controller/RoleController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/controller/UserMgrController.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/dao/DeptMapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/dao/DictMapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/dao/ExpenseMapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/dao/LoginLogMapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/dao/MenuMapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/dao/NoticeMapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/dao/OperationLogMapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/dao/RelationMapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/dao/RoleMapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/dao/UserMapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/factory/UserFactory.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/IDeptService.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/IDictService.java
+16
-1
src/main/java/com/stylefeng/guns/modular/system/service/ILoginLogService.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/IMenuService.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/INoticeService.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/IOperationLogService.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/IRelationService.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/IRoleService.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/IUserService.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/impl/DeptServiceImpl.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/impl/DictServiceImpl.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/impl/LoginLogServiceImpl.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/impl/MenuServiceImpl.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/impl/NoticeServiceImpl.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/impl/OperationLogServiceImpl.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/impl/RelationServiceImpl.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/impl/RoleServiceImpl.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/service/impl/UserServiceImpl.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/transfer/ManagerUser.java
+0
-97
src/main/java/com/stylefeng/guns/modular/system/transfer/ReqAddManager.java
+0
-76
src/main/java/com/stylefeng/guns/modular/system/transfer/ReqEditManager.java
+0
-60
src/main/java/com/stylefeng/guns/modular/system/transfer/UserDto.java
+16
-1
src/main/java/com/stylefeng/guns/modular/system/warpper/DeptWarpper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/warpper/DictWarpper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/warpper/LogWarpper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/warpper/MenuWarpper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/warpper/NoticeWrapper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/warpper/RoleWarpper.java
+15
-0
src/main/java/com/stylefeng/guns/modular/system/warpper/UserWarpper.java
+15
-0
No files found.
src/main/java/com/stylefeng/guns/GunsApplication.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
;
import
org.slf4j.Logger
;
...
...
src/main/java/com/stylefeng/guns/GunsServletInitializer.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
...
...
src/main/java/com/stylefeng/guns/config/EhCacheConfig.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
config
;
import
net.sf.ehcache.CacheManager
;
...
...
src/main/java/com/stylefeng/guns/config/SpringSessionConfig.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
config
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
...
...
src/main/java/com/stylefeng/guns/config/SwaggerConfig.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
config
;
import
io.swagger.annotations.ApiOperation
;
...
...
src/main/java/com/stylefeng/guns/config/datasource/MultiDataSourceConfig.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
config
.
datasource
;
import
cn.stylefeng.roses.core.config.properties.DruidProperties
;
...
...
src/main/java/com/stylefeng/guns/config/datasource/SingleDataSourceConfig.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
config
.
datasource
;
import
cn.stylefeng.roses.core.config.properties.DruidProperties
;
...
...
src/main/java/com/stylefeng/guns/config/properties/BeetlProperties.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
config
.
properties
;
import
cn.stylefeng.roses.core.util.ToolUtil
;
...
...
src/main/java/com/stylefeng/guns/config/properties/GunsProperties.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
config
.
properties
;
import
cn.stylefeng.roses.core.util.ToolUtil
;
...
...
src/main/java/com/stylefeng/guns/config/web/BeetlConfig.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
config
.
web
;
import
com.stylefeng.guns.config.properties.BeetlProperties
;
...
...
src/main/java/com/stylefeng/guns/config/web/ShiroConfig.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
config
.
web
;
import
com.stylefeng.guns.config.properties.GunsProperties
;
...
...
src/main/java/com/stylefeng/guns/config/web/WebConfig.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
config
.
web
;
import
cn.stylefeng.roses.core.xss.XssFilter
;
...
...
src/main/java/com/stylefeng/guns/core/aop/GlobalExceptionHandler.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
aop
;
import
cn.stylefeng.roses.core.reqres.response.ErrorResponseData
;
...
...
src/main/java/com/stylefeng/guns/core/aop/LogAop.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
aop
;
import
cn.stylefeng.roses.core.util.HttpContext
;
...
...
src/main/java/com/stylefeng/guns/core/aop/PermissionAop.java
View file @
7cd16329
/**
* Copyright
(c) 2015-2017, Chill Zhuang 庄骞 (smallchill@163.com).
* Copyright
2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -29,7 +29,10 @@ import javax.naming.NoPermissionException;
import
java.lang.reflect.Method
;
/**
* AOP 权限自定义检查
* 权限检查的aop
*
* @author fengshuonan
* @date 2017-07-13 21:05
*/
@Aspect
@Component
...
...
@@ -64,7 +67,6 @@ public class PermissionAop {
throw
new
NoPermissionException
();
}
}
}
}
src/main/java/com/stylefeng/guns/core/beetl/BeetlConfiguration.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
beetl
;
import
cn.stylefeng.roses.core.util.ToolUtil
;
...
...
src/main/java/com/stylefeng/guns/core/common/annotion/BussinessLog.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
annotion
;
import
com.stylefeng.guns.core.common.constant.dictmap.base.AbstractDictMap
;
...
...
src/main/java/com/stylefeng/guns/core/common/annotion/Permission.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
annotion
;
import
java.lang.annotation.*
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/Const.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/DatasourceEnum.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/JwtConstants.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/cache/Cache.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
cache
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/cache/CacheKey.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
cache
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/DeleteDict.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
;
import
com.stylefeng.guns.core.common.constant.dictmap.base.AbstractDictMap
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/DeptDict.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
;
import
com.stylefeng.guns.core.common.constant.dictmap.base.AbstractDictMap
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/DictMap.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
;
import
com.stylefeng.guns.core.common.constant.dictmap.base.AbstractDictMap
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/LogDict.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
;
import
com.stylefeng.guns.core.common.constant.dictmap.base.AbstractDictMap
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/MenuDict.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
;
import
com.stylefeng.guns.core.common.constant.dictmap.base.AbstractDictMap
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/NoticeMap.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
;
import
com.stylefeng.guns.core.common.constant.dictmap.base.AbstractDictMap
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/RoleDict.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
;
import
com.stylefeng.guns.core.common.constant.dictmap.base.AbstractDictMap
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/UserDict.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
;
import
com.stylefeng.guns.core.common.constant.dictmap.base.AbstractDictMap
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/base/AbstractDictMap.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
.
base
;
import
java.util.HashMap
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/base/SystemDict.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
.
base
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/dictmap/factory/DictFieldWarpperFactory.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
.
factory
;
import
cn.stylefeng.roses.kernel.model.exception.ServiceException
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/factory/ConstantFactory.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
factory
;
import
cn.hutool.core.convert.Convert
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/factory/IConstantFactory.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
factory
;
import
com.stylefeng.guns.modular.system.model.Dict
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/factory/MutiStrFactory.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
factory
;
import
cn.hutool.core.util.StrUtil
;
import
cn.stylefeng.roses.core.util.ToolUtil
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/factory/PageFactory.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
factory
;
import
cn.stylefeng.roses.core.util.HttpContext
;
...
...
src/main/java/com/stylefeng/guns/core/common/constant/state/BizLogType.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
state
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/state/ExpenseState.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
state
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/state/LogSucceed.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
state
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/state/LogType.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
state
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/state/ManagerStatus.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
state
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/state/MenuOpenStatus.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
state
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/state/MenuStatus.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
state
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/constant/state/Order.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
constant
.
state
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/exception/BizExceptionEnum.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
exception
;
import
cn.stylefeng.roses.kernel.model.exception.AbstractBaseExceptionEnum
;
/**
...
...
src/main/java/com/stylefeng/guns/core/common/exception/InvalidKaptchaException.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
common
.
exception
;
/**
...
...
src/main/java/com/stylefeng/guns/core/controller/GlobalController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
controller
;
import
org.springframework.stereotype.Controller
;
...
...
src/main/java/com/stylefeng/guns/core/controller/GunsErrorView.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
controller
;
import
org.springframework.web.servlet.View
;
...
...
src/main/java/com/stylefeng/guns/core/intercept/RestApiInteceptor.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
intercept
;
import
cn.stylefeng.roses.core.reqres.response.ErrorResponseData
;
...
...
src/main/java/com/stylefeng/guns/core/intercept/SessionHolderInterceptor.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
intercept
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
...
...
src/main/java/com/stylefeng/guns/core/log/LogManager.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
log
;
import
java.util.TimerTask
;
...
...
src/main/java/com/stylefeng/guns/core/log/LogObjectHolder.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
log
;
import
cn.stylefeng.roses.core.util.SpringContextHolder
;
...
...
src/main/java/com/stylefeng/guns/core/log/factory/LogFactory.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
log
.
factory
;
import
com.stylefeng.guns.core.common.constant.state.LogSucceed
;
...
...
src/main/java/com/stylefeng/guns/core/log/factory/LogTaskFactory.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
log
.
factory
;
import
cn.stylefeng.roses.core.util.SpringContextHolder
;
...
...
src/main/java/com/stylefeng/guns/core/node/MenuNode.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
node
;
import
cn.stylefeng.roses.kernel.model.enums.YesOrNotEnum
;
...
...
src/main/java/com/stylefeng/guns/core/node/ZTreeNode.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
node
;
/**
...
...
src/main/java/com/stylefeng/guns/core/page/PageInfoBT.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
page
;
import
com.baomidou.mybatisplus.plugins.Page
;
...
...
src/main/java/com/stylefeng/guns/core/shiro/ShiroDbRealm.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
shiro
;
import
cn.stylefeng.roses.core.util.ToolUtil
;
...
...
src/main/java/com/stylefeng/guns/core/shiro/ShiroUser.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
shiro
;
import
java.io.Serializable
;
...
...
src/main/java/com/stylefeng/guns/core/shiro/factory/IShiro.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
shiro
.
factory
;
import
com.stylefeng.guns.core.shiro.ShiroUser
;
...
...
src/main/java/com/stylefeng/guns/core/shiro/factory/ShiroFactroy.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
shiro
.
factory
;
import
cn.hutool.core.convert.Convert
;
...
...
src/main/java/com/stylefeng/guns/core/tag/DictSelectorTag.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
tag
;
import
cn.stylefeng.roses.core.util.ToolUtil
;
...
...
src/main/java/com/stylefeng/guns/core/util/ApiMenuFilter.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
util
;
import
cn.stylefeng.roses.core.util.SpringContextHolder
;
...
...
src/main/java/com/stylefeng/guns/core/util/Contrast.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
util
;
import
cn.hutool.core.date.DateUtil
;
...
...
src/main/java/com/stylefeng/guns/core/util/JwtTokenUtil.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
util
;
import
cn.stylefeng.roses.core.util.ToolUtil
;
...
...
src/main/java/com/stylefeng/guns/core/util/KaptchaUtil.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
core
.
util
;
import
cn.stylefeng.roses.core.util.SpringContextHolder
;
...
...
src/main/java/com/stylefeng/guns/modular/api/ApiController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
api
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/BlackboardController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/DeptController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/DictController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/KaptchaController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.stylefeng.roses.core.util.FileUtil
;
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/LogController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/LoginController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
...
...
@@ -26,7 +41,6 @@ import java.util.List;
import
static
cn
.
stylefeng
.
roses
.
core
.
util
.
HttpContext
.
getIp
;
/**
* 登录控制器
*
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/LoginLogController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/MenuController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/NoticeController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/RoleController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
...
...
src/main/java/com/stylefeng/guns/modular/system/controller/UserMgrController.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
controller
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
...
...
src/main/java/com/stylefeng/guns/modular/system/dao/DeptMapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
dao
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/dao/DictMapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
dao
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/dao/ExpenseMapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
dao
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/dao/LoginLogMapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
dao
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/dao/MenuMapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
dao
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/dao/NoticeMapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
dao
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/dao/OperationLogMapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
dao
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/dao/RelationMapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
dao
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/dao/RoleMapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
dao
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/dao/UserMapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
dao
;
import
cn.stylefeng.roses.core.datascope.DataScope
;
...
...
src/main/java/com/stylefeng/guns/modular/system/factory/UserFactory.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
factory
;
import
cn.stylefeng.roses.core.util.ToolUtil
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/IDeptService.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
;
import
com.baomidou.mybatisplus.service.IService
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/IDictService.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
;
import
com.baomidou.mybatisplus.service.IService
;
...
...
@@ -18,7 +33,7 @@ public interface IDictService extends IService<Dict> {
/**
* 添加字典
*/
void
addDict
(
String
dictCode
,
String
dictName
,
String
dictTips
,
String
dictValues
);
void
addDict
(
String
dictCode
,
String
dictName
,
String
dictTips
,
String
dictValues
);
/**
* 编辑字典
...
...
src/main/java/com/stylefeng/guns/modular/system/service/ILoginLogService.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
;
import
com.baomidou.mybatisplus.plugins.Page
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/IMenuService.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
;
import
com.baomidou.mybatisplus.service.IService
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/INoticeService.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
;
import
com.baomidou.mybatisplus.service.IService
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/IOperationLogService.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
;
import
com.baomidou.mybatisplus.plugins.Page
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/IRelationService.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
;
import
com.baomidou.mybatisplus.service.IService
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/IRoleService.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
;
import
com.baomidou.mybatisplus.service.IService
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/IUserService.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
;
import
cn.stylefeng.roses.core.datascope.DataScope
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/impl/DeptServiceImpl.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
.
impl
;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/impl/DictServiceImpl.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
.
impl
;
import
cn.stylefeng.roses.kernel.model.exception.ServiceException
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/impl/LoginLogServiceImpl.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
.
impl
;
import
com.baomidou.mybatisplus.plugins.Page
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/impl/MenuServiceImpl.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
.
impl
;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/impl/NoticeServiceImpl.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
.
impl
;
import
com.baomidou.mybatisplus.service.impl.ServiceImpl
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/impl/OperationLogServiceImpl.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
.
impl
;
import
com.baomidou.mybatisplus.plugins.Page
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/impl/RelationServiceImpl.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
.
impl
;
import
com.baomidou.mybatisplus.service.impl.ServiceImpl
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/impl/RoleServiceImpl.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
.
impl
;
import
cn.hutool.core.convert.Convert
;
...
...
src/main/java/com/stylefeng/guns/modular/system/service/impl/UserServiceImpl.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
service
.
impl
;
import
cn.stylefeng.roses.core.datascope.DataScope
;
...
...
src/main/java/com/stylefeng/guns/modular/system/transfer/ManagerUser.java
deleted
100644 → 0
View file @
8edd5129
package
com
.
stylefeng
.
guns
.
modular
.
system
.
transfer
;
import
java.util.Date
;
/**
* 管理员的信息封装
*
* @author fengshuonan
* @Date 2017年1月11日 下午7:46:53
*/
public
class
ManagerUser
{
private
String
userId
;
/* 用户账号 */
private
String
userNo
;
/* 用户姓名 */
private
String
userName
;
private
String
userPhone
;
//1:超级管理员 2:管理员
private
String
userRole
;
/* 1:登录状态 2:退出状态 3:停用状态 */
private
Integer
userStatus
;
private
Date
createTime
;
private
Date
loginTime
;
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
String
getUserNo
()
{
return
userNo
;
}
public
void
setUserNo
(
String
userNo
)
{
this
.
userNo
=
userNo
;
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getUserPhone
()
{
return
userPhone
;
}
public
void
setUserPhone
(
String
userPhone
)
{
this
.
userPhone
=
userPhone
;
}
public
String
getUserRole
()
{
return
userRole
;
}
public
void
setUserRole
(
String
userRole
)
{
this
.
userRole
=
userRole
;
}
public
Integer
getUserStatus
()
{
return
userStatus
;
}
public
void
setUserStatus
(
Integer
userStatus
)
{
this
.
userStatus
=
userStatus
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getLoginTime
()
{
return
loginTime
;
}
public
void
setLoginTime
(
Date
loginTime
)
{
this
.
loginTime
=
loginTime
;
}
}
src/main/java/com/stylefeng/guns/modular/system/transfer/ReqAddManager.java
deleted
100644 → 0
View file @
8edd5129
package
com
.
stylefeng
.
guns
.
modular
.
system
.
transfer
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotNull
;
/**
* 添加管理员的请求bean
*
* @author fengshuonan
* @Date 2017年1月12日 下午6:46:24
*/
public
class
ReqAddManager
{
// 用户姓名
@NotNull
private
String
userName
;
// 用户账号
@NotNull
private
String
userNo
;
// 手机号
@NotNull
@Length
(
min
=
11
,
max
=
11
)
private
String
userPhone
;
// 1:超级管理员 2:管理员
@NotNull
private
String
userRole
;
// 密码
@NotNull
private
String
userPassword
;
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getUserNo
()
{
return
userNo
;
}
public
void
setUserNo
(
String
userNo
)
{
this
.
userNo
=
userNo
;
}
public
String
getUserPhone
()
{
return
userPhone
;
}
public
void
setUserPhone
(
String
userPhone
)
{
this
.
userPhone
=
userPhone
;
}
public
String
getUserRole
()
{
return
userRole
;
}
public
void
setUserRole
(
String
userRole
)
{
this
.
userRole
=
userRole
;
}
public
String
getUserPassword
()
{
return
userPassword
;
}
public
void
setUserPassword
(
String
userPassword
)
{
this
.
userPassword
=
userPassword
;
}
}
src/main/java/com/stylefeng/guns/modular/system/transfer/ReqEditManager.java
deleted
100644 → 0
View file @
8edd5129
package
com
.
stylefeng
.
guns
.
modular
.
system
.
transfer
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotNull
;
/**
* 编辑管理员的请求
*
* @author fengshuonan
* @Date 2017年1月15日 下午10:29:16
*/
public
class
ReqEditManager
{
@NotNull
private
String
userId
;
/* 用户姓名 */
@NotNull
private
String
userName
;
private
String
userPassword
;
@NotNull
@Length
(
min
=
11
,
max
=
11
)
private
String
userPhone
;
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getUserPassword
()
{
return
userPassword
;
}
public
void
setUserPassword
(
String
userPassword
)
{
this
.
userPassword
=
userPassword
;
}
public
String
getUserPhone
()
{
return
userPhone
;
}
public
void
setUserPhone
(
String
userPhone
)
{
this
.
userPhone
=
userPhone
;
}
}
src/main/java/com/stylefeng/guns/modular/system/transfer/UserDto.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
transfer
;
import
org.springframework.format.annotation.DateTimeFormat
;
...
...
@@ -10,7 +25,7 @@ import java.util.Date;
* @author stylefeng
* @Date 2017/5/5 22:40
*/
public
class
UserDto
{
public
class
UserDto
{
private
Integer
id
;
private
String
account
;
...
...
src/main/java/com/stylefeng/guns/modular/system/warpper/DeptWarpper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
warpper
;
import
cn.stylefeng.roses.core.base.warpper.BaseControllerWrapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/warpper/DictWarpper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
warpper
;
import
cn.hutool.core.util.StrUtil
;
...
...
src/main/java/com/stylefeng/guns/modular/system/warpper/LogWarpper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
warpper
;
import
cn.stylefeng.roses.core.base.warpper.BaseControllerWrapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/warpper/MenuWarpper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
warpper
;
import
cn.stylefeng.roses.core.base.warpper.BaseControllerWrapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/warpper/NoticeWrapper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
warpper
;
import
cn.stylefeng.roses.core.base.warpper.BaseControllerWrapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/warpper/RoleWarpper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
warpper
;
import
cn.stylefeng.roses.core.base.warpper.BaseControllerWrapper
;
...
...
src/main/java/com/stylefeng/guns/modular/system/warpper/UserWarpper.java
View file @
7cd16329
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
stylefeng
.
guns
.
modular
.
system
.
warpper
;
import
cn.stylefeng.roses.core.base.warpper.BaseControllerWrapper
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment