package com.bonus.core.customer.v4.mobile.controller;

import com.bonus.common.core.web.controller.BaseController;
import com.bonus.core.customer.v4.mobile.dto.ProfilePhotoDTO;
import com.bonus.core.customer.v4.mobile.service.CustomerMobileService;
import com.bonus.core.customer.v4.mobile.vo.ProfilePhotoVO;
import com.bonus.encrypt.RequiresGuest;
import com.bonus.utils.LeRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@RestController
@Api(
   value = "人员模块V4/移动端",
   tags = {"人员模块V4/移动端"}
)
@RequestMapping({"/api/v4/app/custInfo"})
public class CustomerMobileController extends BaseController {
   private static final Logger log = LoggerFactory.getLogger(CustomerMobileController.class);
   @Autowired
   CustomerMobileService customerMobileService;

   @ApiOperation(
           value = "移动端查询头像地址",
           notes = "移动端查询头像地址"
   )
   @PostMapping({"/query/profile/photo"})
   @RequiresGuest
   public ProfilePhotoVO queryProfilePhoto(@RequestBody ProfilePhotoDTO request) {
      return this.customerMobileService.queryProfilePhoto(request);
   }



}
