| @@ -109,6 +109,24 @@ public class ServiceInfoController extends MallUserInfoBaseController{ | |||||
| return R.ok(); | return R.ok(); | ||||
| } | } | ||||
| @ApiVersion(group = SwaggerConstant.V_1_0_0) | |||||
| @ApiOperation("慧影-查询登录账号") | |||||
| @GetMapping("/getMallUserInfo") | |||||
| public R<MallUserInfo> getMallUserInfo(Long serviceId) { | |||||
| if (null == serviceId) { | |||||
| throw new BizException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"serviceId无效"); | |||||
| } | |||||
| ServiceInfo si = serviceInfoService.getServiceInfo(serviceId); | |||||
| if (null == si) { | |||||
| throw new BizException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"serviceId无效"); | |||||
| } | |||||
| if (null != si.getMallUserInfo()) { | |||||
| return R.ok(mallUserInfoService.getById(si.getMallUserInfo())); | |||||
| } | |||||
| return R.ok(); | |||||
| } | |||||
| @ApiVersion(group = SwaggerConstant.V_1_0_0) | @ApiVersion(group = SwaggerConstant.V_1_0_0) | ||||
| @ApiOperation("慧影-设置时长") | @ApiOperation("慧影-设置时长") | ||||
| @PostMapping("/setRemainingTimes") | @PostMapping("/setRemainingTimes") | ||||