package com.diaoyun.zion.chinafrica.controller;

import com.diaoyun.zion.chinafrica.service.TbCfUserInfoService;
import com.diaoyun.zion.master.base.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;

/**
 * @author Joe
 */
@Api(tags = "用户登出")
@RestController
@RequestMapping("/logout")
public class LogoutController {

	@Autowired
	private  HttpServletRequest request;
    @Autowired
    private TbCfUserInfoService tbCfUserInfoService;

	@ApiOperation("登出")
	@GetMapping
	public Result logout() {
		return tbCfUserInfoService.logout();
	}
}