HomeController.java 1.05 KB
package cn.com.glsx.modules.controller;

import cn.com.glsx.modules.service.HomeService;
import com.glsx.plat.core.web.R;
import com.lumi.opencloud.model.v1.request.AuthorizeRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhouhaibao
 * @date 2021/4/20 20:59
 */
@Controller
@RequestMapping("/home")
@Api(value = "位置信息", tags = {"位置信息"})
public class HomeController {

    @Autowired
    private HomeService homeService;

    @RequestMapping(value = "/getHome", method = RequestMethod.POST)
    @ResponseBody
    @ApiOperation(value = "获取位置信息")
    public R getHome(String token){
        return homeService.getHome(token);
    }
}