GitBucket
4.23.0
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
yn-bftl-byx
/
thirdparty
Browse code
打印随机因子
master
1 parent
c1ffe3a
commit
023cf4f8863721c8acd06eda9fcb5d514304e6f6
steven
authored
on 25 Oct
Patch
Showing
1 changed file
src/main/java/com/yn/bftl/thirdparty/modules/secret/controller/RandomKeyController.java
Ignore Space
Show notes
View
src/main/java/com/yn/bftl/thirdparty/modules/secret/controller/RandomKeyController.java
package com.yn.bftl.thirdparty.modules.secret.controller; import com.yn.bftl.thirdparty.modules.secret.service.RandomKeyService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; @Slf4j @Api(value = "AuthMemberController", tags = "加密随机因子") @RestController @RequestMapping("/random/secret") public class RandomKeyController { @Resource private RandomKeyService randomKeyService; @ApiOperation(value = "获取一个随机因子") @RequestMapping(value = "/get", method = RequestMethod.GET) public String get() { String randomKey = this.randomKeyService.getOneKey(); log.info("================================获取随机因子:" + randomKey); return randomKey; } }
package com.yn.bftl.thirdparty.modules.secret.controller; import com.yn.bftl.thirdparty.modules.secret.service.RandomKeyService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; @Api(value = "AuthMemberController", tags = "加密随机因子") @RestController @RequestMapping("/random/secret") public class RandomKeyController { @Resource private RandomKeyService randomKeyService; @ApiOperation(value = "获取一个随机因子") @RequestMapping(value = "/get", method = RequestMethod.GET) public String get() { return this.randomKeyService.getOneKey(); } }
Show line notes below