|
|
@ -1,4 +1,53 @@ |
|
|
|
package org.jeecg.modules.api.noticeapicontroller; |
|
|
|
|
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
@Api(tags="小程序-登录相关接口") |
|
|
|
@RestController |
|
|
|
@RequestMapping("/api/login") |
|
|
|
@Slf4j |
|
|
|
public class LoginApiController { |
|
|
|
|
|
|
|
@ApiOperation(value="小程序-登录接口", notes="小程序-登录接口") |
|
|
|
@GetMapping("/login") |
|
|
|
public String login(){ |
|
|
|
return "登录成功"; |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="小程序-退出接口", notes="小程序-退出接口") |
|
|
|
@GetMapping("/logout") |
|
|
|
public String logout(){ |
|
|
|
return "退出成功"; |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="小程序-注册接口", notes="小程序-注册接口") |
|
|
|
@GetMapping("/register") |
|
|
|
public String register(){ |
|
|
|
return "注册成功"; |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="小程序-找回密码接口", notes="小程序-找回密码接口") |
|
|
|
@GetMapping("/forget") |
|
|
|
public String forget(){ |
|
|
|
return "找回密码成功"; |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="小程序-发送验证码接口", notes="小程序-发送验证码接口") |
|
|
|
@GetMapping("/sendCode") |
|
|
|
public String sendCode(){ |
|
|
|
return "发送验证码成功"; |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="小程序-绑定手机接口", notes="小程序-绑定手机接口") |
|
|
|
@GetMapping("/bindPhone") |
|
|
|
public String bindPhone(){ |
|
|
|
return "绑定手机成功"; |
|
|
|
} |
|
|
|
|
|
|
|
} |