记得上下班打卡 | git大法好,push需谨慎

Commit 42cee40b authored by jiangxiulong's avatar jiangxiulong

整理

parent fa6291a5
package com.liquidnet.service.goblin.controller; package com.liquidnet.service.goblin.controller.Inner;
import com.liquidnet.service.base.ResponseDto; import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.goblin.service.impl.GoblinNftNumAccountServiceImpl; import com.liquidnet.service.goblin.service.impl.GoblinNftNumAccountServiceImpl;
...@@ -14,23 +14,25 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -14,23 +14,25 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.validation.constraints.NotBlank;
@Slf4j @Slf4j
@Api(tags = "NFT数字账户-adam使用") @Api(tags = "@API:RSC")
@RestController @RestController
@Validated @Validated
@RequestMapping("/nftNumAccount") @RequestMapping("/rsc")
public class GoblinNftNumAccountController { public class GoblinRscController {
@Autowired @Autowired
GoblinNftNumAccountServiceImpl accountService; GoblinNftNumAccountServiceImpl accountService;
@PostMapping("sync") @PostMapping("nft/sync/acc")
@ApiOperation("数字账户开通同步通知") @ApiOperation("数字账户开通同步通知")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", dataType = "String", name = "userId", value = "用户ID", example = "1", required = true), @ApiImplicitParam(type = "form", dataType = "String", name = "userId", value = "用户ID", example = "1", required = true),
}) })
public ResponseDto<Boolean> syncNotice( public ResponseDto<Boolean> syncNotice(
@RequestParam("userId") String userId @RequestParam("userId") @NotBlank(message = "用户ID不能为空") String userId
) { ) {
Boolean notice = accountService.syncNotice(userId); Boolean notice = accountService.syncNotice(userId);
if (notice) { if (notice) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment