|
|
@@ -16,6 +16,7 @@ import com.iformall.domain.po.MallUserInfo; |
|
|
|
import com.iformall.domain.po.base.BaseEntity; |
|
|
|
import com.iformall.domain.po.sm.PersonMould; |
|
|
|
import com.iformall.domain.po.sm.ServiceInfo; |
|
|
|
import com.iformall.domain.po.sm.ServiceVideoRecord; |
|
|
|
import com.iformall.enums.EnumProject; |
|
|
|
import com.iformall.enums.EnumUserAdmin; |
|
|
|
import com.iformall.enums.EnumYesOrNo; |
|
|
@@ -24,6 +25,8 @@ import com.iformall.exception.BizException; |
|
|
|
import com.iformall.service.MallUserInfoService; |
|
|
|
import com.iformall.service.sm.PersonMouldService; |
|
|
|
import com.iformall.service.sm.ServiceInfoService; |
|
|
|
import com.iformall.service.sm.ServiceVideoRecordService; |
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
@@ -46,6 +49,9 @@ public class ServiceInfoController extends MallUserInfoBaseController{ |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private PersonMouldService personMouldService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ServiceVideoRecordService serviceVideoRecordService; |
|
|
|
|
|
|
|
@ApiVersion(group = SwaggerConstant.V_1_0_0) |
|
|
|
@ApiOperation("分页查询合作商") |
|
|
@@ -149,11 +155,26 @@ public class ServiceInfoController extends MallUserInfoBaseController{ |
|
|
|
} |
|
|
|
|
|
|
|
@ApiVersion(group = SwaggerConstant.V_1_0_0) |
|
|
|
@ApiOperation("设置关联模板") |
|
|
|
@PostMapping("/current") |
|
|
|
@ApiOperation("当前") |
|
|
|
@GetMapping("/current") |
|
|
|
public ResultData currentInfo() { |
|
|
|
MallUserInfo user = this.getUser(); |
|
|
|
ServiceInfo si = serviceInfoService.getServiceInfoByMallUserInfo(user.getId()); |
|
|
|
return new ResultData(si); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiVersion(group = SwaggerConstant.V_1_0_0) |
|
|
|
@ApiOperation("当前") |
|
|
|
@GetMapping("/currentVideoRecords") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)}) |
|
|
|
public ResultData currentVideoRecords(Integer pageNum, Integer pageSize) { |
|
|
|
MallUserInfo user = this.getUser(); |
|
|
|
ServiceInfo si = serviceInfoService.getServiceInfoByMallUserInfo(user.getId()); |
|
|
|
ServiceVideoRecord svr = new ServiceVideoRecord(); |
|
|
|
svr.setServiceId(si.getId()); |
|
|
|
PageInfo<ServiceVideoRecord> personMouldPage = serviceVideoRecordService.listAsPage(svr, pageNum, pageSize); |
|
|
|
return new ResultData(personMouldPage); |
|
|
|
} |
|
|
|
} |