package com.ruoyi.web.controller.shate;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.file.WeatherUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: JinSheng Song
 * @Date: 2022/7/12 19:02
 */
@RestController
@RequestMapping(value = "/api", produces = "application/json;charset=UTF-8")
public class LoginController {

    @RequestMapping(value = "/login",method = {RequestMethod.GET})
    public AjaxResult login(String phone, String postword)
    {
        String value= WeatherUtils.HttpHeader(phone,postword);
        return  AjaxResult.success(value);
    }
}
