Browse Source

增加部分注释

tags/1.1.0
shaozhuguang 5 years ago
parent
commit
ce1e79b88d
4 changed files with 30 additions and 1 deletions
  1. +1
    -1
      source/deployment/deployment-peer/src/main/resources/scripts/jump-start.sh
  2. +5
    -0
      source/manager/ump-booter/pom.xml
  3. +16
    -0
      source/manager/ump-web/src/main/java/com/jd/blockchain/ump/controller/UmpKeyController.java
  4. +8
    -0
      source/manager/ump-web/src/main/java/com/jd/blockchain/ump/controller/UmpMasterController.java

+ 1
- 1
source/deployment/deployment-peer/src/main/resources/scripts/jump-start.sh View File

@@ -5,5 +5,5 @@ UMP=$(ls $HOME/ext | grep ump-booter-)
if [ ! -n "UMP" ]; then
echo "Unified Management Platform Is Null !!!"
else
nohup java -jar -server -Djump.log=$HOME $HOME/ext/$UMP $* >$HOME/bin/jump.out 2>&1 &
nohup java -jar -server -Djump.log=$HOME $HOME/ext/$UMP -p 8000 $* >$HOME/bin/jump.out 2>&1 &
fi

+ 5
- 0
source/manager/ump-booter/pom.xml View File

@@ -50,6 +50,11 @@
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.jd.blockchain</groupId>
<artifactId>ump-explorer</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>


+ 16
- 0
source/manager/ump-web/src/main/java/com/jd/blockchain/ump/controller/UmpKeyController.java View File

@@ -20,6 +20,13 @@ public class UmpKeyController {
@Autowired
private UmpStateService umpStateService;


/**
* 创建用户
*
* @param builder
* @return
*/
@RequestMapping(method = RequestMethod.POST, path = "create")
public UserKeysVv create(@RequestBody final UserKeyBuilder builder) {

@@ -54,6 +61,15 @@ public class UmpKeyController {
throw new IllegalStateException(String.format("Can not find UserKeys by %s", pubKey));
}

/**
* 解析UserKeys
*
* @param userId
* 用户ID
* @param pwd
* 密码(非编码后密码)
* @return
*/
@RequestMapping(method = RequestMethod.GET, path = "resolve/{user}/{pwd}")
public UserKeys resolve(@PathVariable(name = "user") int userId,
@PathVariable(name = "pwd") String pwd) {


+ 8
- 0
source/manager/ump-web/src/main/java/com/jd/blockchain/ump/controller/UmpMasterController.java View File

@@ -41,6 +41,14 @@ public class UmpMasterController {
return umpService.response(sharedConfigs, sharedConfig);
}

/**
* 接收其他Peer节点发送的安装信息
*
* @param installSchedule
* 安装信息
*
* @return
*/
@RequestMapping(method = RequestMethod.POST, path = "receive")
public String receive(@RequestBody final InstallSchedule installSchedule) {



Loading…
Cancel
Save