张晓波
2023-09-19 164694c47c35d6654df69b533e8dbf8b5423efc5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.thhy.mobile.modules.biz.login.controller;
 
import com.thhy.general.common.BasicResult;
import com.thhy.general.common.entity.SysUserDto;
import com.thhy.mobile.modules.biz.login.entity.LoginVo;
import com.thhy.mobile.modules.biz.login.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping("login")
public class LoginController {
 
    @Autowired
    private LoginService loginService;
 
    @PostMapping
    public BasicResult login(@RequestBody SysUserDto sysUserDto){
        LoginVo loginVO = loginService.login(sysUserDto);
 
        return BasicResult.success(loginVO);
    }
}