|  |  | 
 |  |  | import com.doumee.biz.zbom.ZbomZhongTaiService; | 
 |  |  | import com.doumee.core.annotation.trace.Trace; | 
 |  |  | import com.doumee.core.model.ApiResponse; | 
 |  |  | import com.doumee.core.model.PageData; | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.dao.business.model.News; | 
 |  |  | import com.doumee.dao.web.response.DailyUpdatesResponse; | 
 |  |  | import com.doumee.dao.web.response.ZSZXCatalogResponse; | 
 |  |  | import com.doumee.service.business.NewsService; | 
 |  |  | import com.doumee.service.business.SmsEmailService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiImplicitParam; | 
 |  |  | import io.swagger.annotations.ApiImplicitParams; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.apache.shiro.authz.annotation.RequiresPermissions; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  |  | 
 |  |  | 
 |  |  |     @Autowired | 
 |  |  |     public ZbomCRMService zbomCRMService; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     public NewsService newsService; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "【C端小程序】获取首页志说装修四个模块类目数据", notes = "获取首页志说装修四个模块类目数据,背景图暂时写死,参考UI") | 
 |  |  |     @PostMapping("/getZSZXCatalogs") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<ZSZXCatalogResponse> getZSZXCatalogs() { | 
 |  |  |         return  ApiResponse.success(zbomZhongTaiService.getZSZXCatalogs()); | 
 |  |  |     } | 
 |  |  |     @ApiOperation(value = "【端小程序】获取客户管理授权-列表跳转地址", notes = "获取客户管理授权跳转地址") | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "【B端小程序】每日上新数据") | 
 |  |  |     @GetMapping("/getDailyUpdates") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "fileType", value = "附件类型 0图片 1视频", required = false) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<DailyUpdatesResponse> getDailyUpdates(Integer fileType) { | 
 |  |  |         return  ApiResponse.success(newsService.getDailyUpdatesResponse(fileType)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("【B端小程序】 推广咨询分页") | 
 |  |  |     @PostMapping("/newsPage") | 
 |  |  |     public ApiResponse<PageData<News>> newsPage (@RequestBody PageWrap<News> pageWrap) { | 
 |  |  |         return ApiResponse.success(newsService.findPage(pageWrap)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "获取客户管理授权-列表跳转地址", notes = "获取客户管理授权跳转地址") | 
 |  |  |     @GetMapping("/getCrmAuthUrl") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type", value = "类型 0客户列表 1跳转新增意向客户", required = true) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<String> getCrmAuthUrl(@RequestParam Integer type) { |