- 清理被错误提交的 target
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
spring:
|
||||
boot:
|
||||
admin:
|
||||
client:
|
||||
enabled: false # 暂时不用了
|
||||
url: http://127.0.0.1:18097
|
||||
|
||||
|
||||
#management:
|
||||
# endpoints:
|
||||
# web:
|
||||
# exposure:
|
||||
# include: "*"
|
||||
# server:
|
||||
# port: 19083 # 配置独立端口。而该端口,不使用 nginx 对外暴露,从而不配置安全认证。也就是说,内网环境可访问,外网环境不可访问。当然,这么做的前提是,认为内网安全。
|
||||
|
||||
swagger:
|
||||
enable: true # 暂时不去掉
|
||||
@@ -1,42 +0,0 @@
|
||||
spring:
|
||||
application:
|
||||
name: admin-application
|
||||
cloud:
|
||||
sentinel:
|
||||
transport:
|
||||
port: 8719
|
||||
dashboard: localhost:12088
|
||||
metric:
|
||||
charset: UTF-8
|
||||
eager: false
|
||||
|
||||
# server
|
||||
server:
|
||||
port: 18083
|
||||
servlet:
|
||||
context-path: /admin-api/
|
||||
|
||||
admins:
|
||||
security:
|
||||
ignore_urls: /admin-api/admins/passport/login, /admin-api/admins/file/get_qiniu_token
|
||||
|
||||
# qiniu
|
||||
qiniu:
|
||||
access-key: YldfyUC7OewoWM63TPYTairqnq8GMJvNek9EGoID
|
||||
secret-key: zZ7Q8wwZRyaklVvkyLmVydA4WygOBqtc_gTYzalS
|
||||
bucket: onemall
|
||||
|
||||
swagger:
|
||||
enable: true # 暂时不去掉
|
||||
title: 管理员子系统
|
||||
description: 管理员子系统
|
||||
version: 1.0.0
|
||||
base-package: cn.iocoder.mall.admin.application.controller
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info,env,metrics,prometheus
|
||||
metrics:
|
||||
enabled: true
|
||||
@@ -1,155 +0,0 @@
|
||||
package cn.iocoder.mall.admin.application.convert;
|
||||
|
||||
import cn.iocoder.common.framework.vo.CommonResult;
|
||||
import cn.iocoder.common.framework.vo.PageResult;
|
||||
import cn.iocoder.mall.admin.api.bo.admin.AdminBO;
|
||||
import cn.iocoder.mall.admin.api.bo.role.RoleBO;
|
||||
import cn.iocoder.mall.admin.application.vo.admin.AdminInfoVO;
|
||||
import cn.iocoder.mall.admin.application.vo.admin.AdminRoleVO;
|
||||
import cn.iocoder.mall.admin.application.vo.admin.AdminVO;
|
||||
import cn.iocoder.mall.admin.application.vo.admin.AdminVO.Role;
|
||||
import cn.iocoder.mall.admin.sdk.context.AdminSecurityContext;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-31T18:11:49+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class AdminConvertImpl implements AdminConvert {
|
||||
|
||||
@Override
|
||||
public AdminInfoVO convert(AdminSecurityContext adminSecurityContext) {
|
||||
if ( adminSecurityContext == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
AdminInfoVO adminInfoVO = new AdminInfoVO();
|
||||
|
||||
adminInfoVO.setAdminId( adminSecurityContext.getAdminId() );
|
||||
Set<Integer> set = adminSecurityContext.getRoleIds();
|
||||
if ( set != null ) {
|
||||
adminInfoVO.setRoleIds( new HashSet<Integer>( set ) );
|
||||
}
|
||||
|
||||
return adminInfoVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AdminVO convert(AdminBO adminBO) {
|
||||
if ( adminBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
AdminVO adminVO = new AdminVO();
|
||||
|
||||
adminVO.setId( adminBO.getId() );
|
||||
adminVO.setUsername( adminBO.getUsername() );
|
||||
adminVO.setNickname( adminBO.getNickname() );
|
||||
adminVO.setStatus( adminBO.getStatus() );
|
||||
adminVO.setCreateTime( adminBO.getCreateTime() );
|
||||
|
||||
return adminVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonResult<AdminVO> convert2(CommonResult<AdminBO> result) {
|
||||
if ( result == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
CommonResult<AdminVO> commonResult = new CommonResult<AdminVO>();
|
||||
|
||||
commonResult.setCode( result.getCode() );
|
||||
commonResult.setMessage( result.getMessage() );
|
||||
commonResult.setData( convert( result.getData() ) );
|
||||
|
||||
return commonResult;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AdminRoleVO> convert(List<RoleBO> roleList) {
|
||||
if ( roleList == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<AdminRoleVO> list = new ArrayList<AdminRoleVO>( roleList.size() );
|
||||
for ( RoleBO roleBO : roleList ) {
|
||||
list.add( roleBOToAdminRoleVO( roleBO ) );
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<AdminVO> convertAdminVOPage(PageResult<AdminBO> page) {
|
||||
if ( page == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
PageResult<AdminVO> pageResult = new PageResult<AdminVO>();
|
||||
|
||||
pageResult.setList( adminBOListToAdminVOList( page.getList() ) );
|
||||
pageResult.setTotal( page.getTotal() );
|
||||
|
||||
return pageResult;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Role> convertAdminVORoleList(Collection<RoleBO> list) {
|
||||
if ( list == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<Role> list1 = new ArrayList<Role>( list.size() );
|
||||
for ( RoleBO roleBO : list ) {
|
||||
list1.add( roleBOToRole( roleBO ) );
|
||||
}
|
||||
|
||||
return list1;
|
||||
}
|
||||
|
||||
protected AdminRoleVO roleBOToAdminRoleVO(RoleBO roleBO) {
|
||||
if ( roleBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
AdminRoleVO adminRoleVO = new AdminRoleVO();
|
||||
|
||||
adminRoleVO.setId( roleBO.getId() );
|
||||
adminRoleVO.setName( roleBO.getName() );
|
||||
|
||||
return adminRoleVO;
|
||||
}
|
||||
|
||||
protected List<AdminVO> adminBOListToAdminVOList(List<AdminBO> list) {
|
||||
if ( list == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<AdminVO> list1 = new ArrayList<AdminVO>( list.size() );
|
||||
for ( AdminBO adminBO : list ) {
|
||||
list1.add( convert( adminBO ) );
|
||||
}
|
||||
|
||||
return list1;
|
||||
}
|
||||
|
||||
protected Role roleBOToRole(RoleBO roleBO) {
|
||||
if ( roleBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Role role = new Role();
|
||||
|
||||
role.setId( roleBO.getId() );
|
||||
role.setName( roleBO.getName() );
|
||||
|
||||
return role;
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
package cn.iocoder.mall.admin.application.convert;
|
||||
|
||||
import cn.iocoder.mall.admin.api.bo.datadict.DataDictBO;
|
||||
import cn.iocoder.mall.admin.application.vo.datadict.DataDictEnumVO.Value;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-31T18:11:48+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class DataDictConvertImpl implements DataDictConvert {
|
||||
|
||||
@Override
|
||||
public List<Value> convert2(List<DataDictBO> dataDictBOs) {
|
||||
if ( dataDictBOs == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<Value> list = new ArrayList<Value>( dataDictBOs.size() );
|
||||
for ( DataDictBO dataDictBO : dataDictBOs ) {
|
||||
list.add( dataDictBOToValue( dataDictBO ) );
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
protected Value dataDictBOToValue(DataDictBO dataDictBO) {
|
||||
if ( dataDictBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Value value = new Value();
|
||||
|
||||
value.setValue( dataDictBO.getValue() );
|
||||
value.setDisplayName( dataDictBO.getDisplayName() );
|
||||
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
package cn.iocoder.mall.admin.application.convert;
|
||||
|
||||
import cn.iocoder.common.framework.vo.CommonResult;
|
||||
import cn.iocoder.mall.admin.api.bo.oauth2.OAuth2AccessTokenBO;
|
||||
import cn.iocoder.mall.admin.application.vo.PassportLoginVO;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-31T18:11:49+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class PassportConvertImpl implements PassportConvert {
|
||||
|
||||
@Override
|
||||
public PassportLoginVO convert(OAuth2AccessTokenBO oauth2AccessTokenBO) {
|
||||
if ( oauth2AccessTokenBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
PassportLoginVO passportLoginVO = new PassportLoginVO();
|
||||
|
||||
passportLoginVO.setAccessToken( oauth2AccessTokenBO.getAccessToken() );
|
||||
passportLoginVO.setRefreshToken( oauth2AccessTokenBO.getRefreshToken() );
|
||||
passportLoginVO.setExpiresIn( oauth2AccessTokenBO.getExpiresIn() );
|
||||
|
||||
return passportLoginVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonResult<PassportLoginVO> convert(CommonResult<OAuth2AccessTokenBO> oauth2AccessTokenBO) {
|
||||
if ( oauth2AccessTokenBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
CommonResult<PassportLoginVO> commonResult = new CommonResult<PassportLoginVO>();
|
||||
|
||||
commonResult.setCode( oauth2AccessTokenBO.getCode() );
|
||||
commonResult.setMessage( oauth2AccessTokenBO.getMessage() );
|
||||
commonResult.setData( convert( oauth2AccessTokenBO.getData() ) );
|
||||
|
||||
return commonResult;
|
||||
}
|
||||
}
|
||||
@@ -1,111 +0,0 @@
|
||||
package cn.iocoder.mall.admin.application.convert;
|
||||
|
||||
import cn.iocoder.common.framework.vo.CommonResult;
|
||||
import cn.iocoder.mall.admin.api.bo.resource.ResourceBO;
|
||||
import cn.iocoder.mall.admin.application.vo.admin.AdminMenuTreeNodeVO;
|
||||
import cn.iocoder.mall.admin.application.vo.resource.ResourceTreeNodeVO;
|
||||
import cn.iocoder.mall.admin.application.vo.resource.ResourceVO;
|
||||
import cn.iocoder.mall.admin.application.vo.role.RoleResourceTreeNodeVO;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-31T18:11:49+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class ResourceConvertImpl implements ResourceConvert {
|
||||
|
||||
@Override
|
||||
public AdminMenuTreeNodeVO convert(ResourceBO resourceBO) {
|
||||
if ( resourceBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
AdminMenuTreeNodeVO adminMenuTreeNodeVO = new AdminMenuTreeNodeVO();
|
||||
|
||||
adminMenuTreeNodeVO.setId( resourceBO.getId() );
|
||||
adminMenuTreeNodeVO.setHandler( resourceBO.getHandler() );
|
||||
adminMenuTreeNodeVO.setPid( resourceBO.getPid() );
|
||||
adminMenuTreeNodeVO.setSort( resourceBO.getSort() );
|
||||
adminMenuTreeNodeVO.setDisplayName( resourceBO.getDisplayName() );
|
||||
|
||||
return adminMenuTreeNodeVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceTreeNodeVO convert2(ResourceBO resourceBO) {
|
||||
if ( resourceBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ResourceTreeNodeVO resourceTreeNodeVO = new ResourceTreeNodeVO();
|
||||
|
||||
resourceTreeNodeVO.setId( resourceBO.getId() );
|
||||
resourceTreeNodeVO.setType( resourceBO.getType() );
|
||||
resourceTreeNodeVO.setSort( resourceBO.getSort() );
|
||||
resourceTreeNodeVO.setDisplayName( resourceBO.getDisplayName() );
|
||||
resourceTreeNodeVO.setPid( resourceBO.getPid() );
|
||||
resourceTreeNodeVO.setHandler( resourceBO.getHandler() );
|
||||
resourceTreeNodeVO.setIcon( resourceBO.getIcon() );
|
||||
List<String> list = resourceBO.getPermissions();
|
||||
if ( list != null ) {
|
||||
resourceTreeNodeVO.setPermissions( new ArrayList<String>( list ) );
|
||||
}
|
||||
resourceTreeNodeVO.setCreateTime( resourceBO.getCreateTime() );
|
||||
|
||||
return resourceTreeNodeVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public RoleResourceTreeNodeVO convert4(ResourceBO resourceBO) {
|
||||
if ( resourceBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
RoleResourceTreeNodeVO roleResourceTreeNodeVO = new RoleResourceTreeNodeVO();
|
||||
|
||||
roleResourceTreeNodeVO.setId( resourceBO.getId() );
|
||||
roleResourceTreeNodeVO.setHandler( resourceBO.getHandler() );
|
||||
roleResourceTreeNodeVO.setPid( resourceBO.getPid() );
|
||||
roleResourceTreeNodeVO.setSort( resourceBO.getSort() );
|
||||
roleResourceTreeNodeVO.setDisplayName( resourceBO.getDisplayName() );
|
||||
|
||||
return roleResourceTreeNodeVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceVO convert3(ResourceBO resourceBO) {
|
||||
if ( resourceBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ResourceVO resourceVO = new ResourceVO();
|
||||
|
||||
resourceVO.setId( resourceBO.getId() );
|
||||
resourceVO.setType( resourceBO.getType() );
|
||||
resourceVO.setSort( resourceBO.getSort() );
|
||||
resourceVO.setDisplayName( resourceBO.getDisplayName() );
|
||||
resourceVO.setCreateTime( resourceBO.getCreateTime() );
|
||||
resourceVO.setPid( resourceBO.getPid() );
|
||||
resourceVO.setHandler( resourceBO.getHandler() );
|
||||
|
||||
return resourceVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonResult<ResourceVO> convert3(CommonResult<ResourceBO> resourceBO) {
|
||||
if ( resourceBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
CommonResult<ResourceVO> commonResult = new CommonResult<ResourceVO>();
|
||||
|
||||
commonResult.setCode( resourceBO.getCode() );
|
||||
commonResult.setMessage( resourceBO.getMessage() );
|
||||
commonResult.setData( convert3( resourceBO.getData() ) );
|
||||
|
||||
return commonResult;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package cn.iocoder.mall.admin.application.convert;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-31T18:11:49+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class RoleConvertImpl implements RoleConvert {
|
||||
}
|
||||
Reference in New Issue
Block a user