| | |
| | | package com.doumee.api.web; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.biz.zbom.ZbomCRMService; |
| | | import com.doumee.biz.zbom.model.crm.CrmCustomerListRequest; |
| | | import com.doumee.biz.zbom.model.crm.response.CRMBaseResponse; |
| | | import com.doumee.biz.zbom.model.crm.response.CRMCustomerListResponse; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTBaseRequst; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTCatalogListRequest; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTConstants; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTContentListRequest; |
| | | import com.doumee.biz.zbom.model.zhongtai.*; |
| | | import com.doumee.biz.zbom.model.zhongtai.response.*; |
| | | import com.doumee.config.annotation.LoginRequired; |
| | | import com.doumee.config.annotation.UserLoginRequired; |
| | |
| | | import com.doumee.dao.business.model.Shop; |
| | | import com.doumee.dao.business.model.SmsEmail; |
| | | import com.doumee.dao.business.model.Users; |
| | | import com.doumee.dao.system.model.SystemDictData; |
| | | import com.doumee.dao.web.reqeust.*; |
| | | import com.doumee.dao.web.response.AccountResponse; |
| | | import com.doumee.service.business.*; |
| | | import com.doumee.service.system.SystemDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | |
| | | @Autowired |
| | | private GetZhongTaiDataService getZhongTaiDataService; |
| | | |
| | | |
| | | @ApiOperation(value = "小程序登陆", notes = "员工端小程序") |
| | | @GetMapping("/loginByWx") |
| | |
| | | } |
| | | |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | |
| | | @UserLoginRequired |
| | | @LoginRequired |
| | | @ApiOperation(value = "更新token", notes = "员工端小程序") |
| | | @GetMapping("/updateToken") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | | public ApiResponse updateToken () { |
| | | systemDictDataBiz.updWxMiniToken(); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @UserLoginRequired |
| | | @ApiOperation(value = "获取内容分享海报", notes = "获取内容分享海报,加小程序码") |
| | | @PostMapping("/getContentShareImg") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | | public ApiResponse<String> getContentShareImg(@RequestBody ContentShareImgDto param) { |
| | | return ApiResponse.success(usersService.getContentShareImg(this.getLoginUserInfo(),param)); |
| | | } |
| | |
| | | return ApiResponse.success(getCrmDataService.getCrmCustomerList(crmCustomerListRequest)); |
| | | } |
| | | |
| | | |
| | | @UserLoginRequired |
| | | @LoginRequired |
| | | @ApiOperation(value = "批量添加喜欢给客户", notes = "员工端小程序") |
| | | @PostMapping("/batchAddLike") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | | public ApiResponse batchAddLike(@RequestBody ZTBatchAddListRequest ztBatchAddListRequest) { |
| | | ztBatchAddListRequest.setUserType(getUserType()); |
| | | ztBatchAddListRequest.setUserId(getUserId().toString()); |
| | | getZhongTaiDataService.batchAddLike(ztBatchAddListRequest); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | |
| | | @UserLoginRequired |
| | | @ApiOperation(value = "用户注销", notes = "员工端小程序") |
| | | @PostMapping("/logOff") |