| | |
| | | @ApiOperation(value = "用户注册协议/用户隐私协议", tags = {"用户端-登录"}) |
| | | @GetMapping(value = "/registerOrAgreement") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "0:用户注册协议、1:用户隐私协议", name = "type", dataType = "Integer", required = true) |
| | | @ApiImplicitParam(value = "0:用户注册协议、1:用户隐私协议;3:服务规则管理", name = "type", dataType = "Integer", required = true) |
| | | }) |
| | | public R<Agreement> registerOrAgreement(@RequestParam Integer type) { |
| | | if (!Constants.ZERO.equals(type) && !Constants.ONE.equals(type)) { |
| | | if (!Constants.ZERO.equals(type) && !Constants.ONE.equals(type) && !Constants.THREE.equals(type)) { |
| | | throw new GlobalException("获取类型异常!"); |
| | | } |
| | | R<Agreement> r = adminClient.agreementPolicy(type); |