| | |
| | | import javax.annotation.Resource;
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | import org.springframework.web.bind.annotation.CrossOrigin;
|
| | | import org.springframework.web.bind.annotation.GetMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestParam;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | | import org.springframework.web.bind.annotation.*;
|
| | |
|
| | | import com.moral.common.bean.AppData;
|
| | | import com.moral.entity.Device;
|
| | |
| | | * @param password the password
|
| | | * @return the result bean
|
| | | */
|
| | | @GetMapping("accountlogin")
|
| | | @PostMapping("accountlogin")
|
| | | public AppData<OperateUser> mobileLogin(String username, String password) {
|
| | | OperateUser operateUser = operateUserService.mobileLogin(username,password);
|
| | | return new AppData<OperateUser>(operateUser);
|