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

Commit be316f8b authored by 张国柄's avatar 张国柄

+api:商城用户安全设置+是否设置安全密码;

parent 1de05051
...@@ -42,6 +42,13 @@ public class GoblinUserSafeController { ...@@ -42,6 +42,13 @@ public class GoblinUserSafeController {
IGoblinUserSafeConfigService goblinUserAssetConfigService; IGoblinUserSafeConfigService goblinUserAssetConfigService;
@ApiOperationSupport(order = 1) @ApiOperationSupport(order = 1)
@ApiOperation(value = "是否设置安全密码", notes = "<br />响应【data】值描述:是否设置[0-未设置|1-已设置]")
@PostMapping(value = {"passwd/had"})
public ResponseDto<String> hadSecurityCode() {
return ResponseDto.success(null == goblinRedisUtils.getUserSafeConfigDto(CurrentUtil.getCurrentUid()) ? "0" : "1");
}
@ApiOperationSupport(order = 2)
@ApiOperation(value = "设置安全密码") @ApiOperation(value = "设置安全密码")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "passwd", value = "安全密码:MD5(******)"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "passwd", value = "安全密码:MD5(******)"),
......
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