package com.bjtdba.userCenter.controller;

import com.bjtdba.userCenter.service.UserLogoutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@CrossOrigin
@RestController
@RequestMapping("userCenter_service/userCenterService")
public class UserLogoutController {

    @Autowired
    private UserLogoutService userLogoutService;

    /**
     * 注销
     * @param
     * @return
     */
    @PostMapping("/userLogout")
    public Object userLogout(@RequestBody Map<String,String> map){
        return userLogoutService.userLogout(map.get("phone"));
    }
}
