package com.template.api;

import com.template.model.result.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Api(tags = {"LogInfoController"}, value = "登入接口")
@RequestMapping("/api/logInfo")
public interface LogInfoControllerAPI {

    @GetMapping("/verify")
    @ApiOperation(value = "验证手机号phone",httpMethod = "GET")
    CommonResult verifyPhone(String phone);


    @PostMapping("/logIn")
    @ApiOperation(value = "短信验证",httpMethod = "POST")
    CommonResult logInfo(String phone,String code);
}
