Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-execute-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a4c6f496
authored
Sep 27, 2023
by
chizw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sop短链 构建失败问题修复
1 parent
ccd8d272
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
21 deletions
platform-execute/src/main/java/cn/com/glsx/execute/config/DubboConfig.java
platform-execute/target/generated-sources/annotations/cn/com/glsx/execute/modules/converter/UserConverterImpl.java
pom.xml
platform-execute/src/main/java/cn/com/glsx/execute/config/DubboConfig.java
View file @
a4c6f49
package
cn
.
com
.
glsx
.
execute
.
config
;
package
cn
.
com
.
glsx
.
execute
.
config
;
import
cn.com.glsx.execute.api.dubbo.ShortUrlApi
;
//
import cn.com.glsx.execute.api.dubbo.ShortUrlApi;
import
org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory
;
//
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
//
import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.context.annotation.Bean
;
//
import org.springframework.context.annotation.Bean;
import
org.springframework.context.annotation.Configuration
;
//
import org.springframework.context.annotation.Configuration;
/**
/**
* @author deployer name
* @author deployer name
...
@@ -14,14 +14,14 @@ import org.springframework.context.annotation.Configuration;
...
@@ -14,14 +14,14 @@ import org.springframework.context.annotation.Configuration;
* @Company: Didihu.com.cn
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2018
* @Copyright Copyright (c) 2018
*/
*/
@Configuration
//
@Configuration
public
class
DubboConfig
{
//
public class DubboConfig {
//
@Autowired
//
@Autowired
private
ReferenceBuilderFactory
factory
;
//
private ReferenceBuilderFactory factory;
//
@Bean
//
@Bean
public
ShortUrlApi
ShortUrlApi
()
{
//
public ShortUrlApi ShortUrlApi() {
return
factory
.
builder
(
ShortUrlApi
.
class
)
/*.url("dubbo://localhost:22883")*/
.
check
(
false
).
timeout
(
30000
).
version
(
"1.0.0"
).
build
();
//
return factory.builder(ShortUrlApi.class)/*.url("dubbo://localhost:22883")*/.check(false).timeout(30000).version("1.0.0").build();
}
//
}
}
//
}
platform-execute/target/generated-sources/annotations/cn/com/glsx/execute/modules/converter/UserConverterImpl.java
0 → 100644
View file @
a4c6f49
package
cn
.
com
.
glsx
.
execute
.
modules
.
converter
;
import
cn.com.glsx.execute.modules.entity.User
;
import
cn.com.glsx.execute.modules.model.UserBO
;
import
cn.com.glsx.execute.modules.model.UserDTO
;
import
javax.annotation.Generated
;
@Generated
(
value
=
"org.mapstruct.ap.MappingProcessor"
,
date
=
"2023-09-27T15:16:24+0800"
,
comments
=
"version: 1.5.2.Final, compiler: javac, environment: Java 1.8.0_181 (Oracle Corporation)"
)
public
class
UserConverterImpl
implements
UserConverter
{
@Override
public
UserDTO
do2dto
(
User
user
)
{
if
(
user
==
null
)
{
return
null
;
}
UserDTO
userDTO
=
new
UserDTO
();
userDTO
.
setId
(
user
.
getId
()
);
userDTO
.
setAccount
(
user
.
getAccount
()
);
userDTO
.
setUsername
(
user
.
getUsername
()
);
userDTO
.
setRealname
(
user
.
getRealname
()
);
userDTO
.
setPassword
(
user
.
getPassword
()
);
userDTO
.
setPhone
(
user
.
getPhone
()
);
return
userDTO
;
}
@Override
public
User
dto2do
(
UserDTO
userDTO
)
{
if
(
userDTO
==
null
)
{
return
null
;
}
User
user
=
new
User
();
user
.
setId
(
userDTO
.
getId
()
);
user
.
setAccount
(
userDTO
.
getAccount
()
);
user
.
setPassword
(
userDTO
.
getPassword
()
);
user
.
setUsername
(
userDTO
.
getUsername
()
);
user
.
setRealname
(
userDTO
.
getRealname
()
);
user
.
setPhone
(
userDTO
.
getPhone
()
);
return
user
;
}
@Override
public
UserBO
do2bo
(
User
user
)
{
if
(
user
==
null
)
{
return
null
;
}
UserBO
userBO
=
new
UserBO
();
userBO
.
setRealName
(
user
.
getRealname
()
);
userBO
.
setId
(
user
.
getId
()
);
userBO
.
setAccount
(
user
.
getAccount
()
);
userBO
.
setPassword
(
user
.
getPassword
()
);
userBO
.
setUsername
(
user
.
getUsername
()
);
userBO
.
setPhone
(
user
.
getPhone
()
);
userBO
.
setAvatar
(
user
.
getAvatar
()
);
return
userBO
;
}
@Override
public
User
bo2do
(
UserBO
userBO
)
{
if
(
userBO
==
null
)
{
return
null
;
}
User
user
=
new
User
();
user
.
setRealname
(
userBO
.
getRealName
()
);
user
.
setId
(
userBO
.
getId
()
);
user
.
setAccount
(
userBO
.
getAccount
()
);
user
.
setPassword
(
userBO
.
getPassword
()
);
user
.
setUsername
(
userBO
.
getUsername
()
);
user
.
setPhone
(
userBO
.
getPhone
()
);
user
.
setAvatar
(
userBO
.
getAvatar
()
);
return
user
;
}
}
pom.xml
View file @
a4c6f49
...
@@ -22,11 +22,11 @@
...
@@ -22,11 +22,11 @@
<dependencies>
<dependencies>
<dependency
>
<!-- <dependency>--
>
<groupId>
org.oreframework.boot
</groupId
>
<!-- <groupId>org.oreframework.boot</groupId>--
>
<artifactId>
ore-boot-autoconfigure
</artifactId
>
<!-- <artifactId>ore-boot-autoconfigure</artifactId>--
>
<version>
2.2.0-SNAPSHOT
</version
>
<!-- <version>2.2.0-SNAPSHOT</version>--
>
</dependency
>
<!-- </dependency>--
>
</dependencies>
</dependencies>
<build>
<build>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment