|  |  |  | 
|---|
|  |  |  | import com.doumee.config.annotation.LoginRequired; | 
|---|
|  |  |  | 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.CustomerLog; | 
|---|
|  |  |  | import com.doumee.dao.business.model.Member; | 
|---|
|  |  |  | import com.doumee.dao.business.model.Shop; | 
|---|
|  |  |  | import com.doumee.dao.business.model.Users; | 
|---|
|  |  |  | import com.doumee.dao.web.reqeust.*; | 
|---|
|  |  |  | import com.doumee.dao.web.response.AccountResponse; | 
|---|
|  |  |  | import com.doumee.dao.web.response.BjParamConfigResponse; | 
|---|
|  |  |  | import com.doumee.service.business.BjParamService; | 
|---|
|  |  |  | import com.doumee.service.business.CustomerService; | 
|---|
|  |  |  | import com.doumee.service.business.MemberService; | 
|---|
|  |  |  | import com.doumee.service.business.*; | 
|---|
|  |  |  | 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.checkerframework.checker.units.qual.A; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  | 
|---|
|  |  |  | * @Author : Rk | 
|---|
|  |  |  | * @create 2024/7/10 14:03 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Api(tags = "客户端小程序用户业务") | 
|---|
|  |  |  | @Api(tags = "【C端小程序】用户业务") | 
|---|
|  |  |  | @Trace(exclude = true) | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping("/web/customer") | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ZbomCRMService zbomCRMService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ShopService shopService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private UsersService usersService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "客户端小程序登陆", notes = "客户端小程序") | 
|---|
|  |  |  | @GetMapping("/wxLoginCustomer") | 
|---|
|  |  |  | 
|---|
|  |  |  | return  ApiResponse.success("操作成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginRequired | 
|---|
|  |  |  | @ApiOperation(value = "门店列表", notes = "客户端小程序") | 
|---|
|  |  |  | @PostMapping("/shopPage")   @ApiImplicitParams({ | 
|---|
|  |  |  | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | public ApiResponse<PageData<Shop>> shopPage (@RequestBody PageWrap<Shop> pageWrap) { | 
|---|
|  |  |  | return ApiResponse.success(shopService.queryShopByLL(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginRequired | 
|---|
|  |  |  | @ApiOperation(value = "门店详情", notes = "客户端小程序") | 
|---|
|  |  |  | @GetMapping("/shopDetail") | 
|---|
|  |  |  | @ApiImplicitParams({ | 
|---|
|  |  |  | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), | 
|---|
|  |  |  | @ApiImplicitParam(paramType = "query", dataType = "Long", name = "shopId", value = "门店主键", required = true) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | public ApiResponse<Shop> shopDetail (@RequestParam Long shopId) { | 
|---|
|  |  |  | Long memberId = this.getMemberId(); | 
|---|
|  |  |  | return ApiResponse.success(shopService.shopDetail(shopId,memberId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginRequired | 
|---|
|  |  |  | @ApiOperation(value = "导购详情", notes = "客户端小程序") | 
|---|
|  |  |  | @GetMapping("/usersDetail") | 
|---|
|  |  |  | @ApiImplicitParams({ | 
|---|
|  |  |  | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), | 
|---|
|  |  |  | @ApiImplicitParam(paramType = "query", dataType = "Long", name = "userId", value = "导购主键", required = true) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | public ApiResponse<Users> usersDetail (@RequestParam Long userId) { | 
|---|
|  |  |  | return ApiResponse.success(usersService.usersDetail(userId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|