//package com.inkasso.management.login.controller;
//
//import com.inkasso.adapter.response.ResponseData;
//import com.inkasso.factoring.login.model.dto.LoginResultDTO;
//import com.inkasso.factoring.login.model.request.PasswordLoginRequest;
//import com.inkasso.management.login.service.BackEndUserLoginService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//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 BackEndUserLoginController {
//
//    @Autowired
//    private BackEndUserLoginService backEndUserLoginService;
//
//    /**
//     * 用户登陆
//     */
//    @PostMapping("password")
//    public ResponseData<LoginResultDTO> passwordLogin(@Validated
//                                                      @RequestBody PasswordLoginRequest passwordLoginRequest) {
//
//        LoginResultDTO result = backEndUserLoginService.login(passwordLoginRequest);
//
//        return ResponseData.success(result);
//    }
//}
